niucloud-admin/niucloud/public/admin/assets/sms_records-a562fc80.js
全栈小学生 338ad0628d update admin
2023-09-19 11:16:35 +08:00

2 lines
6.1 KiB
JavaScript

import{d as Y,R as D,r as C,e as p,f as v,y as a,x as i,g as u,B as _,u as l,F as V,z as L,v as y,A as E,Q as I}from"./base-d77b0726.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{t as o}from"./index-f3c0482e.js";import{c as O,f as H}from"./notice-6f06afc7.js";import{_ as K}from"./notice-records-info.vue_vue_type_script_setup_true_lang-da4d30dc.js";import{u as M}from"./vue-router-57155f94.js";import{E as A}from"./index-c1eb81db.js";import{a as G,E as Q}from"./index-68c5ad54.js";import{a as q,b as J,E as W}from"./index-a997ab1f.js";import{E as X}from"./index-a66ba6d1.js";import{E as Z}from"./index-91bdda63.js";import{E as ee}from"./index-2cf73bf7.js";import{a as te,E as ae}from"./index-0d721416.js";import{E as oe}from"./index-f956e728.js";import{v as le}from"./directive-08cd03ab.js";import"./index-e89181d8.js";import"./index-704f0685.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./common-56ee0a80.js";import"./index-e37943c3.js";import"./index-331c6de1.js";import"./index-9e51ba8b.js";import"./typescript-defaf979.js";import"./aria-60e0cdc6.js";import"./index-de9bede2.js";/* empty css */import"./index-6a54cf26.js";import"./index-b3418ddc.js";import"./event-e06a23af.js";import"./scroll-59301fd6.js";import"./vnode-5920e7a9.js";import"./index-a20d1a31.js";import"./focus-trap-98fda164.js";import"./index-6245131d.js";import"./index-f2dc9b9f.js";import"./index-d1e433eb.js";import"./_Uint8Array-2fd72219.js";import"./_initCloneObject-22d1caee.js";import"./index-45cca80f.js";import"./index-74352d71.js";import"./index-45469947.js";import"./strings-6a15e170.js";import"./isEqual-030b54ca.js";import"./debounce-8a1738b0.js";import"./index-ef0eb7b1.js";import"./validator-7b087194.js";import"./index-52f984e1.js";import"./index-edeae892.js";import"./_isIterateeCall-ff5ab0b5.js";const re={class:"main-container"},ie={class:"flex justify-between items-center"},me={class:"text-[20px]"},ne={class:"mt-[10px]"},se={class:"mt-[16px] flex justify-end"},xt=Y({__name:"sms_records",setup(pe){const N=M().meta.title,e=D({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{key:"",receiver:"",create_time:[]}}),b=D({buyer:{label:o("buyerNotice"),list:[]},seller:{label:o("sellerNotice"),list:[]}});(async()=>{await O().then(m=>{Object.keys(m.data).forEach(t=>{const f=m.data[t],n={value:t,name:f.name};f.receiver_type==0?b.buyer.list.push(n):b.seller.list.push(n)})}).catch(()=>{})})();const k=C(),c=(m=1)=>{e.loading=!0,e.page=m,H({page:e.page,limit:e.limit,...e.searchParam}).then(t=>{e.loading=!1,e.data=t.data.data,e.total=t.data.total}).catch(()=>{e.loading=!1})};c();const g=C(null),T=m=>{g.value.setFormData(m),g.value.showDialog=!0};return(m,t)=>{const f=A,n=G,x=q,F=J,z=W,B=X,h=Z,R=Q,w=ee,s=te,S=ae,U=oe,$=le;return p(),v("div",re,[a(w,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[u("div",ie,[u("span",me,_(l(N)),1)]),a(w,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:i(()=>[a(R,{inline:!0,model:e.searchParam,ref_key:"searchFormRef",ref:k},{default:i(()=>[a(n,{label:l(o)("searchReceiver"),prop:"receiver"},{default:i(()=>[a(f,{modelValue:e.searchParam.receiver,"onUpdate:modelValue":t[0]||(t[0]=r=>e.searchParam.receiver=r),placeholder:l(o)("receiverPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(n,{label:l(o)("noticeKey"),prop:"key"},{default:i(()=>[a(z,{modelValue:e.searchParam.key,"onUpdate:modelValue":t[1]||(t[1]=r=>e.searchParam.key=r),clearable:"",placeholder:l(o)("groupIdPlaceholder"),class:"input-width"},{default:i(()=>[a(x,{label:l(o)("selectPlaceholder"),value:""},null,8,["label"]),(p(!0),v(V,null,L(b,(r,d)=>(p(),y(F,{key:d,label:r.label},{default:i(()=>[(p(!0),v(V,null,L(r.list,(P,j)=>(p(),y(x,{label:P.name,value:P.value,key:j},null,8,["label","value"]))),128))]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(n,{label:l(o)("createTime"),prop:"create_time"},{default:i(()=>[a(B,{modelValue:e.searchParam.create_time,"onUpdate:modelValue":t[2]||(t[2]=r=>e.searchParam.create_time=r),type:"datetimerange","value-format":"YYYY-MM-DD HH:mm:ss","start-placeholder":l(o)("startDate"),"end-placeholder":l(o)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),a(n,null,{default:i(()=>[a(h,{type:"primary",onClick:t[3]||(t[3]=r=>c())},{default:i(()=>[E(_(l(o)("search")),1)]),_:1}),a(h,{onClick:t[4]||(t[4]=r=>{var d;return(d=k.value)==null?void 0:d.resetFields()})},{default:i(()=>[E(_(l(o)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),u("div",ne,[I((p(),y(S,{data:e.data,size:"large"},{empty:i(()=>[u("span",null,_(e.loading?"":l(o)("emptyData")),1)]),default:i(()=>[a(s,{prop:"name",label:l(o)("noticeKey"),"min-width":"120"},null,8,["label"]),a(s,{prop:"sms_type_name",label:l(o)("noticeType"),"min-width":"120"},null,8,["label"]),a(s,{prop:"mobile",label:l(o)("receiver"),"min-width":"120"},null,8,["label"]),a(s,{prop:"status_name",label:l(o)("statusName"),"min-width":"100"},null,8,["label"]),a(s,{prop:"create_time",label:l(o)("createTime"),"min-width":"140"},null,8,["label"]),a(s,{label:l(o)("operation"),fixed:"right",align:"right",width:"100"},{default:i(({row:r})=>[a(h,{type:"primary",link:"",onClick:d=>T(r)},{default:i(()=>[E(_(l(o)("info")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[$,e.loading]]),u("div",se,[a(U,{"current-page":e.page,"onUpdate:currentPage":t[5]||(t[5]=r=>e.page=r),"page-size":e.limit,"onUpdate:pageSize":t[6]||(t[6]=r=>e.limit=r),layout:"total, sizes, prev, pager, next, jumper",total:e.total,onSizeChange:t[7]||(t[7]=r=>c()),onCurrentChange:c},null,8,["current-page","page-size","total"])])]),a(K,{ref_key:"recordsDialog",ref:g,onComplete:c},null,512)]),_:1})])}}});export{xt as default};