index-be5e2541.js 5.5 KB

1
  1. import{d as q,B as j,r as p,f as B,z as G,S as J,o as n,c as N,i as e,w as t,a as l,T as X,F as x,C as Q,j as c,m,D as f,X as W,I as Z,G as $,H as ee,p as ae,_ as le,q as te,J as re,K as oe,L as se,M as ne,__tla as ie}from"./index-1e808f2e.js";import{_ as _e,__tla as ue}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as pe,__tla as ce}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{_ as me,__tla as de}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as fe,D as b,__tla as ye}from"./dict-a31cb4ba.js";import{d as he,__tla as ge}from"./formatTime-a348c3be.js";import{a as we,d as be,__tla as ve}from"./index-a194b225.js";import{_ as Se,__tla as ke}from"./SmsChannelForm.vue_vue_type_script_setup_true_lang-eb99094c.js";import{u as Ce,__tla as Te}from"./useMessage-5f9e8917.js";import{__tla as Me}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Ue}from"./el-card-03b3588b.js";import{__tla as Ve}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./constants-e43f22dd.js";let D,Ne=Promise.all([(()=>{try{return ie}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ve}catch{}})()]).then(async()=>{D=q({name:"SystemSmsChannel",__name:"index",setup(xe){const{t:O}=j(),v=Ce(),y=p(!1),S=p(0),k=p([]),C=p(),o=B({pageNo:1,pageSize:10,signature:void 0,status:void 0,createTime:[]}),i=async()=>{y.value=!0;try{const _=await we(o);k.value=_.list,S.value=_.total}finally{y.value=!1}},h=()=>{o.pageNo=1,i()},A=()=>{C.value.resetFields(),h()},T=p(),M=(_,r)=>{T.value.open(_,r)};return G(()=>{i()}),(_,r)=>{const H=W,d=Z,P=$,Y=ee,z=ae,g=le,u=te,F=re,U=me,s=oe,V=pe,E=se,I=_e,w=J("hasPermi"),K=ne;return n(),N(x,null,[e(U,null,{default:t(()=>[e(F,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:t(()=>[e(d,{label:"\u77ED\u4FE1\u7B7E\u540D",prop:"signature"},{default:t(()=>[e(H,{modelValue:l(o).signature,"onUpdate:modelValue":r[0]||(r[0]=a=>l(o).signature=a),placeholder:"\u8BF7\u8F93\u5165\u77ED\u4FE1\u7B7E\u540D",clearable:"",onKeyup:X(h,["enter"])},null,8,["modelValue"])]),_:1}),e(d,{label:"\u542F\u7528\u72B6\u6001",prop:"status"},{default:t(()=>[e(Y,{modelValue:l(o).status,"onUpdate:modelValue":r[1]||(r[1]=a=>l(o).status=a),placeholder:"\u8BF7\u9009\u62E9\u542F\u7528\u72B6\u6001",clearable:""},{default:t(()=>[(n(!0),N(x,null,Q(l(fe)(l(b).COMMON_STATUS),a=>(n(),c(P,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[e(z,{modelValue:l(o).createTime,"onUpdate:modelValue":r[2]||(r[2]=a=>l(o).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(d,null,{default:t(()=>[e(u,{onClick:h},{default:t(()=>[e(g,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),e(u,{onClick:A},{default:t(()=>[e(g,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),f((n(),c(u,{type:"primary",plain:"",onClick:r[3]||(r[3]=a=>M("create"))},{default:t(()=>[e(g,{icon:"ep:plus",class:"mr-5px"}),m(" \u65B0\u589E")]),_:1})),[[w,["system:sms-channel:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(U,null,{default:t(()=>[f((n(),c(E,{data:l(k)},{default:t(()=>[e(s,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(s,{label:"\u77ED\u4FE1\u7B7E\u540D",align:"center",prop:"signature"}),e(s,{label:"\u6E20\u9053\u7F16\u7801",align:"center",prop:"code"},{default:t(a=>[e(V,{type:l(b).SYSTEM_SMS_CHANNEL_CODE,value:a.row.code},null,8,["type","value"])]),_:1}),e(s,{label:"\u542F\u7528\u72B6\u6001",align:"center",prop:"status"},{default:t(a=>[e(V,{type:l(b).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(s,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),e(s,{label:"\u77ED\u4FE1 API \u7684\u8D26\u53F7",align:"center",prop:"apiKey","show-overflow-tooltip":!0,width:"180"}),e(s,{label:"\u77ED\u4FE1 API \u7684\u5BC6\u94A5",align:"center",prop:"apiSecret","show-overflow-tooltip":!0,width:"180"}),e(s,{label:"\u77ED\u4FE1\u53D1\u9001\u56DE\u8C03 URL",align:"center",prop:"callbackUrl","show-overflow-tooltip":!0,width:"180"}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:l(he)},null,8,["formatter"]),e(s,{label:"\u64CD\u4F5C",align:"center"},{default:t(a=>[f((n(),c(u,{link:"",type:"primary",onClick:L=>M("update",a.row.id)},{default:t(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["system:sms-channel:update"]]]),f((n(),c(u,{link:"",type:"danger",onClick:L=>(async R=>{try{await v.delConfirm(),await be(R),v.success(O("common.delSuccess")),await i()}catch{}})(a.row.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["system:sms-channel:delete"]]])]),_:1})]),_:1},8,["data"])),[[K,l(y)]]),e(I,{total:l(S),page:l(o).pageNo,"onUpdate:page":r[4]||(r[4]=a=>l(o).pageNo=a),limit:l(o).pageSize,"onUpdate:limit":r[5]||(r[5]=a=>l(o).pageSize=a),onPagination:i},null,8,["total","page","limit"])]),_:1}),e(Se,{ref_key:"formRef",ref:T,onSuccess:i},null,512)],64)}}})});export{Ne as __tla,D as default};