沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
1
import{d as B,r as s,A as H,b as K,a1 as G,o as u,c as v,k as e,B as t,a,a2 as C,F as g,i as I,a3 as U,N as n,g as m,O as c,P as M,D as W,a7 as X,S as Z,$,R as j,T as J,U as Q,V as ee,W as le,X as ae,Y as te,Z as re}from"./index-BP6bNRoi.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang-sJUY8qtC.js";import{_ as pe}from"./DictTag.vue_vue_type_script_lang-DwXPHgid.js";import{_ as ue}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{d as R}from"./formatTime-DwR9f7DP.js";import{d as de}from"./index-DTTJX9Ya.js";import{_ as se}from"./NotifyMessageDetail.vue_vue_type_script_setup_true_lang-qKCHAKUG.js";import"./index-BZESAUPP.js";import"./color-DXkOL5Tu.js";import"./el-card-bU92WWV4.js";import"./Dialog.vue_vue_type_style_index_0_lang-DFckl8Er.js";import"./el-descriptions-item-BuMEVwqR.js";const ne=B({name:"SystemNotifyMessage",__name:"index",setup(ie){const f=s(!0),w=s(0),h=s([]),r=H({pageNo:1,pageSize:10,userType:void 0,userId:void 0,templateCode:void 0,templateType:void 0,createTime:[]}),V=s(),_=async()=>{f.value=!0;try{const y=await de(r);h.value=y.list,w.value=y.total}finally{f.value=!1}},i=()=>{r.pageNo=1,_()},F=()=>{V.value.resetFields(),i()},S=s();return K(()=>{_()}),(y,o)=>{const E=X,d=Z,x=$,N=j,A=J,Y=Q,T=ee,D=le,k=ue,p=ae,b=pe,O=te,z=oe,L=G("hasPermi"),q=re;return u(),v(g,null,[e(k,null,{default:t(()=>[e(D,{class:"-mb-15px",model:a(r),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"68px"},{default:t(()=>[e(d,{label:"\u7528\u6237\u7F16\u53F7",prop:"userId"},{default:t(()=>[e(E,{modelValue:a(r).userId,"onUpdate:modelValue":o[0]||(o[0]=l=>a(r).userId=l),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7",clearable:"",onKeyup:C(i,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:t(()=>[e(N,{modelValue:a(r).userType,"onUpdate:modelValue":o[1]||(o[1]=l=>a(r).userType=l),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B",clearable:"",class:"!w-240px"},{default:t(()=>[(u(!0),v(g,null,I(a(U)(a(n).USER_TYPE),l=>(u(),m(x,{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:t(()=>[e(E,{modelValue:a(r).templateCode,"onUpdate:modelValue":o[2]||(o[2]=l=>a(r).templateCode=l),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u7F16\u7801",clearable:"",onKeyup:C(i,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u6A21\u7248\u7C7B\u578B",prop:"templateType"},{default:t(()=>[e(N,{modelValue:a(r).templateType,"onUpdate:modelValue":o[3]||(o[3]=l=>a(r).templateType=l),placeholder:"\u8BF7\u9009\u62E9\u6A21\u7248\u7C7B\u578B",clearable:"",class:"!w-240px"},{default:t(()=>[(u(!0),v(g,null,I(a(U)(a(n).SYSTEM_NOTIFY_TEMPLATE_TYPE),l=>(u(),m(x,{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:t(()=>[e(A,{modelValue:a(r).createTime,"onUpdate:modelValue":o[4]||(o[4]=l=>a(r).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:t(()=>[e(T,{onClick:i},{default:t(()=>[e(Y,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),e(T,{onClick:F},{default:t(()=>[e(Y,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,null,{default:t(()=>[M((u(),m(O,{data:a(h)},{default:t(()=>[e(p,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(p,{label:"\u7528\u6237\u7C7B\u578B",align:"center",prop:"userType"},{default:t(l=>[e(b,{type:a(n).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:t(l=>[c(W(l.row.templateParams),1)]),_:1}),e(p,{label:"\u6A21\u7248\u7C7B\u578B",align:"center",prop:"templateType",width:"120"},{default:t(l=>[e(b,{type:a(n).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:t(l=>[e(b,{type:a(n).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(R)},null,8,["formatter"]),e(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:a(R)},null,8,["formatter"]),e(p,{label:"\u64CD\u4F5C",align:"center",fixed:"right"},{default:t(l=>[M((u(),m(T,{link:"",type:"primary",onClick:me=>{return P=l.row,void S.value.open(P);var P}},{default:t(()=>[c(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[L,["system:notify-message:query"]]])]),_:1})]),_:1},8,["data"])),[[q,a(f)]]),e(z,{total:a(w),page:a(r).pageNo,"onUpdate:page":o[5]||(o[5]=l=>a(r).pageNo=l),limit:a(r).pageSize,"onUpdate:limit":o[6]||(o[6]=l=>a(r).pageSize=l),onPagination:_},null,8,["total","page","limit"])]),_:1}),e(se,{ref_key:"detailRef",ref:S},null,512)],64)}}});export{ne as default};