沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
提交 | 用户 | 时间
314507 1 import{d as K,J as q,Q as B,r as m,A as J,b as Q,a1 as W,o as n,c as x,k as e,B as t,a as l,a2 as X,F as M,i as Z,a3 as $,N as h,g as d,O as c,P as _,a7 as j,S as G,$ as ee,R as ae,T as le,U as te,V as oe,W as se,X as re,Y as ne,Z as ie}from"./index-BP6bNRoi.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang-sJUY8qtC.js";import{_ as ue}from"./DictTag.vue_vue_type_script_lang-DwXPHgid.js";import{_ as me}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{d as de}from"./formatTime-DwR9f7DP.js";import{a as ce,d as fe}from"./index-wN65iY9u.js";import{_ as _e}from"./SmsChannelForm.vue_vue_type_script_setup_true_lang-DXWds-UQ.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"./constants-CuOBQ73z.js";const ge=K({name:"SystemSmsChannel",__name:"index",setup(ye){const{t:A}=q(),v=B(),g=m(!1),S=m(0),k=m([]),C=m(),s=J({pageNo:1,pageSize:10,signature:void 0,status:void 0,createTime:[]}),i=async()=>{g.value=!0;try{const p=await ce(s);k.value=p.list,S.value=p.total}finally{g.value=!1}},y=()=>{s.pageNo=1,i()},O=()=>{C.value.resetFields(),y()},T=m(),U=(p,o)=>{T.value.open(p,o)};return Q(()=>{i()}),(p,o)=>{const P=j,f=G,Y=ee,D=ae,R=le,w=te,u=oe,z=se,V=me,r=re,N=ue,E=ne,F=pe,b=W("hasPermi"),H=ie;return n(),x(M,null,[e(V,null,{default:t(()=>[e(z,{class:"-mb-15px",model:l(s),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:t(()=>[e(f,{label:"\u77ED\u4FE1\u7B7E\u540D",prop:"signature"},{default:t(()=>[e(P,{modelValue:l(s).signature,"onUpdate:modelValue":o[0]||(o[0]=a=>l(s).signature=a),placeholder:"\u8BF7\u8F93\u5165\u77ED\u4FE1\u7B7E\u540D",clearable:"",onKeyup:X(y,["enter"])},null,8,["modelValue"])]),_:1}),e(f,{label:"\u542F\u7528\u72B6\u6001",prop:"status"},{default:t(()=>[e(D,{modelValue:l(s).status,"onUpdate:modelValue":o[1]||(o[1]=a=>l(s).status=a),placeholder:"\u8BF7\u9009\u62E9\u542F\u7528\u72B6\u6001",class:"!w-240px",clearable:""},{default:t(()=>[(n(!0),x(M,null,Z(l($)(l(h).COMMON_STATUS),a=>(n(),d(Y,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(R,{modelValue:l(s).createTime,"onUpdate:modelValue":o[2]||(o[2]=a=>l(s).createTime=a),"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")]},null,8,["modelValue","default-time"])]),_:1}),e(f,null,{default:t(()=>[e(u,{onClick:y},{default:t(()=>[e(w,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),e(u,{onClick:O},{default:t(()=>[e(w,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),_((n(),d(u,{type:"primary",plain:"",onClick:o[3]||(o[3]=a=>U("create"))},{default:t(()=>[e(w,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E")]),_:1})),[[b,["system:sms-channel:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(V,null,{default:t(()=>[_((n(),d(E,{data:l(k)},{default:t(()=>[e(r,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(r,{label:"\u77ED\u4FE1\u7B7E\u540D",align:"center",prop:"signature"}),e(r,{label:"\u6E20\u9053\u7F16\u7801",align:"center",prop:"code"},{default:t(a=>[e(N,{type:l(h).SYSTEM_SMS_CHANNEL_CODE,value:a.row.code},null,8,["type","value"])]),_:1}),e(r,{label:"\u542F\u7528\u72B6\u6001",align:"center",prop:"status"},{default:t(a=>[e(N,{type:l(h).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(r,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),e(r,{label:"\u77ED\u4FE1 API \u7684\u8D26\u53F7",align:"center",prop:"apiKey","show-overflow-tooltip":!0,width:"180"}),e(r,{label:"\u77ED\u4FE1 API \u7684\u5BC6\u94A5",align:"center",prop:"apiSecret","show-overflow-tooltip":!0,width:"180"}),e(r,{label:"\u77ED\u4FE1\u53D1\u9001\u56DE\u8C03 URL",align:"center",prop:"callbackUrl","show-overflow-tooltip":!0,width:"180"}),e(r,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:l(de)},null,8,["formatter"]),e(r,{label:"\u64CD\u4F5C",align:"center"},{default:t(a=>[_((n(),d(u,{link:"",type:"primary",onClick:L=>U("update",a.row.id)},{default:t(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[b,["system:sms-channel:update"]]]),_((n(),d(u,{link:"",type:"danger",onClick:L=>(async I=>{try{await v.delConfirm(),await fe(I),v.success(A("common.delSuccess")),await i()}catch{}})(a.row.id)},{default:t(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[b,["system:sms-channel:delete"]]])]),_:1})]),_:1},8,["data"])),[[H,l(g)]]),e(F,{total:l(S),page:l(s).pageNo,"onUpdate:page":o[4]||(o[4]=a=>l(s).pageNo=a),limit:l(s).pageSize,"onUpdate:limit":o[5]||(o[5]=a=>l(s).pageSize=a),onPagination:i},null,8,["total","page","limit"])]),_:1}),e(_e,{ref_key:"formRef",ref:T,onSuccess:i},null,512)],64)}}});export{ge as default};