选煤厂安全管理系统前端代码
houzhongjian
2024-11-25 37b2044f04a09e89f82f8484279b5f06b7194481
1
import{aV as O,d as j,Q as G,r as p,A as J,b as ee,a1 as le,o as s,c as S,k as l,B as t,a,a2 as z,F as g,i as U,g as m,dQ as ae,N as d,a3 as F,O as _,P as I,C as w,D as f,h as te,a7 as oe,S as re,$ as se,R as ue,T as ne,U as de,V as pe,W as ie,X as me,Y as ce,Z as Se}from"./index-CHTXMeh8.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang-Cenk7Bi3.js";import{_ as fe}from"./DictTag.vue_vue_type_script_lang-DPOZRs0A.js";import{_ as ve}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{d as ye,f as q}from"./formatTime-DG99nHw2.js";import{d as be}from"./download-e0EdwhTv.js";import{b as ge}from"./index-DxIeD0TF.js";import{_ as we}from"./SmsLogDetail.vue_vue_type_script_setup_true_lang-C1Loi1PJ.js";import"./index-DVe591HI.js";import"./color-DXkOL5Tu.js";import"./el-card-Bdk9qx7q.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";import"./el-descriptions-item-XOb4a1bP.js";const Te={key:0},he=j({name:"SystemSmsLog",__name:"index",setup(Ve){const K=G(),T=p(!1),k=p(0),N=p([]),D=p(),r=J({pageNo:1,pageSize:10,channelId:null,templateId:null,mobile:"",sendStatus:null,receiveStatus:null,sendTime:[],receiveTime:[]}),h=p(!1),V=p([]),E=async()=>{T.value=!0;try{const o=await(i=r,O.get({url:"/system/sms-log/page",params:i}));N.value=o.list,k.value=o.total}finally{T.value=!1}var i},v=()=>{r.pageNo=1,E()},Q=()=>{D.value.resetFields(),v()},$=async()=>{try{await K.exportConfirm(),h.value=!0;const o=await(i=r,O.download({url:"/system/sms-log/export-excel",params:i}));be.excel(o,"\u77ED\u4FE1\u65E5\u5FD7.xls")}catch{}finally{h.value=!1}var i},A=p();return ee(async()=>{await E(),V.value=await ge()}),(i,o)=>{const H=oe,n=re,x=se,M=ue,P=ne,Y=de,y=pe,B=ie,R=ve,u=me,c=fe,W=ce,X=_e,L=le("hasPermi"),Z=Se;return s(),S(g,null,[l(R,null,{default:t(()=>[l(B,{class:"-mb-15px",model:a(r),ref_key:"queryFormRef",ref:D,inline:!0,"label-width":"100px"},{default:t(()=>[l(n,{label:"\u624B\u673A\u53F7",prop:"mobile"},{default:t(()=>[l(H,{modelValue:a(r).mobile,"onUpdate:modelValue":o[0]||(o[0]=e=>a(r).mobile=e),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",clearable:"",onKeyup:z(v,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),l(n,{label:"\u77ED\u4FE1\u6E20\u9053",prop:"channelId"},{default:t(()=>[l(M,{modelValue:a(r).channelId,"onUpdate:modelValue":o[1]||(o[1]=e=>a(r).channelId=e),placeholder:"\u8BF7\u9009\u62E9\u77ED\u4FE1\u6E20\u9053",clearable:"",class:"!w-240px"},{default:t(()=>[(s(!0),S(g,null,U(a(V),e=>(s(),m(x,{key:e.id,value:e.id,label:e.signature+`\u3010 ${a(ae)(a(d).SYSTEM_SMS_CHANNEL_CODE,e.code)}\u3011`},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(n,{label:"\u6A21\u677F\u7F16\u53F7",prop:"templateId"},{default:t(()=>[l(H,{modelValue:a(r).templateId,"onUpdate:modelValue":o[2]||(o[2]=e=>a(r).templateId=e),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u7F16\u53F7",clearable:"",onKeyup:z(v,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),l(n,{label:"\u53D1\u9001\u72B6\u6001",prop:"sendStatus"},{default:t(()=>[l(M,{modelValue:a(r).sendStatus,"onUpdate:modelValue":o[3]||(o[3]=e=>a(r).sendStatus=e),placeholder:"\u8BF7\u9009\u62E9\u53D1\u9001\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(s(!0),S(g,null,U(a(F)(a(d).SYSTEM_SMS_SEND_STATUS),e=>(s(),m(x,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(n,{label:"\u53D1\u9001\u65F6\u95F4",prop:"sendTime"},{default:t(()=>[l(P,{modelValue:a(r).sendTime,"onUpdate:modelValue":o[4]||(o[4]=e=>a(r).sendTime=e),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F",class:"!w-240px"},null,8,["modelValue"])]),_:1}),l(n,{label:"\u63A5\u6536\u72B6\u6001",prop:"receiveStatus"},{default:t(()=>[l(M,{modelValue:a(r).receiveStatus,"onUpdate:modelValue":o[5]||(o[5]=e=>a(r).receiveStatus=e),placeholder:"\u8BF7\u9009\u62E9\u63A5\u6536\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(s(!0),S(g,null,U(a(F)(a(d).SYSTEM_SMS_RECEIVE_STATUS),e=>(s(),m(x,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(n,{label:"\u63A5\u6536\u65F6\u95F4",prop:"receiveTime"},{default:t(()=>[l(P,{modelValue:a(r).receiveTime,"onUpdate:modelValue":o[6]||(o[6]=e=>a(r).receiveTime=e),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F",class:"!w-240px"},null,8,["modelValue"])]),_:1}),l(n,null,{default:t(()=>[l(y,{onClick:v},{default:t(()=>[l(Y,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),l(y,{onClick:Q},{default:t(()=>[l(Y,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),I((s(),m(y,{type:"success",plain:"",onClick:$,loading:a(h)},{default:t(()=>[l(Y,{icon:"ep:download",class:"mr-5px"}),_(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[L,["system:sms-log:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),l(R,null,{default:t(()=>[I((s(),m(W,{data:a(N)},{default:t(()=>[l(u,{label:"\u7F16\u53F7",align:"center",prop:"id"}),l(u,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:a(ye)},null,8,["formatter"]),l(u,{label:"\u624B\u673A\u53F7",align:"center",prop:"mobile",width:"120"},{default:t(e=>[w("div",null,f(e.row.mobile),1),e.row.userType&&e.row.userId?(s(),S("div",Te,[l(c,{type:a(d).USER_TYPE,value:e.row.userType},null,8,["type","value"]),_(" "+f("("+e.row.userId+")"),1)])):te("",!0)]),_:1}),l(u,{label:"\u77ED\u4FE1\u5185\u5BB9",align:"center",prop:"templateContent",width:"300"}),l(u,{label:"\u53D1\u9001\u72B6\u6001",align:"center",width:"180"},{default:t(e=>[l(c,{type:a(d).SYSTEM_SMS_SEND_STATUS,value:e.row.sendStatus},null,8,["type","value"]),w("div",null,f(a(q)(e.row.sendTime)),1)]),_:1}),l(u,{label:"\u63A5\u6536\u72B6\u6001",align:"center",width:"180"},{default:t(e=>[l(c,{type:a(d).SYSTEM_SMS_RECEIVE_STATUS,value:e.row.receiveStatus},null,8,["type","value"]),w("div",null,f(a(q)(e.row.receiveTime)),1)]),_:1}),l(u,{label:"\u77ED\u4FE1\u6E20\u9053",align:"center",width:"120"},{default:t(e=>{var C;return[w("div",null,f((C=a(V).find(b=>b.id===e.row.channelId))==null?void 0:C.signature),1),l(c,{type:a(d).SYSTEM_SMS_CHANNEL_CODE,value:e.row.channelCode},null,8,["type","value"])]}),_:1}),l(u,{label:"\u6A21\u677F\u7F16\u53F7",align:"center",prop:"templateId"}),l(u,{label:"\u77ED\u4FE1\u7C7B\u578B",align:"center",prop:"templateType"},{default:t(e=>[l(c,{type:a(d).SYSTEM_SMS_TEMPLATE_TYPE,value:e.row.templateType},null,8,["type","value"])]),_:1}),l(u,{label:"\u64CD\u4F5C",align:"center",fixed:"right","class-name":"fixed-width"},{default:t(e=>[I((s(),m(y,{link:"",type:"primary",onClick:C=>{return b=e.row,void A.value.open(b);var b}},{default:t(()=>[_(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[L,["system:sms-log:query"]]])]),_:1})]),_:1},8,["data"])),[[Z,a(T)]]),l(X,{total:a(k),page:a(r).pageNo,"onUpdate:page":o[7]||(o[7]=e=>a(r).pageNo=e),limit:a(r).pageSize,"onUpdate:limit":o[8]||(o[8]=e=>a(r).pageSize=e),onPagination:E},null,8,["total","page","limit"])]),_:1}),l(we,{ref_key:"detailRef",ref:A},null,512)],64)}}});export{he as default};