1 |
- import{d as K,r as s,f as L,x as B,Q as G,o as u,c as v,i as e,w as r,a,R as I,F as w,A as P,j as n,m as f,B as U,t as j,V as J,G as Q,C as W,D as X,p as Z,_ as $,q as ee,H as le,I as ae,J as te,K as re}from"./index-df709923.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang-6fb625ff.js";import{_ as pe}from"./DictTag.vue_vue_type_script_lang-6753827b.js";import{_ as ue}from"./ContentWrap.vue_vue_type_script_setup_true_lang-e908c5dd.js";import{a as M,D as m}from"./dict-017bf708.js";import{d as D}from"./formatTime-c6262bd7.js";import{b as de}from"./index-a5236155.js";import{_ as se}from"./NotifyMessageDetail.vue_vue_type_script_setup_true_lang-c3563ab1.js";import"./index-c8bd5ba7.js";import"./color-6e929987.js";import"./el-card-91c2276d.js";import"./Dialog-2f8bd685.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./el-descriptions-item-cc479a39.js";const me=K({name:"SystemNotifyMessage",__name:"index",setup(ie){const c=s(!0),g=s(0),h=s([]),o=L({pageNo:1,pageSize:10,userType:void 0,userId:void 0,templateCode:void 0,templateType:void 0,createTime:[]}),V=s(),_=async()=>{c.value=!0;try{const y=await de(o);h.value=y.list,g.value=y.total}finally{c.value=!1}},i=()=>{o.pageNo=1,_()},R=()=>{V.value.resetFields(),i()},x=s();return B(()=>{_()}),(y,t)=>{const E=J,d=Q,S=W,Y=X,F=Z,C=$,T=ee,A=le,N=ue,p=ae,b=pe,O=te,q=oe,z=G("hasPermi"),H=re;return u(),v(w,null,[e(N,null,{default:r(()=>[e(A,{class:"-mb-15px",model:a(o),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"68px"},{default:r(()=>[e(d,{label:"\u7528\u6237\u7F16\u53F7",prop:"userId"},{default:r(()=>[e(E,{modelValue:a(o).userId,"onUpdate:modelValue":t[0]||(t[0]=l=>a(o).userId=l),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7",clearable:"",onKeyup:I(i,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:r(()=>[e(Y,{modelValue:a(o).userType,"onUpdate:modelValue":t[1]||(t[1]=l=>a(o).userType=l),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B",clearable:"",class:"!w-240px"},{default:r(()=>[(u(!0),v(w,null,P(a(M)(a(m).USER_TYPE),l=>(u(),n(S,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u6A21\u677F\u7F16\u7801",prop:"templateCode"},{default:r(()=>[e(E,{modelValue:a(o).templateCode,"onUpdate:modelValue":t[2]||(t[2]=l=>a(o).templateCode=l),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u7F16\u7801",clearable:"",onKeyup:I(i,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u6A21\u7248\u7C7B\u578B",prop:"templateType"},{default:r(()=>[e(Y,{modelValue:a(o).templateType,"onUpdate:modelValue":t[3]||(t[3]=l=>a(o).templateType=l),placeholder:"\u8BF7\u9009\u62E9\u6A21\u7248\u7C7B\u578B",clearable:"",class:"!w-240px"},{default:r(()=>[(u(!0),v(w,null,P(a(M)(a(m).SYSTEM_NOTIFY_TEMPLATE_TYPE),l=>(u(),n(S,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:r(()=>[e(F,{modelValue:a(o).createTime,"onUpdate:modelValue":t[4]||(t[4]=l=>a(o).createTime=l),"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}),e(d,null,{default:r(()=>[e(T,{onClick:i},{default:r(()=>[e(C,{icon:"ep:search",class:"mr-5px"}),t[7]||(t[7]=f(" \u641C\u7D22"))]),_:1}),e(T,{onClick:R},{default:r(()=>[e(C,{icon:"ep:refresh",class:"mr-5px"}),t[8]||(t[8]=f(" \u91CD\u7F6E"))]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(N,null,{default:r(()=>[U((u(),n(O,{data:a(h)},{default:r(()=>[e(p,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(p,{label:"\u7528\u6237\u7C7B\u578B",align:"center",prop:"userType"},{default:r(l=>[e(b,{type:a(m).USER_TYPE,value:l.row.userType},null,8,["type","value"])]),_:1}),e(p,{label:"\u7528\u6237\u7F16\u53F7",align:"center",prop:"userId",width:"80"}),e(p,{label:"\u6A21\u677F\u7F16\u7801",align:"center",prop:"templateCode",width:"80"}),e(p,{label:"\u53D1\u9001\u4EBA\u540D\u79F0",align:"center",prop:"templateNickname",width:"180"}),e(p,{label:"\u6A21\u7248\u5185\u5BB9",align:"center",prop:"templateContent",width:"200","show-overflow-tooltip":""}),e(p,{label:"\u6A21\u7248\u53C2\u6570",align:"center",prop:"templateParams",width:"180","show-overflow-tooltip":""},{default:r(l=>[f(j(l.row.templateParams),1)]),_:1}),e(p,{label:"\u6A21\u7248\u7C7B\u578B",align:"center",prop:"templateType",width:"120"},{default:r(l=>[e(b,{type:a(m).SYSTEM_NOTIFY_TEMPLATE_TYPE,value:l.row.templateType},null,8,["type","value"])]),_:1}),e(p,{label:"\u662F\u5426\u5DF2\u8BFB",align:"center",prop:"readStatus",width:"100"},{default:r(l=>[e(b,{type:a(m).INFRA_BOOLEAN_STRING,value:l.row.readStatus},null,8,["type","value"])]),_:1}),e(p,{label:"\u9605\u8BFB\u65F6\u95F4",align:"center",prop:"readTime",width:"180",formatter:a(D)},null,8,["formatter"]),e(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:a(D)},null,8,["formatter"]),e(p,{label:"\u64CD\u4F5C",align:"center",fixed:"right"},{default:r(l=>[U((u(),n(T,{link:"",type:"primary",onClick:ne=>{return k=l.row,void x.value.open(k);var k}},{default:r(()=>t[9]||(t[9]=[f(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"])),[[z,["system:notify-message:query"]]])]),_:1})]),_:1},8,["data"])),[[H,a(c)]]),e(q,{total:a(g),page:a(o).pageNo,"onUpdate:page":t[5]||(t[5]=l=>a(o).pageNo=l),limit:a(o).pageSize,"onUpdate:limit":t[6]||(t[6]=l=>a(o).pageSize=l),onPagination:_},null,8,["total","page","limit"])]),_:1}),e(se,{ref_key:"detailRef",ref:x},null,512)],64)}}});export{me as default};
|