index-e4f17050.js 5.4 KB

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