index-24bbd228.js 5.5 KB

1
  1. import{d as q,P as J,r as p,x as Q,b as W,a3 as X,o as n,c as M,f as a,A as t,a as l,a4 as j,F as N,Q as B,C as c,D as m,k as f,a8 as G,U as Z,R as $,S as aa,I as ea,_ as la,J as ta,V as ra,W as oa,X as sa,Y as na,__tla as _a}from"./index-f65577b8.js";import{_ as ia,__tla as ua}from"./index.vue_vue_type_script_setup_true_lang-53598c8e.js";import{_ as pa,__tla as ca}from"./DictTag.vue_vue_type_script_lang-48f8deb5.js";import{_ as ma,__tla as da}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9fbbd655.js";import{a as fa,D as b,__tla as ya}from"./dict-fa3ffbd2.js";import{d as ha,__tla as ga}from"./formatTime-411ed1a1.js";import{a as wa,d as ba,__tla as va}from"./index-c1ad0018.js";import{_ as Sa,__tla as ka}from"./SmsChannelForm.vue_vue_type_script_setup_true_lang-7738be8e.js";import{u as Ca,__tla as Ta}from"./useMessage-4dbf0ae4.js";import{__tla as Ua}from"./index-1896261a.js";import"./color-6e929987.js";import{__tla as Va}from"./el-card-ab53e6aa.js";import{__tla as xa}from"./Dialog-bd3317a7.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./constants-c811e5ff.js";let D,Ma=Promise.all([(()=>{try{return _a}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return xa}catch{}})()]).then(async()=>{D=q({name:"SystemSmsChannel",__name:"index",setup(Na){const{t:P}=J(),v=Ca(),y=p(!1),S=p(0),k=p([]),C=p(),o=Q({pageNo:1,pageSize:10,signature:void 0,status:void 0,createTime:[]}),_=async()=>{y.value=!0;try{const i=await wa(o);k.value=i.list,S.value=i.total}finally{y.value=!1}},h=()=>{o.pageNo=1,_()},A=()=>{C.value.resetFields(),h()},T=p(),U=(i,r)=>{T.value.open(i,r)};return W(()=>{_()}),(i,r)=>{const O=G,d=Z,Y=$,R=aa,z=ea,g=la,u=ta,E=ra,V=ma,s=oa,x=pa,F=sa,H=ia,w=X("hasPermi"),I=na;return n(),M(N,null,[a(V,null,{default:t(()=>[a(E,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:t(()=>[a(d,{label:"\u77ED\u4FE1\u7B7E\u540D",prop:"signature"},{default:t(()=>[a(O,{modelValue:l(o).signature,"onUpdate:modelValue":r[0]||(r[0]=e=>l(o).signature=e),placeholder:"\u8BF7\u8F93\u5165\u77ED\u4FE1\u7B7E\u540D",clearable:"",onKeyup:j(h,["enter"])},null,8,["modelValue"])]),_:1}),a(d,{label:"\u542F\u7528\u72B6\u6001",prop:"status"},{default:t(()=>[a(R,{modelValue:l(o).status,"onUpdate:modelValue":r[1]||(r[1]=e=>l(o).status=e),placeholder:"\u8BF7\u9009\u62E9\u542F\u7528\u72B6\u6001",clearable:""},{default:t(()=>[(n(!0),M(N,null,B(l(fa)(l(b).COMMON_STATUS),e=>(n(),c(Y,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(z,{modelValue:l(o).createTime,"onUpdate:modelValue":r[2]||(r[2]=e=>l(o).createTime=e),"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}),a(d,null,{default:t(()=>[a(u,{onClick:h},{default:t(()=>[a(g,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),a(u,{onClick:A},{default:t(()=>[a(g,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),f((n(),c(u,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>U("create"))},{default:t(()=>[a(g,{icon:"ep:plus",class:"mr-5px"}),m(" \u65B0\u589E")]),_:1})),[[w,["system:sms-channel:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(V,null,{default:t(()=>[f((n(),c(F,{data:l(k)},{default:t(()=>[a(s,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(s,{label:"\u77ED\u4FE1\u7B7E\u540D",align:"center",prop:"signature"}),a(s,{label:"\u6E20\u9053\u7F16\u7801",align:"center",prop:"code"},{default:t(e=>[a(x,{type:l(b).SYSTEM_SMS_CHANNEL_CODE,value:e.row.code},null,8,["type","value"])]),_:1}),a(s,{label:"\u542F\u7528\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(x,{type:l(b).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(s,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),a(s,{label:"\u77ED\u4FE1 API \u7684\u8D26\u53F7",align:"center",prop:"apiKey","show-overflow-tooltip":!0,width:"180"}),a(s,{label:"\u77ED\u4FE1 API \u7684\u5BC6\u94A5",align:"center",prop:"apiSecret","show-overflow-tooltip":!0,width:"180"}),a(s,{label:"\u77ED\u4FE1\u53D1\u9001\u56DE\u8C03 URL",align:"center",prop:"callbackUrl","show-overflow-tooltip":!0,width:"180"}),a(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:l(ha)},null,8,["formatter"]),a(s,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[f((n(),c(u,{link:"",type:"primary",onClick:K=>U("update",e.row.id)},{default:t(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["system:sms-channel:update"]]]),f((n(),c(u,{link:"",type:"danger",onClick:K=>(async L=>{try{await v.delConfirm(),await ba(L),v.success(P("common.delSuccess")),await _()}catch{}})(e.row.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["system:sms-channel:delete"]]])]),_:1})]),_:1},8,["data"])),[[I,l(y)]]),a(H,{total:l(S),page:l(o).pageNo,"onUpdate:page":r[4]||(r[4]=e=>l(o).pageNo=e),limit:l(o).pageSize,"onUpdate:limit":r[5]||(r[5]=e=>l(o).pageSize=e),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(Sa,{ref_key:"formRef",ref:T,onSuccess:_},null,512)],64)}}})});export{Ma as __tla,D as default};