index-dfe17fcf.js 5.3 KB

1
  1. import{d as J,r as _,g as K,z as Q,o as f,c as E,i as a,w as l,a as t,F as Y,C as W,k as D,l as c,D as X,t as Z,G as $,H as aa,I as ea,q as ta,n as la,s as ra,J as sa,K as oa,L as na,M as _a,_ as ia,__tla as ua}from"./index-2f799233.js";import{_ as ca,__tla as pa}from"./index-e6cd813f.js";import{_ as ma,__tla as da}from"./DictTag-ea4c6cc2.js";import{_ as fa,__tla as ya}from"./ContentWrap-9da801df.js";import{g as ha,D as v,__tla as wa}from"./dict-20c916e2.js";import{d as F,__tla as va}from"./formatTime-2157894c.js";import{g as ga,u as I,a as Sa,__tla as ba}from"./index-b4611498.js";import Ta,{__tla as ka}from"./MyNotifyMessageDetail-02426a06.js";import{u as xa,__tla as Na}from"./useMessage-e567ad40.js";import{__tla as Ca}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as Ea}from"./el-card-c64c83d1.js";import{__tla as Ya}from"./Dialog-6fd39e06.js";import{__tla as Da}from"./el-descriptions-item-0a78cef7.js";let R,Fa=Promise.all([(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Da}catch{}})()]).then(async()=>{R=ia(J({name:"SystemMyNotify",__name:"index",setup(Ia){const g=xa(),y=_(!0),S=_(0),b=_([]),r=K({pageNo:1,pageSize:10,readStatus:void 0,createTime:[]}),T=_(),p=_(),m=_([]),i=async()=>{y.value=!0;try{const s=await ga(r);b.value=s.list,S.value=s.total}finally{y.value=!1}},k=()=>{r.pageNo=1,i()},V=()=>{T.value.resetFields(),p.value.clearSelection(),k()},x=_(),z=async s=>{await I(s),await i()},M=async()=>{await Sa(),g.success("\u5168\u90E8\u5DF2\u8BFB\u6210\u529F\uFF01"),p.value.clearSelection(),await i()},A=async()=>{m.value.length!==0&&(await I(m.value),g.success("\u6279\u91CF\u5DF2\u8BFB\u6210\u529F\uFF01"),p.value.clearSelection(),await i())},O=s=>!s.readStatus,H=s=>{m.value=[],s&&s.forEach(o=>m.value.push(o.id))};return Q(()=>{i()}),(s,o)=>{const L=$,P=aa,h=ea,U=ta,d=la,u=ra,G=sa,N=fa,n=oa,C=ma,j=na,q=ca,B=_a;return f(),E(Y,null,[a(N,null,{default:l(()=>[a(G,{class:"-mb-15px",model:t(r),ref_key:"queryFormRef",ref:T,inline:!0,"label-width":"68px"},{default:l(()=>[a(h,{label:"\u662F\u5426\u5DF2\u8BFB",prop:"readStatus"},{default:l(()=>[a(P,{modelValue:t(r).readStatus,"onUpdate:modelValue":o[0]||(o[0]=e=>t(r).readStatus=e),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:l(()=>[(f(!0),E(Y,null,W(t(ha)(t(v).INFRA_BOOLEAN_STRING),e=>(f(),D(L,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(h,{label:"\u53D1\u9001\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(U,{modelValue:t(r).createTime,"onUpdate:modelValue":o[1]||(o[1]=e=>t(r).createTime=e),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(h,null,{default:l(()=>[a(u,{onClick:k},{default:l(()=>[a(d,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),a(u,{onClick:V},{default:l(()=>[a(d,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),a(u,{onClick:A},{default:l(()=>[a(d,{icon:"ep:reading",class:"mr-5px"}),c(" \u6807\u8BB0\u5DF2\u8BFB ")]),_:1}),a(u,{onClick:M},{default:l(()=>[a(d,{icon:"ep:reading",class:"mr-5px"}),c(" \u5168\u90E8\u5DF2\u8BFB ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(N,null,{default:l(()=>[X((f(),D(j,{data:t(b),ref_key:"tableRef",ref:p,"row-key":"id",onSelectionChange:H},{default:l(()=>[a(n,{type:"selection",selectable:O,"reserve-selection":!0}),a(n,{label:"\u53D1\u9001\u4EBA",align:"center",prop:"templateNickname",width:"180"}),a(n,{label:"\u53D1\u9001\u65F6\u95F4",align:"center",prop:"createTime",width:"200",formatter:t(F)},null,8,["formatter"]),a(n,{label:"\u7C7B\u578B",align:"center",prop:"templateType",width:"180"},{default:l(e=>[a(C,{type:t(v).SYSTEM_NOTIFY_TEMPLATE_TYPE,value:e.row.templateType},null,8,["type","value"])]),_:1}),a(n,{label:"\u6D88\u606F\u5185\u5BB9",align:"center",prop:"templateContent","show-overflow-tooltip":""}),a(n,{label:"\u662F\u5426\u5DF2\u8BFB",align:"center",prop:"readStatus",width:"160"},{default:l(e=>[a(C,{type:t(v).INFRA_BOOLEAN_STRING,value:e.row.readStatus},null,8,["type","value"])]),_:1}),a(n,{label:"\u9605\u8BFB\u65F6\u95F4",align:"center",prop:"readTime",width:"200",formatter:t(F)},null,8,["formatter"]),a(n,{label:"\u64CD\u4F5C",align:"center",width:"160"},{default:l(e=>[a(u,{link:"",type:e.row.readStatus?"primary":"warning",onClick:Ra=>{return(w=e.row).readStatus||z(w.id),void x.value.open(w);var w}},{default:l(()=>[c(Z(e.row.readStatus?"\u8BE6\u60C5":"\u5DF2\u8BFB"),1)]),_:2},1032,["type","onClick"])]),_:1})]),_:1},8,["data"])),[[B,t(y)]]),a(q,{total:t(S),page:t(r).pageNo,"onUpdate:page":o[2]||(o[2]=e=>t(r).pageNo=e),limit:t(r).pageSize,"onUpdate:limit":o[3]||(o[3]=e=>t(r).pageSize=e),onPagination:i},null,8,["total","page","limit"])]),_:1}),a(Ta,{ref_key:"detailRef",ref:x},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/notify/my/index.vue"]])});export{Fa as __tla,R as default};