mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-05 04:38:09 +00:00
2 lines
6.2 KiB
JavaScript
2 lines
6.2 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 H,E as I}from"./el-form-item-1b16c9fc.js";/* empty css *//* empty css */import{t}from"./index-0ca94763.js";import{c as D}from"./notice-c1ad68e7.js";import{_ as M}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 V,r as N,e as n,f as d,y as o,x as i,g as f,B as m,u as l,F as T,z as F,v as y,A as k,M as le,H as E}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={key:0},pe={key:1},ce={key:2},de={class:"mt-[16px] flex justify-end"},yt=oe({__name:"notice_records",setup(ue){const L=K().meta.title,e=V({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{key:"",receiver:"",create_time:[]}}),h=V({buyer:{label:t("buyerNotice"),list:[]},seller:{label:t("sellerNotice"),list:[]}});(async()=>{await D().then(s=>{Object.keys(s.data).forEach(a=>{const b=s.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=N(),u=(s=1)=>{e.loading=!0,e.page=s,D({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=N(null),z=s=>{g.value.setFormData(s),g.value.showDialog=!0};return(s,a)=>{const b=A,p=H,x=G,B=q,U=J,$=Q,v=W,j=I,P=X,c=Z,O=ee,R=te,S=ae;return n(),d("div",re,[o(P,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[f("div",ie,[f("span",ne,m(l(L)),1)]),o(P,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:i(()=>[o(j,{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(U,{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(T,null,F(h,(r,_)=>(n(),y(B,{key:_,label:r.label},{default:i(()=>[(n(!0),d(T,null,F(r.list,(C,Y)=>(n(),y(x,{label:C.name,value:C.value,key:Y},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($,{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(()=>[k(m(l(t)("search")),1)]),_:1}),o(v,{onClick:a[4]||(a[4]=r=>{var _;return(_=w.value)==null?void 0:_.resetFields()})},{default:i(()=>[k(m(l(t)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),f("div",me,[le((n(),y(O,{data:e.data,size:"large"},{empty:i(()=>[f("span",null,m(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",se,m(l(t)("sms")),1)):E("",!0),r.notice_type=="wechat"?(n(),d("div",pe,m(l(t)("wechat")),1)):E("",!0),r.notice_type=="weapp"?(n(),d("div",ce,m(l(t)("weapp")),1)):E("",!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",align:"right",width:"100"},{default:i(({row:r})=>[o(v,{type:"primary",link:"",onClick:_=>z(r)},{default:i(()=>[k(m(l(t)("info")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[S,e.loading]]),f("div",de,[o(R,{"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{yt as default};
|