index-9e1eb180.js 5.5 KB

1
  1. import{d as L,h as B,r as p,e as G,k as Q,P as j,o as n,c as M,f as e,w as t,a as l,Q as J,F as N,n as W,q as c,m,v as f,U as X,z as Z,x as $,y as ee,A as ae,_ as le,B as te,C as re,D as oe,G as se,H as ne,__tla as _e}from"./index-2eab2d23.js";import{_ as ie,__tla as ue}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as pe,__tla as ce}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as me,__tla as de}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as fe,D as v,__tla as ye}from"./dict-1ad71b6f.js";import{d as he,__tla as ge}from"./formatTime-41155543.js";import{a as we,d as ve,__tla as be}from"./index-7a9be1ed.js";import{_ as Se,__tla as ke}from"./SmsChannelForm.vue_vue_type_script_setup_true_lang-702a5ac4.js";import{u as Ce,__tla as Te}from"./useMessage-171aa63e.js";import{__tla as Ue}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Ve}from"./el-card-c558f0ec.js";import{__tla as xe}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./constants-40f13f5e.js";let D,Me=Promise.all([(()=>{try{return _e}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return xe}catch{}})()]).then(async()=>{D=L({name:"SystemSmsChannel",__name:"index",setup(Ne){const{t:A}=B(),b=Ce(),y=p(!1),S=p(0),k=p([]),C=p(),o=G({pageNo:1,pageSize:10,signature:void 0,status:void 0,createTime:[]}),_=async()=>{y.value=!0;try{const i=await we(o);k.value=i.list,S.value=i.total}finally{y.value=!1}},h=()=>{o.pageNo=1,_()},O=()=>{C.value.resetFields(),h()},T=p(),U=(i,r)=>{T.value.open(i,r)};return Q(()=>{_()}),(i,r)=>{const P=X,d=Z,z=$,Y=ee,F=ae,g=le,u=te,H=re,V=me,s=oe,x=pe,E=se,R=ie,w=j("hasPermi"),q=ne;return n(),M(N,null,[e(V,null,{default:t(()=>[e(H,{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(P,{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:J(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),M(N,null,W(l(fe)(l(v).COMMON_STATUS),a=>(n(),c(z,{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(F,{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:O},{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=>U("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(V,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(x,{type:l(v).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(x,{type:l(v).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:I=>U("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:I=>(async K=>{try{await b.delConfirm(),await ve(K),b.success(A("common.delSuccess")),await _()}catch{}})(a.row.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["system:sms-channel:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,l(y)]]),e(R,{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:_},null,8,["total","page","limit"])]),_:1}),e(Se,{ref_key:"formRef",ref:T,onSuccess:_},null,512)],64)}}})});export{Me as __tla,D as default};