mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-06 21:18:10 +00:00
2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
import{g as Y,a4 as C,r as V,m as n,n as d,F as o,E as i,q as f,L as s,u as l,I as L,J as T,D as y,K as E,a1 as K,T as k}from"./base-45eb5090.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-ad71a852.js";import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{t}from"./index-3694a2b2.js";import{c as O,f as H}from"./notice-fed9c625.js";import{_ as M}from"./notice-records-info.vue_vue_type_script_setup_true_lang-130fcdd9.js";import{u as q}from"./vue-router-fcbaaf02.js";import{E as G}from"./index-4ce9333e.js";import{a as J,E as A}from"./index-2bfbe5a7.js";import{a as Q,b as W,E as X}from"./index-cc9a73f0.js";import{E as Z}from"./index-91e87b83.js";import{E as ee}from"./index-25c37860.js";import{E as te}from"./index-fc3020f4.js";import{a as ae,E as oe}from"./index-cbbcd330.js";import{E as le}from"./index-e841b684.js";import{v as re}from"./directive-9f485fe5.js";import"./el-overlay-616d6124.js";import"./event-4977bef7.js";import"./index-cd1661d3.js";import"./focus-trap-318ae2e0.js";import"./el-radio-2719e44c.js";import"./storage-4159d1ed.js";import"./index-9670e877.js";import"./index-3be486d3.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-bc58ad46.js";import"./index-aef37b98.js";import"./common-af78c857.js";import"./common-2cf17469.js";import"./_Uint8Array-e584e472.js";import"./_initCloneObject-983ff8c8.js";import"./index-201145a4.js";import"./strings-2444fdb3.js";import"./isEqual-f877b6c1.js";import"./flatten-0fc8b7eb.js";import"./index-f79599e2.js";import"./index-c0090d79.js";import"./_isIterateeCall-104f1f93.js";const ie={class:"main-container"},ne={class:"flex justify-between items-center"},se={class:"text-[20px]"},me={class:"mt-[10px]"},pe={key:0},ce={key:1},de={key:2},ue={class:"mt-[16px] flex justify-end"},ut=Y({__name:"sms_records",setup(_e){const N=q().meta.title,e=C({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{key:"",receiver:"",create_time:[]}}),h=C({buyer:{label:t("buyerNotice"),list:[]},seller:{label:t("sellerNotice"),list:[]}});(async()=>{await O().then(m=>{Object.keys(m.data).forEach(a=>{const b=m.data[a],p={value:a,name:b.name};b.receiver_type==0?h.buyer.list.push(p):h.seller.list.push(p)})}).catch(()=>{})})();const w=V(),u=(m=1)=>{e.loading=!0,e.page=m,H({page:e.page,limit:e.limit,...e.searchParam}).then(a=>{e.loading=!1,e.data=a.data.data,e.total=a.data.total}).catch(()=>{e.loading=!1})};u();const g=V(null),F=m=>{g.value.setFormData(m),g.value.showDialog=!0};return(m,a)=>{const b=G,p=J,x=Q,z=W,B=X,S=Z,v=ee,U=A,P=te,c=ae,$=oe,j=le,I=re;return n(),d("div",ie,[o(P,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[f("div",ne,[f("span",se,s(l(N)),1)]),o(P,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:i(()=>[o(U,{inline:!0,model:e.searchParam,ref_key:"searchFormRef",ref:w},{default:i(()=>[o(p,{label:l(t)("searchReceiver"),prop:"receiver"},{default:i(()=>[o(b,{modelValue:e.searchParam.receiver,"onUpdate:modelValue":a[0]||(a[0]=r=>e.searchParam.receiver=r),placeholder:l(t)("receiverPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(p,{label:l(t)("noticeKey"),prop:"key"},{default:i(()=>[o(B,{modelValue:e.searchParam.key,"onUpdate:modelValue":a[1]||(a[1]=r=>e.searchParam.key=r),clearable:"",placeholder:l(t)("groupIdPlaceholder"),class:"input-width"},{default:i(()=>[o(x,{label:l(t)("selectPlaceholder"),value:""},null,8,["label"]),(n(!0),d(L,null,T(h,(r,_)=>(n(),y(z,{key:_,label:r.label},{default:i(()=>[(n(!0),d(L,null,T(r.list,(D,R)=>(n(),y(x,{label:D.name,value:D.value,key:R},null,8,["label","value"]))),128))]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),o(p,{label:l(t)("createTime"),prop:"create_time"},{default:i(()=>[o(S,{modelValue:e.searchParam.create_time,"onUpdate:modelValue":a[2]||(a[2]=r=>e.searchParam.create_time=r),type:"datetimerange","value-format":"YYYY-MM-DD HH:mm:ss","start-placeholder":l(t)("startDate"),"end-placeholder":l(t)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),o(p,null,{default:i(()=>[o(v,{type:"primary",onClick:a[3]||(a[3]=r=>u())},{default:i(()=>[E(s(l(t)("search")),1)]),_:1}),o(v,{onClick:a[4]||(a[4]=r=>{var _;return(_=w.value)==null?void 0:_.resetFields()})},{default:i(()=>[E(s(l(t)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),f("div",me,[K((n(),y($,{data:e.data,size:"large"},{empty:i(()=>[f("span",null,s(e.loading?"":l(t)("emptyData")),1)]),default:i(()=>[o(c,{prop:"name",label:l(t)("noticeKey"),"min-width":"120"},null,8,["label"]),o(c,{prop:"notice_type",label:l(t)("noticeType"),"min-width":"120"},{default:i(({row:r})=>[r.notice_type=="sms"?(n(),d("div",pe,s(l(t)("sms")),1)):k("",!0),r.notice_type=="wechat"?(n(),d("div",ce,s(l(t)("wechat")),1)):k("",!0),r.notice_type=="weapp"?(n(),d("div",de,s(l(t)("weapp")),1)):k("",!0)]),_:1},8,["label"]),o(c,{prop:"nickname",label:l(t)("nickname"),"min-width":"120"},null,8,["label"]),o(c,{prop:"receiver",label:l(t)("receiver"),"min-width":"120"},null,8,["label"]),o(c,{prop:"create_time",label:l(t)("createTime"),"min-width":"140"},null,8,["label"]),o(c,{label:l(t)("operation"),fixed:"right",width:"100"},{default:i(({row:r})=>[o(v,{type:"primary",link:"",onClick:_=>F(r)},{default:i(()=>[E(s(l(t)("info")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[I,e.loading]]),f("div",ue,[o(j,{"current-page":e.page,"onUpdate:currentPage":a[5]||(a[5]=r=>e.page=r),"page-size":e.limit,"onUpdate:pageSize":a[6]||(a[6]=r=>e.limit=r),layout:"total, sizes, prev, pager, next, jumper",total:e.total,onSizeChange:a[7]||(a[7]=r=>u()),onCurrentChange:u},null,8,["current-page","page-size","total"])])]),o(M,{ref_key:"recordsDialog",ref:g,onComplete:u},null,512)]),_:1})])}}});export{ut as default};
|