mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-05 20:48:11 +00:00
2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import{a as R,E as Y}from"./el-form-item-1b16c9fc.js";/* empty css *//* empty css */import{t as o}from"./index-0ca94763.js";import{c as I,f as M}from"./notice-c1ad68e7.js";import{_ as H}from"./notice-records-info.vue_vue_type_script_setup_true_lang-d9497555.js";import{u as K}from"./vue-router-48fdc1e3.js";import{E as A}from"./index-e27c3bb0.js";import{a as G,b as q,E as J}from"./index-4601cf3b.js";import{E as Q}from"./index-51138976.js";import{E as W}from"./index-c5914bde.js";import{E as X}from"./index-9ecd3f93.js";import{a as Z,E as ee}from"./index-fe3867fe.js";import{E as te}from"./index-21f38393.js";import{v as ae}from"./directive-64fb15dc.js";import{d as oe,O 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,M as le}from"./plugin-vue_export-helper-85a4d40b.js";import"./common-c3be41fd.js";import"./index-cf9a2dd7.js";import"./index-bcd7a424.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./index-d469ae66.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./_baseClone-3dbf39d6.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./isEqual-0b9509fd.js";import"./debounce-6c3123a6.js";import"./index-bd04154b.js";import"./validator-bcf701e4.js";import"./customParseFormat-40c50080.js";import"./arrays-e667dc24.js";import"./flatten-749195f8.js";import"./index-6c0acd90.js";import"./index-95b00894.js";import"./_isIterateeCall-47526406.js";const re={class:"main-container"},ie={class:"flex justify-between items-center"},ne={class:"text-[20px]"},me={class:"mt-[10px]"},se={class:"mt-[16px] flex justify-end"},gt=oe({__name:"sms_records",setup(pe){const N=K().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 I().then(n=>{Object.keys(n.data).forEach(t=>{const f=n.data[t],m={value:t,name:f.name};f.receiver_type==0?b.buyer.list.push(m):b.seller.list.push(m)})}).catch(()=>{})})();const k=C(),c=(n=1)=>{e.loading=!0,e.page=n,M({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=n=>{g.value.setFormData(n),g.value.showDialog=!0};return(n,t)=>{const f=A,m=R,x=G,F=q,z=J,B=Q,h=W,S=Y,w=X,s=Z,U=ee,$=te,j=ae;return p(),v("div",re,[a(w,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[u("div",ie,[u("span",ne,_(l(N)),1)]),a(w,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:i(()=>[a(S,{inline:!0,model:e.searchParam,ref_key:"searchFormRef",ref:k},{default:i(()=>[a(m,{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(m,{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,O)=>(p(),y(x,{label:P.name,value:P.value,key:O},null,8,["label","value"]))),128))]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),a(m,{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(m,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",me,[le((p(),y(U,{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"])),[[j,e.loading]]),u("div",se,[a($,{"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(H,{ref_key:"recordsDialog",ref:g,onComplete:c},null,512)]),_:1})])}}});export{gt as default};
|