12345 |
- <<<<<<<< HEAD:dist/assets/index.47084e25.js
- var le=Object.defineProperty,se=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var Z=(u,y,p)=>y in u?le(u,y,{enumerable:!0,configurable:!0,writable:!0,value:p}):u[y]=p,D=(u,y)=>{for(var p in y||(y={}))ne.call(y,p)&&Z(u,p,y[p]);if(Y)for(var p of Y(y))ue.call(y,p)&&Z(u,p,y[p]);return u},N=(u,y)=>se(u,oe(y));var m=(u,y,p)=>new Promise((c,l)=>{var a=v=>{try{n(p.next(v))}catch(s){l(s)}},h=v=>{try{n(p.throw(v))}catch(s){l(s)}},n=v=>v.done?c(v.value):Promise.resolve(v.value).then(a,h);n((p=p.apply(u,y)).next())});import{d as F,u as K,r as x,a as T,B as E,i as e,q as R,ac as L,_ as f,a9 as C,p as i,k as g,c as z,ai as B,l as k,ce as U,H as w,cg as _,aa as j,ch as $,bC as b,dj as O,db as re,e as A,U as ee,d7 as ie,d8 as P}from"./index.adc1932e.js";import{g as de,s as pe}from"./use-async.9f5aeec4.js";import{S as G}from"./index.b7a909e0.js";import{P as V}from"./index.256a3645.js";import{e as ce,f as me,g as fe,h as ge,i as ye,j as he,k as ve,l as we,m as be,n as De,w as ke,o as Ce,p as Ue,q as xe,r as Te,t as Se,u as Fe,v as Ee,x as Ke,y as Me}from"./api.f5f50187.js";import{N as d}from"./FormItemGridItem.70004117.js";import{T as ae}from"./index.ccf24305.js";import{u as J}from"./tabsView.3fc70173.js";import{g as X,a as q}from"./objectUtil.ec24ceed.js";import{c as H,L as te,C as Q}from"./constant.b4bfe346.js";import{s as W}from"./api.7bbed195.js";import"./searchs.b637f0d6.js";const Ie=F({name:"sms-config-edit",props:{editMode:{type:String,required:!0},rowData:{type:Object,required:!1}},emits:["close","getList"],setup(u,{slots:y,attrs:p,emit:c}){K();const l=x(!1),a=T({name:null,sender:null,accessUrl:null,account:null,password:null,extendData:null,appId:null}),h=x(),n=T({rowData:null,musicSheetCategories:[]});E(()=>m(this,null,function*(){n.rowData=u.rowData,u.editMode=="edit"&&u.rowData&&(a.name=n.rowData.name,a.sender=n.rowData.sender,a.accessUrl=n.rowData.accessUrl,a.account=n.rowData.account,a.password=n.rowData.password,a.extendData=n.rowData.extendData,a.appId=n.rowData.appId)}));const v=()=>m(this,null,function*(){h.value.validate(s=>m(this,null,function*(){if(s)return!1;l.value=!0;try{let r;u.editMode=="add"?r=yield ce(D({},a)):r=yield me(N(D({},a),{id:n.rowData.id})),r&&r.code===200&&(c("close"),c("getList"))}catch(r){}l.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(R,{ref:h,labelPlacement:"top",model:a,"label-placement":"left","label-width":"100"},{default:()=>[e(L,{cols:2},{default:()=>[e(d,{label:"\u5E73\u53F0\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0"}]},{default:()=>[e(f,{value:a.name,"onUpdate:value":s=>a.name=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u5E73\u53F0\u6807\u8BC6",path:"sender",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u6807\u8BC6"}]},{default:()=>[e(f,{value:a.sender,"onUpdate:value":s=>a.sender=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u6807\u8BC6",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5730\u5740",path:"accessUrl",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5730\u5740"}]},{default:()=>[e(f,{value:a.accessUrl,"onUpdate:value":s=>a.accessUrl=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5730\u5740",clearable:!0},null)]}),e(d,{label:"\u5E94\u7528ID",path:"appId",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u5E94\u7528ID"}]},{default:()=>[e(f,{value:a.appId,"onUpdate:value":s=>a.appId=s,placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528ID",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u8D26\u53F7",path:"account",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u8D26\u53F7"}]},{default:()=>[e(f,{value:a.account,"onUpdate:value":s=>a.account=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u8D26\u53F7",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5BC6\u7801",path:"password",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u7801"}]},{default:()=>[e(f,{value:a.password,"onUpdate:value":s=>a.password=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u7801",clearable:!0},null)]})]}),e(L,{cols:1},{default:()=>[e(d,{label:"\u62D3\u5C55\u53C2\u6570",path:"extendData",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u62D3\u5C55\u53C2\u6570"}]},{default:()=>[e(f,{value:a.extendData,"onUpdate:value":s=>a.extendData=s,placeholder:"\u8BF7\u8F93\u5165\u62D3\u5C55\u53C2\u6570",autosize:{minRows:3},type:"textarea"},null)]})]})]}),e(C,{justify:"end"},{default:()=>[e(i,{onClick:()=>c("close")},{default:()=>[g("\u53D6\u6D88")]}),e(i,{type:"primary",onClick:v,loading:l.value,disabled:l.value},{default:()=>[g("\u4FDD\u5B58")]})]})])}}),Le=F({name:"sms-config",setup(u){const y=z(),p=B(),c=K(),l=T({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,status:null},dataList:[],showEdit:!1,editMode:"add",editRowData:{}});E(()=>m(this,null,function*(){s()}));const a=x(),h=()=>{var t;(t=a.value)==null||t.submit()},n=()=>{var t;(t=a.value)==null||t.reset()},v=()=>{l.pagination.page=1,s()};x([]);const s=()=>m(this,null,function*(){try{l.loading=!0;const{data:t}=yield fe(D(D({},l.pagination),l.searchForm));l.pagination.pageTotal=Number(t.total),l.dataList=t.rows||[]}catch(t){}l.loading=!1}),r=t=>{const o=t.status?"\u505C\u7528":"\u542F\u7528";p.warning({title:"\u63D0\u793A",content:`\u662F\u5426${o}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield ge({id:t.id,status:!t.status}),s(),c.success(`${o}\u6210\u529F`)}catch(S){}})})},M=t=>{p.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${t.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield ye(t.id),s(),c.success("\u5220\u9664\u6210\u529F")}catch(o){}})})},I=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u5E73\u53F0\u540D\u79F0",key:"name"},{title:"\u5E73\u53F0\u6807\u8BC6",key:"sender"},{title:"\u63A5\u5165\u5730\u5740",key:"accessUrl"},{title:"\u5E94\u7528ID",key:"appId"},{title:"\u63A5\u5165\u8D26\u53F7",key:"account"},{title:"\u63A5\u5165\u5BC6\u7801",key:"password"},{title:"\u62D3\u5C55\u53C2\u6570",key:"extendData",render:t=>e(ae,{content:t.extendData},null)},{title:"\u72B6\u6001",key:"status",render(t){return e($,{type:t.status?"primary":"default"},{default:()=>[t.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(t){return e(C,null,{default:()=>[w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{y.push({path:"/message/messageConfigApp",query:{id:t.id}})}},{default:()=>[g("\u5E94\u7528\u8BE6\u60C5")]}),[[b("auth"),"message/messageConfigApp1788130264099217409"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>r(t)},{default:()=>[t.status?"\u505C\u7528":"\u542F\u7528"]}),[[b("auth"),"smsConfig/status1790932263540690945"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{l.showEdit=!0,l.editRowData=O(t),l.editMode="edit"}},{default:()=>[g("\u4FEE\u6539")]}),[[b("auth"),"smsConfig/update1790932998848319490"]]),w(e(i,{type:"primary",size:"small",text:!0,disabled:!!t.status,onClick:()=>M(t)},{default:()=>[g("\u5220\u9664")]}),[[b("auth"),"smsConfig/remove1790932360940818433"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e(G,{ref:a,model:l.searchForm,onSubmit:v,saveKey:"sms-config",onSetModel:t=>l.searchForm=t},{default:()=>[e(k,{label:"\u5173\u952E\u5B57",path:"keyword"},{default:()=>[e(f,{placeholder:"\u7F16\u53F7/\u540D\u79F0",value:l.searchForm.keyword,"onUpdate:value":t=>l.searchForm.keyword=t,clearable:!0},null)]}),e(k,{label:"\u72B6\u6001",path:"status"},{default:()=>[e(U,{value:l.searchForm.status,"onUpdate:value":t=>l.searchForm.status=t,clearable:!0,options:[{label:"\u542F\u7528",value:1},{label:"\u505C\u7528",value:0}],placeholder:"\u5168\u90E8\u72B6\u6001"},null)]}),e(k,null,{default:()=>[e(C,null,{default:()=>[e(i,{type:"primary",onClick:h},{default:()=>[g("\u641C\u7D22")]}),e(i,{type:"default",onClick:n},{default:()=>[g("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[w(e(i,{type:"primary",onClick:()=>{l.showEdit=!0,l.editMode="add"}},{default:()=>[g("\u65B0\u589E\u77ED\u4FE1\u5E73\u53F0")]}),[[b("auth"),"smsConfig/save1790932891084066817"]])]}),e("div",{class:["section-container"]},[e(_,{loading:l.loading,columns:I(),data:l.dataList,rowKey:t=>t.id,scrollX:"1400"},null),e(V,{page:l.pagination.page,"onUpdate:page":t=>l.pagination.page=t,pageSize:l.pagination.rows,"onUpdate:pageSize":t=>l.pagination.rows=t,pageTotal:l.pagination.pageTotal,"onUpdate:pageTotal":t=>l.pagination.pageTotal=t,onList:s,sync:!0,saveKey:"sms-config"},null)]),e(j,{blockScroll:!0,show:l.showEdit,"onUpdate:show":t=>l.showEdit=t,preset:"dialog",showIcon:!1,title:(l.editMode=="add"?"\u65B0\u589E":"\u7F16\u8F91")+"\u77ED\u4FE1\u5E73\u53F0",style:{width:"700px"}},{default:()=>[e(Ie,{editMode:l.editMode,rowData:l.editRowData,onClose:()=>l.showEdit=!1,onGetList:()=>{l.pagination.page=1,s()}},null)]})])}}),Ne=F({name:"push-config-edit",props:{editMode:{type:String,required:!0},rowData:{type:Object,required:!1},appData:{type:[],required:!0}},emits:["close","getList"],setup(u,{slots:y,attrs:p,emit:c}){K();const l=x(!1),a=T({name:null,sender:null,appKey:null,accessUrl:null,clientId:null,apnsProduction:null,account:null,password:null,timeToLive:null,extendData:null,deviceType:null}),h=x(),n=T({rowData:null,musicSheetCategories:[],appData:[]});E(()=>m(this,null,function*(){n.rowData=u.rowData,u.editMode=="edit"&&u.rowData&&(a.name=n.rowData.name,a.sender=n.rowData.sender,a.appKey=n.rowData.appKey,a.clientId=n.rowData.clientId,a.apnsProduction=n.rowData.apnsProduction,a.account=n.rowData.account,a.password=n.rowData.password,a.timeToLive=Number.parseFloat(n.rowData.timeToLive)/3600,a.accessUrl=n.rowData.accessUrl,a.extendData=n.rowData.extendData,a.deviceType=n.rowData.deviceType)}));const v=()=>m(this,null,function*(){h.value.validate(s=>m(this,null,function*(){if(s)return!1;l.value=!0;try{let r;u.editMode=="add"?r=yield he(N(D({},a),{timeToLive:Number.parseFloat(a.timeToLive)*3600})):r=yield ve(N(D({},a),{id:n.rowData.id,timeToLive:Number.parseFloat(a.timeToLive)*3600})),r&&r.code===200&&(c("close"),c("getList"))}catch(r){}l.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(R,{ref:h,labelPlacement:"top",model:a,"label-placement":"left","label-width":"100"},{default:()=>[e(L,{cols:2},{default:()=>[e(d,{label:"\u5E73\u53F0\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0"}]},{default:()=>[e(f,{value:a.name,"onUpdate:value":s=>a.name=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u5E73\u53F0\u6807\u8BC6",path:"sender",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u6807\u8BC6"}]},{default:()=>[e(f,{value:a.sender,"onUpdate:value":s=>a.sender=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u6807\u8BC6",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5E94\u7528",path:"appKey",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5E94\u7528"}]},{default:()=>[e(U,{value:a.appKey,"onUpdate:value":s=>a.appKey=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5E94\u7528",options:u.appData,clearable:!0},null)]}),e(d,{label:"\u5BA2\u6237\u7AEF",path:"clientId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF"}]},{default:()=>[e(U,{value:a.clientId,"onUpdate:value":s=>a.clientId=s,options:X(H),placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5730\u5740",path:"accessUrl",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5730\u5740"}]},{default:()=>[e(f,{value:a.accessUrl,"onUpdate:value":s=>a.accessUrl=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5730\u5740",clearable:!0},null)]}),e(d,{label:"\u63A8\u9001\u73AF\u5883",path:"apnsProduction",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A8\u9001\u73AF\u5883",type:"boolean"}]},{default:()=>[e(U,{value:a.apnsProduction,"onUpdate:value":s=>a.apnsProduction=s,placeholder:"\u8BF7\u8F93\u5165\u63A8\u9001\u73AF\u5883",options:[{label:"\u7EBF\u4E0A",value:!0},{label:"\u5F00\u53D1",value:!1}],clearable:!0},null)]}),e(d,{label:"\u63A5\u5165key",path:"account",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165key"}]},{default:()=>[e(f,{value:a.account,"onUpdate:value":s=>a.account=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165key",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5BC6\u94A5",path:"password",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u94A5"}]},{default:()=>[e(f,{value:a.password,"onUpdate:value":s=>a.password=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u7801",clearable:!0},null)]}),e(d,{label:"\u79BB\u7EBF\u4FDD\u7559\u65F6\u957F(\u5C0F\u65F6)",path:"timeToLive",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u79BB\u7EBF\u4FDD\u7559\u65F6\u957F(\u5C0F\u65F6)"}]},{default:()=>[e(re,{value:a.timeToLive,"onUpdate:value":s=>a.timeToLive=s,placeholder:"\u8BF7\u8F93\u5165\u79BB\u7EBF\u4FDD\u7559\u65F6\u957F(\u5C0F\u65F6)",min:0},null)]}),e(d,{label:"\u8BBE\u5907\u7C7B\u578B",path:"deviceType",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u8BBE\u5907\u7C7B\u578B"}]},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907\u7C7B\u578B",value:a.deviceType,"onUpdate:value":s=>a.deviceType=s,options:X(te),clearable:!0},null)]})]}),e(L,{cols:1},{default:()=>[e(d,{label:"\u62D3\u5C55\u53C2\u6570",path:"extendData",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u62D3\u5C55\u53C2\u6570"}]},{default:()=>[e(f,{value:a.extendData,"onUpdate:value":s=>a.extendData=s,placeholder:"\u8BF7\u8F93\u5165\u62D3\u5C55\u53C2\u6570",autosize:{minRows:3},type:"textarea"},null)]})]})]}),e(C,{justify:"end"},{default:()=>[e(i,{onClick:()=>c("close")},{default:()=>[g("\u53D6\u6D88")]}),e(i,{type:"primary",onClick:v,loading:l.value,disabled:l.value},{default:()=>[g("\u4FDD\u5B58")]})]})])}}),qe=F({name:"push-config",setup(u,y){A(),z();const p=B(),c=K(),l=T({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,status:null,appKey:null,clientId:null},name:null,smsConfigId:null,dataList:[],showEdit:!1,editMode:"add",editRowData:{},appData:[]});J(),E(()=>m(this,null,function*(){l.appData=[];const{data:t}=yield W({page:1,rows:999});t&&t.rows&&t.rows.forEach(o=>{l.appData.push({label:o.appName,value:o.appKey})}),s()}));const a=x(),h=()=>{var t;(t=a.value)==null||t.submit()},n=()=>{var t;(t=a.value)==null||t.reset()},v=()=>{l.pagination.page=1,s()},s=()=>m(this,null,function*(){l.loading=!0;try{const{data:t}=yield we(D(D({},l.pagination),l.searchForm));l.pagination.pageTotal=Number(t.total),l.dataList=t.rows||[]}catch(t){}l.loading=!1}),r=t=>{const o=t.status?"\u505C\u7528":"\u542F\u7528";p.warning({title:"\u63D0\u793A",content:`\u662F\u5426${o}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield be({id:t.id,status:!t.status}),s(),c.success(`${o}\u6210\u529F`)}catch(S){}})})},M=t=>{p.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${t.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield De(t.id),s(),c.success("\u5220\u9664\u6210\u529F")}catch(o){}})})},I=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u5E73\u53F0\u540D\u79F0",key:"name"},{title:"\u5E73\u53F0\u6807\u8BC6",key:"sender"},{title:"\u5E94\u7528",key:"appKey",render(t){return e("div",null,[q(t.appKey,new Map(Object.entries(Q)))])}},{title:"\u5BA2\u6237\u7AEF",key:"clientId",render(t){return e("div",null,[q(t.clientId,new Map(Object.entries(H)))])}},{title:"\u8BBE\u5907\u7C7B\u578B",key:"deviceType",render(t){return e("div",null,[q(t.deviceType,new Map(Object.entries(te)))])}},{title:"\u63A5\u5165\u5730\u5740",key:"accessUrl"},{title:"\u79BB\u7EBF\u4FDD\u7559\u65F6\u957F(\u5C0F\u65F6)",key:"timeToLive",render(t){return t.timeToLive/3600}},{title:"\u63A8\u9001\u73AF\u5883",key:"apnsProduction",render(t){return t.apnsProduction?"\u7EBF\u4E0A":"\u5F00\u53D1"}},{title:"\u63A5\u5165key",key:"account"},{title:"\u63A5\u5165\u79D8\u5319",key:"password"},{title:"\u62D3\u5C55\u53C2\u6570",key:"extendData",render(t){return e(ae,{content:t.extendData},null)}},{title:"\u72B6\u6001",key:"status",render(t){return e($,{type:t.status?"primary":"default"},{default:()=>[t.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",minWidth:"180px",render(t){return e(C,null,{default:()=>[w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{r(t)}},{default:()=>[t.status?"\u505C\u7528":"\u542F\u7528"]}),[[b("auth"),"appSendConfig/status1790933632397938690"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{l.showEdit=!0,l.editRowData=O(t),l.editMode="edit"}},{default:()=>[g("\u4FEE\u6539")]}),[[b("auth"),"appSendConfig/update1790933865680932866"]]),w(e(i,{type:"primary",size:"small",text:!0,disabled:!!t.status,onClick:()=>{M(t)}},{default:()=>[g("\u5220\u9664")]}),[[b("auth"),"appSendConfig/remove1790933707882827777"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"]},[e("div",{class:"system-menu-container"},[e(G,{ref:a,model:l.searchForm,onSubmit:v,saveKey:"push-config-app",onSetModel:t=>l.searchForm=t},{default:()=>[e(k,{label:"\u5173\u952E\u5B57",path:"keyword"},{default:()=>[e(f,{placeholder:"\u5E94\u7528\u7F16\u53F7/\u540D\u79F0",value:l.searchForm.keyword,"onUpdate:value":t=>l.searchForm.keyword=t,clearable:!0},null)]}),e(k,{label:"\u5E94\u7528",path:"appKey"},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528",value:l.searchForm.appKey,"onUpdate:value":t=>l.searchForm.appKey=t,options:l.appData,clearable:!0},null)]}),e(k,{label:"\u5BA2\u6237\u7AEF",path:"clientId"},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF",value:l.searchForm.clientId,"onUpdate:value":t=>l.searchForm.clientId=t,options:X(H),clearable:!0},null)]}),e(k,{label:"\u72B6\u6001",path:"status"},{default:()=>[e(U,{value:l.searchForm.status,"onUpdate:value":t=>l.searchForm.status=t,clearable:!0,options:[{label:"\u542F\u7528",value:1},{label:"\u505C\u7528",value:0}],placeholder:"\u5168\u90E8\u72B6\u6001"},null)]}),e(k,null,{default:()=>[e(C,null,{default:()=>[e(i,{type:"primary",onClick:h},{default:()=>[g("\u641C\u7D22")]}),e(i,{type:"default",onClick:n},{default:()=>[g("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[w(e(i,{type:"primary",onClick:()=>{l.showEdit=!0,l.editMode="add"}},{default:()=>[g("\u65B0\u589E\u63A8\u9001\u5E73\u53F0")]}),[[b("auth"),"appSendConfig/save1790933794033831937"]])]}),e("div",{class:["section-container"]},[e(_,{loading:l.loading,columns:I(),data:l.dataList,rowKey:t=>t.id,scrollX:"1400"},null),e(V,{page:l.pagination.page,"onUpdate:page":t=>l.pagination.page=t,pageSize:l.pagination.rows,"onUpdate:pageSize":t=>l.pagination.rows=t,pageTotal:l.pagination.pageTotal,"onUpdate:pageTotal":t=>l.pagination.pageTotal=t,onList:s,sync:!0,saveKey:"push-config-app"},null)]),e(j,{blockScroll:!0,show:l.showEdit,"onUpdate:show":t=>l.showEdit=t,preset:"dialog",showIcon:!1,title:(l.editMode=="add"?"\u65B0\u589E":"\u7F16\u8F91")+"\u63A8\u9001\u5E73\u53F0",style:{width:"700px"}},{default:()=>[e(Ne,{editMode:l.editMode,rowData:l.editRowData,appData:l.appData,onClose:()=>l.showEdit=!1,onGetList:()=>{l.pagination.page=1,s()}},null)]})])])])}}),Pe=F({mpName:"wechat-config-edit",props:{editMode:{type:String,required:!0},rowData:{type:Object,required:!1},appData:{type:Array,required:!0}},emits:["close","getList"],setup(u,{slots:y,attrs:p,emit:c}){K();const l=x(!1),a=T({mpName:null,appid:null,secret:null,token:null,aeskey:null,appKey:null,content:null}),h=x(),n=T({rowData:null});E(()=>m(this,null,function*(){n.rowData=u.rowData,u.editMode=="edit"&&u.rowData&&(a.mpName=n.rowData.mpName,a.appid=n.rowData.appid,a.secret=n.rowData.secret,a.token=n.rowData.token,a.aeskey=n.rowData.aeskey,a.appKey=n.rowData.appKey,a.content=n.rowData.content)}));const v=()=>m(this,null,function*(){h.value.validate(s=>m(this,null,function*(){if(s)return!1;l.value=!0;try{let r;u.editMode=="add"?r=yield ke(D({},a)):r=yield Ce(N(D({},a),{id:n.rowData.id})),r&&r.code===200&&(c("close"),c("getList"))}catch(r){}l.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(R,{ref:h,labelPlacement:"top",model:a,"label-placement":"left","label-width":"100"},{default:()=>[e(L,{cols:2},{default:()=>[e(d,{label:"\u516C\u4F17\u53F7\u540D\u79F0",path:"mpName",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7\u540D\u79F0"}]},{default:()=>[e(f,{value:a.mpName,"onUpdate:value":s=>a.mpName=s,placeholder:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u516C\u4F17\u53F7ID",path:"appid",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7ID"}]},{default:()=>[e(f,{value:a.appid,"onUpdate:value":s=>a.appid=s,placeholder:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7ID",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5BC6\u94A5",path:"secret",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u94A5"}]},{default:()=>[e(f,{value:a.secret,"onUpdate:value":s=>a.secret=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u94A5",clearable:!0},null)]}),e(d,{label:"\u6D88\u606F\u5BC6\u94A5",path:"token",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u6D88\u606F\u5BC6\u94A5"}]},{default:()=>[e(f,{value:a.token,"onUpdate:value":s=>a.token=s,placeholder:"\u8BF7\u8F93\u5165\u6D88\u606F\u5BC6\u94A5",clearable:!0},null)]}),e(d,{label:"\u52A0\u5BC6\u6A21\u5F0F\u5BC6\u94A5",path:"aeskey",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u52A0\u5BC6\u6A21\u5F0F\u5BC6\u94A5"}]},{default:()=>[e(f,{value:a.aeskey,"onUpdate:value":s=>a.aeskey=s,placeholder:"\u8BF7\u8F93\u5165\u52A0\u5BC6\u6A21\u5F0F\u5BC6\u94A5",clearable:!0},null)]}),e(d,{label:"\u5E94\u7528",path:"appKey",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5E94\u7528"}]},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528",value:a.appKey,"onUpdate:value":s=>a.appKey=s,options:u.appData,clearable:!0},null)]})]}),e(L,{cols:1},{default:()=>[e(d,{label:"\u5173\u6CE8\u516C\u4F17\u53F7\u63D0\u793A\u4FE1\u606F",path:"content",rule:[{required:!0,message:"\u5173\u6CE8\u516C\u4F17\u53F7\u63D0\u793A\u4FE1\u606F"}]},{default:()=>[e(f,{type:"textarea",value:a.content,"onUpdate:value":s=>a.content=s,placeholder:"\u5173\u6CE8\u516C\u4F17\u53F7\u63D0\u793A\u4FE1\u606F",autosize:{minRows:3},clearable:!0},null)]})]})]}),e(C,{justify:"end"},{default:()=>[e(i,{onClick:()=>c("close")},{default:()=>[g("\u53D6\u6D88")]}),e(i,{type:"primary",onClick:v,loading:l.value,disabled:l.value},{default:()=>[g("\u4FDD\u5B58")]})]})])}}),Re=F({name:"wechat-config",setup(u,y){A();const p=z(),c=B(),l=K(),a=T({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,appKey:null,status:null},name:null,dataList:[],showEdit:!1,editMode:"add",editRowData:{},appData:[]});J(),E(()=>m(this,null,function*(){a.appData=[];const{data:o}=yield W({page:1,rows:999});o&&o.rows&&o.rows.forEach(S=>{a.appData.push({label:S.appName,value:S.appKey})}),r()}));const h=x(),n=()=>{var o;(o=h.value)==null||o.submit()},v=()=>{var o;(o=h.value)==null||o.reset()},s=()=>{a.pagination.page=1,r()},r=()=>m(this,null,function*(){try{a.loading=!0;const{data:o}=yield Ue(D(D({},a.pagination),a.searchForm));a.pagination.pageTotal=Number(o.total),a.dataList=o.rows||[]}catch(o){}a.loading=!1}),M=o=>{const S=o.status?"\u505C\u7528":"\u542F\u7528";c.warning({title:"\u63D0\u793A",content:`\u662F\u5426${S}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield xe({id:o.id,status:!o.status}),r(),l.success(`${S}\u6210\u529F`)}catch(_e){}})})},I=o=>{c.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${o.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield Te(o.id),r(),l.success("\u5220\u9664\u6210\u529F")}catch(S){}})})},t=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u5E94\u7528",key:"appKey",render(o){return e("div",null,[q(o.appKey,new Map(Object.entries(Q)))])}},{title:"\u516C\u4F17\u53F7\u540D\u79F0",key:"mpName"},{title:"\u516C\u4F17\u53F7ID",key:"appid"},{title:"\u63A5\u5165\u5BC6\u94A5",key:"secret"},{title:"\u6D88\u606F\u5BC6\u94A5",key:"token"},{title:"\u52A0\u5BC6\u6A21\u5F0F\u5BC6\u94A5",key:"aeskey"},{title:"\u72B6\u6001",key:"status",render(o){return e($,{type:o.status?"primary":"default"},{default:()=>[o.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return e(C,null,{default:()=>[w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{p.push({path:"/message/wxTemplateConfig",query:{id:o.id}})}},{default:()=>[g("\u67E5\u770B\u6A21\u677F")]}),[[b("auth"),"message/wxTemplateConfig1788457824507092993"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{M(o)}},{default:()=>[o.status?"\u505C\u7528":"\u542F\u7528"]}),[[b("auth"),"wxConfigInfo/status1790934722325581825"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{a.showEdit=!0,a.editRowData=O(o),a.editMode="edit"}},{default:()=>[g("\u4FEE\u6539")]}),[[b("auth"),"wxConfigInfo/update1790934555132235777"]]),w(e(i,{type:"primary",size:"small",text:!0,disabled:!!o.status,onClick:()=>{I(o)}},{default:()=>[g("\u5220\u9664")]}),[[b("auth"),"wxConfigInfo/remove1790934636120051714"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"]},[e("div",{class:"system-menu-container"},[e(G,{ref:h,model:a.searchForm,onSubmit:s,saveKey:"wechat-config",onSetModel:o=>a.searchForm=o},{default:()=>[e(k,{label:"\u5173\u952E\u5B57",path:"keyword"},{default:()=>[e(f,{placeholder:"\u5E94\u7528\u7F16\u53F7/\u540D\u79F0",value:a.searchForm.keyword,"onUpdate:value":o=>a.searchForm.keyword=o,clearable:!0},null)]}),e(k,{label:"\u5E94\u7528",path:"appKey"},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528",value:a.searchForm.appKey,"onUpdate:value":o=>a.searchForm.appKey=o,options:a.appData,clearable:!0},null)]}),e(k,{label:"\u72B6\u6001",path:"status"},{default:()=>[e(U,{value:a.searchForm.status,"onUpdate:value":o=>a.searchForm.status=o,clearable:!0,options:[{label:"\u542F\u7528",value:1},{label:"\u505C\u7528",value:0}],placeholder:"\u5168\u90E8\u72B6\u6001"},null)]}),e(k,null,{default:()=>[e(C,null,{default:()=>[e(i,{type:"primary",onClick:n},{default:()=>[g("\u641C\u7D22")]}),e(i,{type:"default",onClick:v},{default:()=>[g("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[w(e(i,{type:"primary",onClick:()=>{a.showEdit=!0,a.editMode="add"}},{default:()=>[g("\u65B0\u589E\u516C\u4F17\u53F7\u914D\u7F6E")]}),[[b("auth"),"wxConfigInfo/save1790934473301364738"]])]}),e("div",{class:["section-container"]},[e(_,{loading:a.loading,columns:t(),data:a.dataList,rowKey:o=>o.id,scrollX:"1400"},null),e(V,{page:a.pagination.page,"onUpdate:page":o=>a.pagination.page=o,pageSize:a.pagination.rows,"onUpdate:pageSize":o=>a.pagination.rows=o,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":o=>a.pagination.pageTotal=o,onList:r,sync:!0,saveKey:"wechat-config"},null)]),e(j,{blockScroll:!0,show:a.showEdit,"onUpdate:show":o=>a.showEdit=o,preset:"dialog",showIcon:!1,title:(a.editMode=="add"?"\u65B0\u589E":"\u7F16\u8F91")+"\u77ED\u4FE1\u5E73\u53F0",style:{width:"700px"}},{default:()=>[e(Pe,{editMode:a.editMode,rowData:a.editRowData,appData:a.appData,onClose:()=>a.showEdit=!1,onGetList:()=>{a.pagination.page=1,r()}},null)]})])])])}}),ze=F({mpName:"email-config-edit",props:{editMode:{type:String,required:!0},rowData:{type:Object,required:!1}},emits:["close","getList"],setup(u,{slots:y,attrs:p,emit:c}){K();const l=x(!1),a=T({name:null,sender:null,smtpPort:null,account:null,password:null,from:null,fromName:null,appKey:null,hostUrl:null}),h=x(),n=T({rowData:null,appData:[]});E(()=>m(this,null,function*(){n.rowData=u.rowData,u.editMode=="edit"&&u.rowData&&(a.name=n.rowData.name,a.sender=n.rowData.sender,a.smtpPort=n.rowData.smtpPort,a.account=n.rowData.account,a.password=n.rowData.password,a.from=n.rowData.from,a.fromName=n.rowData.fromName,a.appKey=n.rowData.appKey,a.hostUrl=n.rowData.hostUrl);{n.appData=[];const{data:s}=yield W({page:1,rows:999});s&&s.rows&&s.rows.forEach(r=>{n.appData.push({label:r.appName,value:r.appKey})})}}));const v=()=>m(this,null,function*(){h.value.validate(s=>m(this,null,function*(){if(s)return!1;l.value=!0;try{let r;u.editMode=="add"?r=yield Se(D({},a)):r=yield Fe(N(D({},a),{id:n.rowData.id})),r&&r.code===200&&(c("close"),c("getList"))}catch(r){}l.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(R,{ref:h,labelPlacement:"top",model:a,"label-placement":"left","label-width":"100"},{default:()=>[e(L,{cols:2},{default:()=>[e(d,{label:"\u5E73\u53F0\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0"}]},{default:()=>[e(f,{value:a.name,"onUpdate:value":s=>a.name=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u57DF\u540D",path:"hostUrl",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u57DF\u540D"}]},{default:()=>[e(f,{value:a.hostUrl,"onUpdate:value":s=>a.hostUrl=s,placeholder:"\u8BF7\u8F93\u5165\u57DF\u540D",clearable:!0},null)]}),e(d,{label:"\u7AEF\u53E3",path:"smtpPort",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AEF\u53E3"}]},{default:()=>[e(f,{value:a.smtpPort,"onUpdate:value":s=>a.smtpPort=s,placeholder:"\u8BF7\u8F93\u5165\u7AEF\u53E3",clearable:!0},null)]}),e(d,{label:"\u7528\u6237\u540D",path:"account",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"}]},{default:()=>[e(f,{value:a.account,"onUpdate:value":s=>a.account=s,placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",clearable:!0},null)]}),e(d,{label:"\u5BC6\u7801",path:"password",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"}]},{default:()=>[e(f,{value:a.password,"onUpdate:value":s=>a.password=s,placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",clearable:!0},null)]}),e(d,{label:"\u53D1\u9001\u65B9",path:"from",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u9001\u65B9"}]},{default:()=>[e(f,{value:a.from,"onUpdate:value":s=>a.from=s,placeholder:"\u8BF7\u8F93\u5165\u53D1\u9001\u65B9",clearable:!0},null)]}),e(d,{label:"\u53D1\u9001\u65B9\u540D\u79F0",path:"fromName",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u9001\u65B9\u540D\u79F0"}]},{default:()=>[e(f,{value:a.fromName,"onUpdate:value":s=>a.fromName=s,placeholder:"\u8BF7\u8F93\u5165\u53D1\u9001\u65B9\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5E94\u7528",path:"appKey",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u63A5\u5165\u5E94\u7528"}]},{default:()=>[e(U,{value:a.appKey,"onUpdate:value":s=>a.appKey=s,placeholder:"\u8BF7\u9009\u62E9\u63A5\u5165\u5E94\u7528",options:n.appData,clearable:!0},null)]})]})]}),e(C,{justify:"end"},{default:()=>[e(i,{onClick:()=>c("close")},{default:()=>[g("\u53D6\u6D88")]}),e(i,{type:"primary",onClick:v,loading:l.value,disabled:l.value},{default:()=>[g("\u4FDD\u5B58")]})]})])}}),Be=F({name:"email-config",setup(u,y){A(),z();const p=B(),c=K(),l=T({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,status:null,appKey:null},name:null,dataList:[],showEdit:!1,editMode:"add",editRowData:{},appData:[]});J(),E(()=>m(this,null,function*(){{l.appData=[];const{data:t}=yield W({page:1,rows:999});t&&t.rows&&t.rows.forEach(o=>{l.appData.push({label:o.appName,value:o.appKey})})}s()}));const a=x(),h=()=>{var t;(t=a.value)==null||t.submit()},n=()=>{var t;(t=a.value)==null||t.reset()},v=()=>{l.pagination.page=1,s()},s=()=>m(this,null,function*(){try{l.loading=!0;const{data:t}=yield Ee(D(D({},l.pagination),l.searchForm));l.pagination.pageTotal=Number(t.total),l.dataList=t.rows||[]}catch(t){}l.loading=!1}),r=t=>{const o=t.status?"\u505C\u7528":"\u542F\u7528";p.warning({title:"\u63D0\u793A",content:`\u662F\u5426${o}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield Ke({id:t.id,status:!t.status}),s(),c.success(`${o}\u6210\u529F`)}catch(S){}})})},M=t=>{p.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${t.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield Me(t.id),s(),c.success("\u5220\u9664\u6210\u529F")}catch(o){}})})},I=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u5E73\u53F0\u540D\u79F0",key:"name"},{title:"\u63A5\u5165\u5E94\u7528",key:"appKey",render(t){return e("div",null,[q(t.appKey,new Map(Object.entries(Q)))])}},{title:"\u57DF\u540D",key:"hostUrl"},{title:"\u7AEF\u53E3",key:"smtpPort"},{title:"\u7528\u6237\u540D",key:"account"},{title:"\u5BC6\u7801",key:"password"},{title:"\u53D1\u9001\u65B9",key:"from"},{title:"\u53D1\u9001\u540D\u79F0",key:"fromName"},{title:"\u72B6\u6001",key:"status",render(t){return e($,{type:t.status?"primary":"default"},{default:()=>[t.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(t){return e(C,null,{default:()=>[w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{r(t)}},{default:()=>[t.status?"\u505C\u7528":"\u542F\u7528"]}),[[b("auth"),"emailConfig/status1790935300606857218"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{l.showEdit=!0,l.editRowData=O(t),l.editMode="edit"}},{default:()=>[g("\u4FEE\u6539")]}),[[b("auth"),"emailConfig/update1790935437341167617"]]),w(e(i,{type:"primary",size:"small",text:!0,disabled:!!t.status,onClick:()=>{M(t)}},{default:()=>[g("\u5220\u9664")]}),[[b("auth"),"emailConfig/remove1790935226178932738"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"]},[e("div",{class:"system-menu-container"},[e(G,{ref:a,model:l.searchForm,onSubmit:v,saveKey:"email-config",onSetModel:t=>l.searchForm=t},{default:()=>[e(k,{label:"\u5173\u952E\u5B57",path:"keyword"},{default:()=>[e(f,{placeholder:"\u7F16\u53F7/\u5E73\u53F0\u540D\u79F0",value:l.searchForm.keyword,"onUpdate:value":t=>l.searchForm.keyword=t,clearable:!0},null)]}),e(k,{label:"\u63A5\u5165\u5E94\u7528",path:"appKey"},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u63A5\u5165\u5E94\u7528",value:l.searchForm.appKey,"onUpdate:value":t=>l.searchForm.appKey=t,options:l.appData,clearable:!0},null)]}),e(k,{label:"\u72B6\u6001",path:"status"},{default:()=>[e(U,{value:l.searchForm.status,"onUpdate:value":t=>l.searchForm.status=t,clearable:!0,options:[{label:"\u542F\u7528",value:1},{label:"\u505C\u7528",value:0}],placeholder:"\u5168\u90E8\u72B6\u6001"},null)]}),e(k,null,{default:()=>[e(C,null,{default:()=>[e(i,{type:"primary",onClick:h},{default:()=>[g("\u641C\u7D22")]}),e(i,{type:"default",onClick:n},{default:()=>[g("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[w(e(i,{type:"primary",onClick:()=>{l.showEdit=!0,l.editMode="add"}},{default:()=>[g("\u65B0\u589E\u90AE\u4EF6\u914D\u7F6E")]}),[[b("auth"),"emailConfig/save1790935373034098690"]])]}),e("div",{class:["section-container"]},[e(_,{loading:l.loading,columns:I(),data:l.dataList,rowKey:t=>t.id,scrollX:"1400"},null),e(V,{page:l.pagination.page,"onUpdate:page":t=>l.pagination.page=t,pageSize:l.pagination.rows,"onUpdate:pageSize":t=>l.pagination.rows=t,pageTotal:l.pagination.pageTotal,"onUpdate:pageTotal":t=>l.pagination.pageTotal=t,onList:s,sync:!0,saveKey:"email-config"},null)]),e(j,{blockScroll:!0,show:l.showEdit,"onUpdate:show":t=>l.showEdit=t,preset:"dialog",showIcon:!1,title:(l.editMode=="add"?"\u65B0\u589E":"\u7F16\u8F91")+"\u90AE\u4EF6\u914D\u7F6E",style:{width:"700px"}},{default:()=>[e(ze,{editMode:l.editMode,rowData:l.editRowData,onClose:()=>l.showEdit=!1,onGetList:()=>{l.pagination.page=1,s()}},null)]})])])])}}),ea=F({name:"message-config-index",setup(){const u=T({tabName:"SMS"}),y=x();de(l=>{l.form.tabName&&(u.tabName=l.form.tabName,ee(()=>{var a;return(a=y.value)==null?void 0:a.syncBarPosition()}))});const p=A(),c=l=>{pe(l,"tabName",p)};return E(()=>m(this,null,function*(){ee(()=>{var l;return(l=y.value)==null?void 0:l.syncBarPosition()})})),()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"],style:"padding-top: 0"},[e(ie,{ref:y,type:"line",size:"large",value:u.tabName,"onUpdate:value":[l=>u.tabName=l,l=>c(l)]},{default:()=>[w(e(P,{name:"SMS",tab:"\u77ED\u4FE1"},{default:()=>[e(Le,null,null)]}),[[b("auth"),"smsConfig/page1790929887618469889"]]),w(e(P,{name:"PUSH",tab:"\u63A8\u9001"},{default:()=>[e(qe,null,null)]}),[[b("auth"),"appSendConfig/page1790933531566870529"]]),w(e(P,{name:"WECHAT",tab:"\u516C\u4F17\u53F7"},{default:()=>[e(Re,null,null)]}),[[b("auth"),"wxConfigInfo/page1790934372273164290"]]),w(e(P,{name:"EMAIL",tab:"\u90AE\u4EF6"},{default:()=>[e(Be,null,null)]}),[[b("auth"),"emailConfig/page1790935157727891457"]])]})])])}});export{ea as default};
- ========
- var le=Object.defineProperty,se=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var Z=(u,y,p)=>y in u?le(u,y,{enumerable:!0,configurable:!0,writable:!0,value:p}):u[y]=p,D=(u,y)=>{for(var p in y||(y={}))ne.call(y,p)&&Z(u,p,y[p]);if(Y)for(var p of Y(y))ue.call(y,p)&&Z(u,p,y[p]);return u},N=(u,y)=>se(u,oe(y));var m=(u,y,p)=>new Promise((c,l)=>{var a=v=>{try{n(p.next(v))}catch(s){l(s)}},h=v=>{try{n(p.throw(v))}catch(s){l(s)}},n=v=>v.done?c(v.value):Promise.resolve(v.value).then(a,h);n((p=p.apply(u,y)).next())});import{d as F,u as K,r as x,a as T,B as E,i as e,q as R,ac as L,_ as f,a9 as C,p as i,k as g,c as z,ai as B,l as k,ce as U,H as w,cg as _,aa as j,ch as $,bC as b,dj as O,db as re,e as A,U as ee,d7 as ie,d8 as P}from"./index.52190234.js";import{g as de,s as pe}from"./use-async.2838ef96.js";import{S as G}from"./index.9329952a.js";import{P as V}from"./index.a4c46506.js";import{e as ce,f as me,g as fe,h as ge,i as ye,j as he,k as ve,l as we,m as be,n as De,w as ke,o as Ce,p as Ue,q as xe,r as Te,t as Se,u as Fe,v as Ee,x as Ke,y as Me}from"./api.e1d46622.js";import{N as d}from"./FormItemGridItem.c165d723.js";import{T as ae}from"./index.55c5b4c7.js";import{u as J}from"./tabsView.4567b7c6.js";import{g as X,a as q}from"./objectUtil.ec24ceed.js";import{c as H,L as te,C as Q}from"./constant.b4bfe346.js";import{s as W}from"./api.9d0bd1a5.js";import"./searchs.b637f0d6.js";const Ie=F({name:"sms-config-edit",props:{editMode:{type:String,required:!0},rowData:{type:Object,required:!1}},emits:["close","getList"],setup(u,{slots:y,attrs:p,emit:c}){K();const l=x(!1),a=T({name:null,sender:null,accessUrl:null,account:null,password:null,extendData:null,appId:null}),h=x(),n=T({rowData:null,musicSheetCategories:[]});E(()=>m(this,null,function*(){n.rowData=u.rowData,u.editMode=="edit"&&u.rowData&&(a.name=n.rowData.name,a.sender=n.rowData.sender,a.accessUrl=n.rowData.accessUrl,a.account=n.rowData.account,a.password=n.rowData.password,a.extendData=n.rowData.extendData,a.appId=n.rowData.appId)}));const v=()=>m(this,null,function*(){h.value.validate(s=>m(this,null,function*(){if(s)return!1;l.value=!0;try{let r;u.editMode=="add"?r=yield ce(D({},a)):r=yield me(N(D({},a),{id:n.rowData.id})),r&&r.code===200&&(c("close"),c("getList"))}catch(r){}l.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(R,{ref:h,labelPlacement:"top",model:a,"label-placement":"left","label-width":"100"},{default:()=>[e(L,{cols:2},{default:()=>[e(d,{label:"\u5E73\u53F0\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0"}]},{default:()=>[e(f,{value:a.name,"onUpdate:value":s=>a.name=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u5E73\u53F0\u6807\u8BC6",path:"sender",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u6807\u8BC6"}]},{default:()=>[e(f,{value:a.sender,"onUpdate:value":s=>a.sender=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u6807\u8BC6",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5730\u5740",path:"accessUrl",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5730\u5740"}]},{default:()=>[e(f,{value:a.accessUrl,"onUpdate:value":s=>a.accessUrl=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5730\u5740",clearable:!0},null)]}),e(d,{label:"\u5E94\u7528ID",path:"appId",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u5E94\u7528ID"}]},{default:()=>[e(f,{value:a.appId,"onUpdate:value":s=>a.appId=s,placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528ID",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u8D26\u53F7",path:"account",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u8D26\u53F7"}]},{default:()=>[e(f,{value:a.account,"onUpdate:value":s=>a.account=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u8D26\u53F7",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5BC6\u7801",path:"password",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u7801"}]},{default:()=>[e(f,{value:a.password,"onUpdate:value":s=>a.password=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u7801",clearable:!0},null)]})]}),e(L,{cols:1},{default:()=>[e(d,{label:"\u62D3\u5C55\u53C2\u6570",path:"extendData",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u62D3\u5C55\u53C2\u6570"}]},{default:()=>[e(f,{value:a.extendData,"onUpdate:value":s=>a.extendData=s,placeholder:"\u8BF7\u8F93\u5165\u62D3\u5C55\u53C2\u6570",autosize:{minRows:3},type:"textarea"},null)]})]})]}),e(C,{justify:"end"},{default:()=>[e(i,{onClick:()=>c("close")},{default:()=>[g("\u53D6\u6D88")]}),e(i,{type:"primary",onClick:v,loading:l.value,disabled:l.value},{default:()=>[g("\u4FDD\u5B58")]})]})])}}),Le=F({name:"sms-config",setup(u){const y=z(),p=B(),c=K(),l=T({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,status:null},dataList:[],showEdit:!1,editMode:"add",editRowData:{}});E(()=>m(this,null,function*(){s()}));const a=x(),h=()=>{var t;(t=a.value)==null||t.submit()},n=()=>{var t;(t=a.value)==null||t.reset()},v=()=>{l.pagination.page=1,s()};x([]);const s=()=>m(this,null,function*(){try{l.loading=!0;const{data:t}=yield fe(D(D({},l.pagination),l.searchForm));l.pagination.pageTotal=Number(t.total),l.dataList=t.rows||[]}catch(t){}l.loading=!1}),r=t=>{const o=t.status?"\u505C\u7528":"\u542F\u7528";p.warning({title:"\u63D0\u793A",content:`\u662F\u5426${o}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield ge({id:t.id,status:!t.status}),s(),c.success(`${o}\u6210\u529F`)}catch(S){}})})},M=t=>{p.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${t.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield ye(t.id),s(),c.success("\u5220\u9664\u6210\u529F")}catch(o){}})})},I=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u5E73\u53F0\u540D\u79F0",key:"name"},{title:"\u5E73\u53F0\u6807\u8BC6",key:"sender"},{title:"\u63A5\u5165\u5730\u5740",key:"accessUrl"},{title:"\u5E94\u7528ID",key:"appId"},{title:"\u63A5\u5165\u8D26\u53F7",key:"account"},{title:"\u63A5\u5165\u5BC6\u7801",key:"password"},{title:"\u62D3\u5C55\u53C2\u6570",key:"extendData",render:t=>e(ae,{content:t.extendData},null)},{title:"\u72B6\u6001",key:"status",render(t){return e($,{type:t.status?"primary":"default"},{default:()=>[t.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(t){return e(C,null,{default:()=>[w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{y.push({path:"/message/messageConfigApp",query:{id:t.id}})}},{default:()=>[g("\u5E94\u7528\u8BE6\u60C5")]}),[[b("auth"),"message/messageConfigApp1788130264099217409"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>r(t)},{default:()=>[t.status?"\u505C\u7528":"\u542F\u7528"]}),[[b("auth"),"smsConfig/status1790932263540690945"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{l.showEdit=!0,l.editRowData=O(t),l.editMode="edit"}},{default:()=>[g("\u4FEE\u6539")]}),[[b("auth"),"smsConfig/update1790932998848319490"]]),w(e(i,{type:"primary",size:"small",text:!0,disabled:!!t.status,onClick:()=>M(t)},{default:()=>[g("\u5220\u9664")]}),[[b("auth"),"smsConfig/remove1790932360940818433"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e(G,{ref:a,model:l.searchForm,onSubmit:v,saveKey:"sms-config",onSetModel:t=>l.searchForm=t},{default:()=>[e(k,{label:"\u5173\u952E\u5B57",path:"keyword"},{default:()=>[e(f,{placeholder:"\u7F16\u53F7/\u540D\u79F0",value:l.searchForm.keyword,"onUpdate:value":t=>l.searchForm.keyword=t,clearable:!0},null)]}),e(k,{label:"\u72B6\u6001",path:"status"},{default:()=>[e(U,{value:l.searchForm.status,"onUpdate:value":t=>l.searchForm.status=t,clearable:!0,options:[{label:"\u542F\u7528",value:1},{label:"\u505C\u7528",value:0}],placeholder:"\u5168\u90E8\u72B6\u6001"},null)]}),e(k,null,{default:()=>[e(C,null,{default:()=>[e(i,{type:"primary",onClick:h},{default:()=>[g("\u641C\u7D22")]}),e(i,{type:"default",onClick:n},{default:()=>[g("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[w(e(i,{type:"primary",onClick:()=>{l.showEdit=!0,l.editMode="add"}},{default:()=>[g("\u65B0\u589E\u77ED\u4FE1\u5E73\u53F0")]}),[[b("auth"),"smsConfig/save1790932891084066817"]])]}),e("div",{class:["section-container"]},[e(_,{loading:l.loading,columns:I(),data:l.dataList,rowKey:t=>t.id,scrollX:"1400"},null),e(V,{page:l.pagination.page,"onUpdate:page":t=>l.pagination.page=t,pageSize:l.pagination.rows,"onUpdate:pageSize":t=>l.pagination.rows=t,pageTotal:l.pagination.pageTotal,"onUpdate:pageTotal":t=>l.pagination.pageTotal=t,onList:s,sync:!0,saveKey:"sms-config"},null)]),e(j,{blockScroll:!0,show:l.showEdit,"onUpdate:show":t=>l.showEdit=t,preset:"dialog",showIcon:!1,title:(l.editMode=="add"?"\u65B0\u589E":"\u7F16\u8F91")+"\u77ED\u4FE1\u5E73\u53F0",style:{width:"700px"}},{default:()=>[e(Ie,{editMode:l.editMode,rowData:l.editRowData,onClose:()=>l.showEdit=!1,onGetList:()=>{l.pagination.page=1,s()}},null)]})])}}),Ne=F({name:"push-config-edit",props:{editMode:{type:String,required:!0},rowData:{type:Object,required:!1},appData:{type:[],required:!0}},emits:["close","getList"],setup(u,{slots:y,attrs:p,emit:c}){K();const l=x(!1),a=T({name:null,sender:null,appKey:null,accessUrl:null,clientId:null,apnsProduction:null,account:null,password:null,timeToLive:null,extendData:null,deviceType:null}),h=x(),n=T({rowData:null,musicSheetCategories:[],appData:[]});E(()=>m(this,null,function*(){n.rowData=u.rowData,u.editMode=="edit"&&u.rowData&&(a.name=n.rowData.name,a.sender=n.rowData.sender,a.appKey=n.rowData.appKey,a.clientId=n.rowData.clientId,a.apnsProduction=n.rowData.apnsProduction,a.account=n.rowData.account,a.password=n.rowData.password,a.timeToLive=Number.parseFloat(n.rowData.timeToLive)/3600,a.accessUrl=n.rowData.accessUrl,a.extendData=n.rowData.extendData,a.deviceType=n.rowData.deviceType)}));const v=()=>m(this,null,function*(){h.value.validate(s=>m(this,null,function*(){if(s)return!1;l.value=!0;try{let r;u.editMode=="add"?r=yield he(N(D({},a),{timeToLive:Number.parseFloat(a.timeToLive)*3600})):r=yield ve(N(D({},a),{id:n.rowData.id,timeToLive:Number.parseFloat(a.timeToLive)*3600})),r&&r.code===200&&(c("close"),c("getList"))}catch(r){}l.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(R,{ref:h,labelPlacement:"top",model:a,"label-placement":"left","label-width":"100"},{default:()=>[e(L,{cols:2},{default:()=>[e(d,{label:"\u5E73\u53F0\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0"}]},{default:()=>[e(f,{value:a.name,"onUpdate:value":s=>a.name=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u5E73\u53F0\u6807\u8BC6",path:"sender",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u6807\u8BC6"}]},{default:()=>[e(f,{value:a.sender,"onUpdate:value":s=>a.sender=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u6807\u8BC6",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5E94\u7528",path:"appKey",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5E94\u7528"}]},{default:()=>[e(U,{value:a.appKey,"onUpdate:value":s=>a.appKey=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5E94\u7528",options:u.appData,clearable:!0},null)]}),e(d,{label:"\u5BA2\u6237\u7AEF",path:"clientId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF"}]},{default:()=>[e(U,{value:a.clientId,"onUpdate:value":s=>a.clientId=s,options:X(H),placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5730\u5740",path:"accessUrl",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5730\u5740"}]},{default:()=>[e(f,{value:a.accessUrl,"onUpdate:value":s=>a.accessUrl=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5730\u5740",clearable:!0},null)]}),e(d,{label:"\u63A8\u9001\u73AF\u5883",path:"apnsProduction",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A8\u9001\u73AF\u5883",type:"boolean"}]},{default:()=>[e(U,{value:a.apnsProduction,"onUpdate:value":s=>a.apnsProduction=s,placeholder:"\u8BF7\u8F93\u5165\u63A8\u9001\u73AF\u5883",options:[{label:"\u7EBF\u4E0A",value:!0},{label:"\u5F00\u53D1",value:!1}],clearable:!0},null)]}),e(d,{label:"\u63A5\u5165key",path:"account",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165key"}]},{default:()=>[e(f,{value:a.account,"onUpdate:value":s=>a.account=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165key",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5BC6\u94A5",path:"password",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u94A5"}]},{default:()=>[e(f,{value:a.password,"onUpdate:value":s=>a.password=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u7801",clearable:!0},null)]}),e(d,{label:"\u79BB\u7EBF\u4FDD\u7559\u65F6\u957F(\u5C0F\u65F6)",path:"timeToLive",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u79BB\u7EBF\u4FDD\u7559\u65F6\u957F(\u5C0F\u65F6)"}]},{default:()=>[e(re,{value:a.timeToLive,"onUpdate:value":s=>a.timeToLive=s,placeholder:"\u8BF7\u8F93\u5165\u79BB\u7EBF\u4FDD\u7559\u65F6\u957F(\u5C0F\u65F6)",min:0},null)]}),e(d,{label:"\u8BBE\u5907\u7C7B\u578B",path:"deviceType",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u8BBE\u5907\u7C7B\u578B"}]},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907\u7C7B\u578B",value:a.deviceType,"onUpdate:value":s=>a.deviceType=s,options:X(te),clearable:!0},null)]})]}),e(L,{cols:1},{default:()=>[e(d,{label:"\u62D3\u5C55\u53C2\u6570",path:"extendData",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u62D3\u5C55\u53C2\u6570"}]},{default:()=>[e(f,{value:a.extendData,"onUpdate:value":s=>a.extendData=s,placeholder:"\u8BF7\u8F93\u5165\u62D3\u5C55\u53C2\u6570",autosize:{minRows:3},type:"textarea"},null)]})]})]}),e(C,{justify:"end"},{default:()=>[e(i,{onClick:()=>c("close")},{default:()=>[g("\u53D6\u6D88")]}),e(i,{type:"primary",onClick:v,loading:l.value,disabled:l.value},{default:()=>[g("\u4FDD\u5B58")]})]})])}}),qe=F({name:"push-config",setup(u,y){A(),z();const p=B(),c=K(),l=T({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,status:null,appKey:null,clientId:null},name:null,smsConfigId:null,dataList:[],showEdit:!1,editMode:"add",editRowData:{},appData:[]});J(),E(()=>m(this,null,function*(){l.appData=[];const{data:t}=yield W({page:1,rows:999});t&&t.rows&&t.rows.forEach(o=>{l.appData.push({label:o.appName,value:o.appKey})}),s()}));const a=x(),h=()=>{var t;(t=a.value)==null||t.submit()},n=()=>{var t;(t=a.value)==null||t.reset()},v=()=>{l.pagination.page=1,s()},s=()=>m(this,null,function*(){l.loading=!0;try{const{data:t}=yield we(D(D({},l.pagination),l.searchForm));l.pagination.pageTotal=Number(t.total),l.dataList=t.rows||[]}catch(t){}l.loading=!1}),r=t=>{const o=t.status?"\u505C\u7528":"\u542F\u7528";p.warning({title:"\u63D0\u793A",content:`\u662F\u5426${o}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield be({id:t.id,status:!t.status}),s(),c.success(`${o}\u6210\u529F`)}catch(S){}})})},M=t=>{p.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${t.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield De(t.id),s(),c.success("\u5220\u9664\u6210\u529F")}catch(o){}})})},I=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u5E73\u53F0\u540D\u79F0",key:"name"},{title:"\u5E73\u53F0\u6807\u8BC6",key:"sender"},{title:"\u5E94\u7528",key:"appKey",render(t){return e("div",null,[q(t.appKey,new Map(Object.entries(Q)))])}},{title:"\u5BA2\u6237\u7AEF",key:"clientId",render(t){return e("div",null,[q(t.clientId,new Map(Object.entries(H)))])}},{title:"\u8BBE\u5907\u7C7B\u578B",key:"deviceType",render(t){return e("div",null,[q(t.deviceType,new Map(Object.entries(te)))])}},{title:"\u63A5\u5165\u5730\u5740",key:"accessUrl"},{title:"\u79BB\u7EBF\u4FDD\u7559\u65F6\u957F(\u5C0F\u65F6)",key:"timeToLive",render(t){return t.timeToLive/3600}},{title:"\u63A8\u9001\u73AF\u5883",key:"apnsProduction",render(t){return t.apnsProduction?"\u7EBF\u4E0A":"\u5F00\u53D1"}},{title:"\u63A5\u5165key",key:"account"},{title:"\u63A5\u5165\u79D8\u5319",key:"password"},{title:"\u62D3\u5C55\u53C2\u6570",key:"extendData",render(t){return e(ae,{content:t.extendData},null)}},{title:"\u72B6\u6001",key:"status",render(t){return e($,{type:t.status?"primary":"default"},{default:()=>[t.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",minWidth:"180px",render(t){return e(C,null,{default:()=>[w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{r(t)}},{default:()=>[t.status?"\u505C\u7528":"\u542F\u7528"]}),[[b("auth"),"appSendConfig/status1790933632397938690"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{l.showEdit=!0,l.editRowData=O(t),l.editMode="edit"}},{default:()=>[g("\u4FEE\u6539")]}),[[b("auth"),"appSendConfig/update1790933865680932866"]]),w(e(i,{type:"primary",size:"small",text:!0,disabled:!!t.status,onClick:()=>{M(t)}},{default:()=>[g("\u5220\u9664")]}),[[b("auth"),"appSendConfig/remove1790933707882827777"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"]},[e("div",{class:"system-menu-container"},[e(G,{ref:a,model:l.searchForm,onSubmit:v,saveKey:"push-config-app",onSetModel:t=>l.searchForm=t},{default:()=>[e(k,{label:"\u5173\u952E\u5B57",path:"keyword"},{default:()=>[e(f,{placeholder:"\u5E94\u7528\u7F16\u53F7/\u540D\u79F0",value:l.searchForm.keyword,"onUpdate:value":t=>l.searchForm.keyword=t,clearable:!0},null)]}),e(k,{label:"\u5E94\u7528",path:"appKey"},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528",value:l.searchForm.appKey,"onUpdate:value":t=>l.searchForm.appKey=t,options:l.appData,clearable:!0},null)]}),e(k,{label:"\u5BA2\u6237\u7AEF",path:"clientId"},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF",value:l.searchForm.clientId,"onUpdate:value":t=>l.searchForm.clientId=t,options:X(H),clearable:!0},null)]}),e(k,{label:"\u72B6\u6001",path:"status"},{default:()=>[e(U,{value:l.searchForm.status,"onUpdate:value":t=>l.searchForm.status=t,clearable:!0,options:[{label:"\u542F\u7528",value:1},{label:"\u505C\u7528",value:0}],placeholder:"\u5168\u90E8\u72B6\u6001"},null)]}),e(k,null,{default:()=>[e(C,null,{default:()=>[e(i,{type:"primary",onClick:h},{default:()=>[g("\u641C\u7D22")]}),e(i,{type:"default",onClick:n},{default:()=>[g("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[w(e(i,{type:"primary",onClick:()=>{l.showEdit=!0,l.editMode="add"}},{default:()=>[g("\u65B0\u589E\u63A8\u9001\u5E73\u53F0")]}),[[b("auth"),"appSendConfig/save1790933794033831937"]])]}),e("div",{class:["section-container"]},[e(_,{loading:l.loading,columns:I(),data:l.dataList,rowKey:t=>t.id,scrollX:"1400"},null),e(V,{page:l.pagination.page,"onUpdate:page":t=>l.pagination.page=t,pageSize:l.pagination.rows,"onUpdate:pageSize":t=>l.pagination.rows=t,pageTotal:l.pagination.pageTotal,"onUpdate:pageTotal":t=>l.pagination.pageTotal=t,onList:s,sync:!0,saveKey:"push-config-app"},null)]),e(j,{blockScroll:!0,show:l.showEdit,"onUpdate:show":t=>l.showEdit=t,preset:"dialog",showIcon:!1,title:(l.editMode=="add"?"\u65B0\u589E":"\u7F16\u8F91")+"\u63A8\u9001\u5E73\u53F0",style:{width:"700px"}},{default:()=>[e(Ne,{editMode:l.editMode,rowData:l.editRowData,appData:l.appData,onClose:()=>l.showEdit=!1,onGetList:()=>{l.pagination.page=1,s()}},null)]})])])])}}),Pe=F({mpName:"wechat-config-edit",props:{editMode:{type:String,required:!0},rowData:{type:Object,required:!1},appData:{type:Array,required:!0}},emits:["close","getList"],setup(u,{slots:y,attrs:p,emit:c}){K();const l=x(!1),a=T({mpName:null,appid:null,secret:null,token:null,aeskey:null,appKey:null,content:null}),h=x(),n=T({rowData:null});E(()=>m(this,null,function*(){n.rowData=u.rowData,u.editMode=="edit"&&u.rowData&&(a.mpName=n.rowData.mpName,a.appid=n.rowData.appid,a.secret=n.rowData.secret,a.token=n.rowData.token,a.aeskey=n.rowData.aeskey,a.appKey=n.rowData.appKey,a.content=n.rowData.content)}));const v=()=>m(this,null,function*(){h.value.validate(s=>m(this,null,function*(){if(s)return!1;l.value=!0;try{let r;u.editMode=="add"?r=yield ke(D({},a)):r=yield Ce(N(D({},a),{id:n.rowData.id})),r&&r.code===200&&(c("close"),c("getList"))}catch(r){}l.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(R,{ref:h,labelPlacement:"top",model:a,"label-placement":"left","label-width":"100"},{default:()=>[e(L,{cols:2},{default:()=>[e(d,{label:"\u516C\u4F17\u53F7\u540D\u79F0",path:"mpName",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7\u540D\u79F0"}]},{default:()=>[e(f,{value:a.mpName,"onUpdate:value":s=>a.mpName=s,placeholder:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u516C\u4F17\u53F7ID",path:"appid",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7ID"}]},{default:()=>[e(f,{value:a.appid,"onUpdate:value":s=>a.appid=s,placeholder:"\u8BF7\u8F93\u5165\u516C\u4F17\u53F7ID",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5BC6\u94A5",path:"secret",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u94A5"}]},{default:()=>[e(f,{value:a.secret,"onUpdate:value":s=>a.secret=s,placeholder:"\u8BF7\u8F93\u5165\u63A5\u5165\u5BC6\u94A5",clearable:!0},null)]}),e(d,{label:"\u6D88\u606F\u5BC6\u94A5",path:"token",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u6D88\u606F\u5BC6\u94A5"}]},{default:()=>[e(f,{value:a.token,"onUpdate:value":s=>a.token=s,placeholder:"\u8BF7\u8F93\u5165\u6D88\u606F\u5BC6\u94A5",clearable:!0},null)]}),e(d,{label:"\u52A0\u5BC6\u6A21\u5F0F\u5BC6\u94A5",path:"aeskey",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u52A0\u5BC6\u6A21\u5F0F\u5BC6\u94A5"}]},{default:()=>[e(f,{value:a.aeskey,"onUpdate:value":s=>a.aeskey=s,placeholder:"\u8BF7\u8F93\u5165\u52A0\u5BC6\u6A21\u5F0F\u5BC6\u94A5",clearable:!0},null)]}),e(d,{label:"\u5E94\u7528",path:"appKey",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5E94\u7528"}]},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528",value:a.appKey,"onUpdate:value":s=>a.appKey=s,options:u.appData,clearable:!0},null)]})]}),e(L,{cols:1},{default:()=>[e(d,{label:"\u5173\u6CE8\u516C\u4F17\u53F7\u63D0\u793A\u4FE1\u606F",path:"content",rule:[{required:!0,message:"\u5173\u6CE8\u516C\u4F17\u53F7\u63D0\u793A\u4FE1\u606F"}]},{default:()=>[e(f,{type:"textarea",value:a.content,"onUpdate:value":s=>a.content=s,placeholder:"\u5173\u6CE8\u516C\u4F17\u53F7\u63D0\u793A\u4FE1\u606F",autosize:{minRows:3},clearable:!0},null)]})]})]}),e(C,{justify:"end"},{default:()=>[e(i,{onClick:()=>c("close")},{default:()=>[g("\u53D6\u6D88")]}),e(i,{type:"primary",onClick:v,loading:l.value,disabled:l.value},{default:()=>[g("\u4FDD\u5B58")]})]})])}}),Re=F({name:"wechat-config",setup(u,y){A();const p=z(),c=B(),l=K(),a=T({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,appKey:null,status:null},name:null,dataList:[],showEdit:!1,editMode:"add",editRowData:{},appData:[]});J(),E(()=>m(this,null,function*(){a.appData=[];const{data:o}=yield W({page:1,rows:999});o&&o.rows&&o.rows.forEach(S=>{a.appData.push({label:S.appName,value:S.appKey})}),r()}));const h=x(),n=()=>{var o;(o=h.value)==null||o.submit()},v=()=>{var o;(o=h.value)==null||o.reset()},s=()=>{a.pagination.page=1,r()},r=()=>m(this,null,function*(){try{a.loading=!0;const{data:o}=yield Ue(D(D({},a.pagination),a.searchForm));a.pagination.pageTotal=Number(o.total),a.dataList=o.rows||[]}catch(o){}a.loading=!1}),M=o=>{const S=o.status?"\u505C\u7528":"\u542F\u7528";c.warning({title:"\u63D0\u793A",content:`\u662F\u5426${S}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield xe({id:o.id,status:!o.status}),r(),l.success(`${S}\u6210\u529F`)}catch(_e){}})})},I=o=>{c.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${o.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield Te(o.id),r(),l.success("\u5220\u9664\u6210\u529F")}catch(S){}})})},t=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u5E94\u7528",key:"appKey",render(o){return e("div",null,[q(o.appKey,new Map(Object.entries(Q)))])}},{title:"\u516C\u4F17\u53F7\u540D\u79F0",key:"mpName"},{title:"\u516C\u4F17\u53F7ID",key:"appid"},{title:"\u63A5\u5165\u5BC6\u94A5",key:"secret"},{title:"\u6D88\u606F\u5BC6\u94A5",key:"token"},{title:"\u52A0\u5BC6\u6A21\u5F0F\u5BC6\u94A5",key:"aeskey"},{title:"\u72B6\u6001",key:"status",render(o){return e($,{type:o.status?"primary":"default"},{default:()=>[o.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return e(C,null,{default:()=>[w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{p.push({path:"/message/wxTemplateConfig",query:{id:o.id}})}},{default:()=>[g("\u67E5\u770B\u6A21\u677F")]}),[[b("auth"),"message/wxTemplateConfig1788457824507092993"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{M(o)}},{default:()=>[o.status?"\u505C\u7528":"\u542F\u7528"]}),[[b("auth"),"wxConfigInfo/status1790934722325581825"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{a.showEdit=!0,a.editRowData=O(o),a.editMode="edit"}},{default:()=>[g("\u4FEE\u6539")]}),[[b("auth"),"wxConfigInfo/update1790934555132235777"]]),w(e(i,{type:"primary",size:"small",text:!0,disabled:!!o.status,onClick:()=>{I(o)}},{default:()=>[g("\u5220\u9664")]}),[[b("auth"),"wxConfigInfo/remove1790934636120051714"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"]},[e("div",{class:"system-menu-container"},[e(G,{ref:h,model:a.searchForm,onSubmit:s,saveKey:"wechat-config",onSetModel:o=>a.searchForm=o},{default:()=>[e(k,{label:"\u5173\u952E\u5B57",path:"keyword"},{default:()=>[e(f,{placeholder:"\u5E94\u7528\u7F16\u53F7/\u540D\u79F0",value:a.searchForm.keyword,"onUpdate:value":o=>a.searchForm.keyword=o,clearable:!0},null)]}),e(k,{label:"\u5E94\u7528",path:"appKey"},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u5E94\u7528",value:a.searchForm.appKey,"onUpdate:value":o=>a.searchForm.appKey=o,options:a.appData,clearable:!0},null)]}),e(k,{label:"\u72B6\u6001",path:"status"},{default:()=>[e(U,{value:a.searchForm.status,"onUpdate:value":o=>a.searchForm.status=o,clearable:!0,options:[{label:"\u542F\u7528",value:1},{label:"\u505C\u7528",value:0}],placeholder:"\u5168\u90E8\u72B6\u6001"},null)]}),e(k,null,{default:()=>[e(C,null,{default:()=>[e(i,{type:"primary",onClick:n},{default:()=>[g("\u641C\u7D22")]}),e(i,{type:"default",onClick:v},{default:()=>[g("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[w(e(i,{type:"primary",onClick:()=>{a.showEdit=!0,a.editMode="add"}},{default:()=>[g("\u65B0\u589E\u516C\u4F17\u53F7\u914D\u7F6E")]}),[[b("auth"),"wxConfigInfo/save1790934473301364738"]])]}),e("div",{class:["section-container"]},[e(_,{loading:a.loading,columns:t(),data:a.dataList,rowKey:o=>o.id,scrollX:"1400"},null),e(V,{page:a.pagination.page,"onUpdate:page":o=>a.pagination.page=o,pageSize:a.pagination.rows,"onUpdate:pageSize":o=>a.pagination.rows=o,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":o=>a.pagination.pageTotal=o,onList:r,sync:!0,saveKey:"wechat-config"},null)]),e(j,{blockScroll:!0,show:a.showEdit,"onUpdate:show":o=>a.showEdit=o,preset:"dialog",showIcon:!1,title:(a.editMode=="add"?"\u65B0\u589E":"\u7F16\u8F91")+"\u77ED\u4FE1\u5E73\u53F0",style:{width:"700px"}},{default:()=>[e(Pe,{editMode:a.editMode,rowData:a.editRowData,appData:a.appData,onClose:()=>a.showEdit=!1,onGetList:()=>{a.pagination.page=1,r()}},null)]})])])])}}),ze=F({mpName:"email-config-edit",props:{editMode:{type:String,required:!0},rowData:{type:Object,required:!1}},emits:["close","getList"],setup(u,{slots:y,attrs:p,emit:c}){K();const l=x(!1),a=T({name:null,sender:null,smtpPort:null,account:null,password:null,from:null,fromName:null,appKey:null,hostUrl:null}),h=x(),n=T({rowData:null,appData:[]});E(()=>m(this,null,function*(){n.rowData=u.rowData,u.editMode=="edit"&&u.rowData&&(a.name=n.rowData.name,a.sender=n.rowData.sender,a.smtpPort=n.rowData.smtpPort,a.account=n.rowData.account,a.password=n.rowData.password,a.from=n.rowData.from,a.fromName=n.rowData.fromName,a.appKey=n.rowData.appKey,a.hostUrl=n.rowData.hostUrl);{n.appData=[];const{data:s}=yield W({page:1,rows:999});s&&s.rows&&s.rows.forEach(r=>{n.appData.push({label:r.appName,value:r.appKey})})}}));const v=()=>m(this,null,function*(){h.value.validate(s=>m(this,null,function*(){if(s)return!1;l.value=!0;try{let r;u.editMode=="add"?r=yield Se(D({},a)):r=yield Fe(N(D({},a),{id:n.rowData.id})),r&&r.code===200&&(c("close"),c("getList"))}catch(r){}l.value=!1}))});return()=>e("div",{style:"background: #fff; padding-top: 12px"},[e(R,{ref:h,labelPlacement:"top",model:a,"label-placement":"left","label-width":"100"},{default:()=>[e(L,{cols:2},{default:()=>[e(d,{label:"\u5E73\u53F0\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0"}]},{default:()=>[e(f,{value:a.name,"onUpdate:value":s=>a.name=s,placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u57DF\u540D",path:"hostUrl",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u57DF\u540D"}]},{default:()=>[e(f,{value:a.hostUrl,"onUpdate:value":s=>a.hostUrl=s,placeholder:"\u8BF7\u8F93\u5165\u57DF\u540D",clearable:!0},null)]}),e(d,{label:"\u7AEF\u53E3",path:"smtpPort",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AEF\u53E3"}]},{default:()=>[e(f,{value:a.smtpPort,"onUpdate:value":s=>a.smtpPort=s,placeholder:"\u8BF7\u8F93\u5165\u7AEF\u53E3",clearable:!0},null)]}),e(d,{label:"\u7528\u6237\u540D",path:"account",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"}]},{default:()=>[e(f,{value:a.account,"onUpdate:value":s=>a.account=s,placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",clearable:!0},null)]}),e(d,{label:"\u5BC6\u7801",path:"password",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"}]},{default:()=>[e(f,{value:a.password,"onUpdate:value":s=>a.password=s,placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",clearable:!0},null)]}),e(d,{label:"\u53D1\u9001\u65B9",path:"from",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u9001\u65B9"}]},{default:()=>[e(f,{value:a.from,"onUpdate:value":s=>a.from=s,placeholder:"\u8BF7\u8F93\u5165\u53D1\u9001\u65B9",clearable:!0},null)]}),e(d,{label:"\u53D1\u9001\u65B9\u540D\u79F0",path:"fromName",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u9001\u65B9\u540D\u79F0"}]},{default:()=>[e(f,{value:a.fromName,"onUpdate:value":s=>a.fromName=s,placeholder:"\u8BF7\u8F93\u5165\u53D1\u9001\u65B9\u540D\u79F0",clearable:!0},null)]}),e(d,{label:"\u63A5\u5165\u5E94\u7528",path:"appKey",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u63A5\u5165\u5E94\u7528"}]},{default:()=>[e(U,{value:a.appKey,"onUpdate:value":s=>a.appKey=s,placeholder:"\u8BF7\u9009\u62E9\u63A5\u5165\u5E94\u7528",options:n.appData,clearable:!0},null)]})]})]}),e(C,{justify:"end"},{default:()=>[e(i,{onClick:()=>c("close")},{default:()=>[g("\u53D6\u6D88")]}),e(i,{type:"primary",onClick:v,loading:l.value,disabled:l.value},{default:()=>[g("\u4FDD\u5B58")]})]})])}}),Be=F({name:"email-config",setup(u,y){A(),z();const p=B(),c=K(),l=T({loading:!1,appId:null,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,status:null,appKey:null},name:null,dataList:[],showEdit:!1,editMode:"add",editRowData:{},appData:[]});J(),E(()=>m(this,null,function*(){{l.appData=[];const{data:t}=yield W({page:1,rows:999});t&&t.rows&&t.rows.forEach(o=>{l.appData.push({label:o.appName,value:o.appKey})})}s()}));const a=x(),h=()=>{var t;(t=a.value)==null||t.submit()},n=()=>{var t;(t=a.value)==null||t.reset()},v=()=>{l.pagination.page=1,s()},s=()=>m(this,null,function*(){try{l.loading=!0;const{data:t}=yield Ee(D(D({},l.pagination),l.searchForm));l.pagination.pageTotal=Number(t.total),l.dataList=t.rows||[]}catch(t){}l.loading=!1}),r=t=>{const o=t.status?"\u505C\u7528":"\u542F\u7528";p.warning({title:"\u63D0\u793A",content:`\u662F\u5426${o}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield Ke({id:t.id,status:!t.status}),s(),c.success(`${o}\u6210\u529F`)}catch(S){}})})},M=t=>{p.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${t.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>m(this,null,function*(){try{yield Me(t.id),s(),c.success("\u5220\u9664\u6210\u529F")}catch(o){}})})},I=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u5E73\u53F0\u540D\u79F0",key:"name"},{title:"\u63A5\u5165\u5E94\u7528",key:"appKey",render(t){return e("div",null,[q(t.appKey,new Map(Object.entries(Q)))])}},{title:"\u57DF\u540D",key:"hostUrl"},{title:"\u7AEF\u53E3",key:"smtpPort"},{title:"\u7528\u6237\u540D",key:"account"},{title:"\u5BC6\u7801",key:"password"},{title:"\u53D1\u9001\u65B9",key:"from"},{title:"\u53D1\u9001\u540D\u79F0",key:"fromName"},{title:"\u72B6\u6001",key:"status",render(t){return e($,{type:t.status?"primary":"default"},{default:()=>[t.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(t){return e(C,null,{default:()=>[w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{r(t)}},{default:()=>[t.status?"\u505C\u7528":"\u542F\u7528"]}),[[b("auth"),"emailConfig/status1790935300606857218"]]),w(e(i,{type:"primary",size:"small",text:!0,onClick:()=>{l.showEdit=!0,l.editRowData=O(t),l.editMode="edit"}},{default:()=>[g("\u4FEE\u6539")]}),[[b("auth"),"emailConfig/update1790935437341167617"]]),w(e(i,{type:"primary",size:"small",text:!0,disabled:!!t.status,onClick:()=>{M(t)}},{default:()=>[g("\u5220\u9664")]}),[[b("auth"),"emailConfig/remove1790935226178932738"]])]})}}];return()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"]},[e("div",{class:"system-menu-container"},[e(G,{ref:a,model:l.searchForm,onSubmit:v,saveKey:"email-config",onSetModel:t=>l.searchForm=t},{default:()=>[e(k,{label:"\u5173\u952E\u5B57",path:"keyword"},{default:()=>[e(f,{placeholder:"\u7F16\u53F7/\u5E73\u53F0\u540D\u79F0",value:l.searchForm.keyword,"onUpdate:value":t=>l.searchForm.keyword=t,clearable:!0},null)]}),e(k,{label:"\u63A5\u5165\u5E94\u7528",path:"appKey"},{default:()=>[e(U,{placeholder:"\u8BF7\u9009\u62E9\u63A5\u5165\u5E94\u7528",value:l.searchForm.appKey,"onUpdate:value":t=>l.searchForm.appKey=t,options:l.appData,clearable:!0},null)]}),e(k,{label:"\u72B6\u6001",path:"status"},{default:()=>[e(U,{value:l.searchForm.status,"onUpdate:value":t=>l.searchForm.status=t,clearable:!0,options:[{label:"\u542F\u7528",value:1},{label:"\u505C\u7528",value:0}],placeholder:"\u5168\u90E8\u72B6\u6001"},null)]}),e(k,null,{default:()=>[e(C,null,{default:()=>[e(i,{type:"primary",onClick:h},{default:()=>[g("\u641C\u7D22")]}),e(i,{type:"default",onClick:n},{default:()=>[g("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[w(e(i,{type:"primary",onClick:()=>{l.showEdit=!0,l.editMode="add"}},{default:()=>[g("\u65B0\u589E\u90AE\u4EF6\u914D\u7F6E")]}),[[b("auth"),"emailConfig/save1790935373034098690"]])]}),e("div",{class:["section-container"]},[e(_,{loading:l.loading,columns:I(),data:l.dataList,rowKey:t=>t.id,scrollX:"1400"},null),e(V,{page:l.pagination.page,"onUpdate:page":t=>l.pagination.page=t,pageSize:l.pagination.rows,"onUpdate:pageSize":t=>l.pagination.rows=t,pageTotal:l.pagination.pageTotal,"onUpdate:pageTotal":t=>l.pagination.pageTotal=t,onList:s,sync:!0,saveKey:"email-config"},null)]),e(j,{blockScroll:!0,show:l.showEdit,"onUpdate:show":t=>l.showEdit=t,preset:"dialog",showIcon:!1,title:(l.editMode=="add"?"\u65B0\u589E":"\u7F16\u8F91")+"\u90AE\u4EF6\u914D\u7F6E",style:{width:"700px"}},{default:()=>[e(ze,{editMode:l.editMode,rowData:l.editRowData,onClose:()=>l.showEdit=!1,onGetList:()=>{l.pagination.page=1,s()}},null)]})])])])}}),ea=F({name:"message-config-index",setup(){const u=T({tabName:"SMS"}),y=x();de(l=>{l.form.tabName&&(u.tabName=l.form.tabName,ee(()=>{var a;return(a=y.value)==null?void 0:a.syncBarPosition()}))});const p=A(),c=l=>{pe(l,"tabName",p)};return E(()=>m(this,null,function*(){ee(()=>{var l;return(l=y.value)==null?void 0:l.syncBarPosition()})})),()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"],style:"padding-top: 0"},[e(ie,{ref:y,type:"line",size:"large",value:u.tabName,"onUpdate:value":[l=>u.tabName=l,l=>c(l)]},{default:()=>[w(e(P,{name:"SMS",tab:"\u77ED\u4FE1"},{default:()=>[e(Le,null,null)]}),[[b("auth"),"smsConfig/page1790929887618469889"]]),w(e(P,{name:"PUSH",tab:"\u63A8\u9001"},{default:()=>[e(qe,null,null)]}),[[b("auth"),"appSendConfig/page1790933531566870529"]]),w(e(P,{name:"WECHAT",tab:"\u516C\u4F17\u53F7"},{default:()=>[e(Re,null,null)]}),[[b("auth"),"wxConfigInfo/page1790934372273164290"]]),w(e(P,{name:"EMAIL",tab:"\u90AE\u4EF6"},{default:()=>[e(Be,null,null)]}),[[b("auth"),"emailConfig/page1790935157727891457"]])]})])])}});export{ea as default};
- >>>>>>>> b903ebfeb5dfe3869bfa504d62e84bd887f1748f:dist/assets/index.203efc98.js
|