mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-02 03:08:12 +00:00
2 lines
4.4 KiB
JavaScript
2 lines
4.4 KiB
JavaScript
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-aae906bf.js";/* empty css *//* empty css */import{t}from"./index-5f4ce139.js";import{e as getSmsList}from"./message-aca08575.js";import{_ as _sfc_main$1}from"./sms-ali.vue_vue_type_script_setup_true_lang-6d827810.js";import{_ as _sfc_main$2}from"./sms-tencent.vue_vue_type_script_setup_true_lang-4801b2c1.js";import{a as ElTableColumn,E as ElTable}from"./index-a9458a49.js";import{E as ElTag}from"./index-2804b007.js";import{E as ElButton}from"./index-4862d1b3.js";import{E as ElCard}from"./index-acd12562.js";import{v as vLoading}from"./directive-a07a10ed.js";import{d as defineComponent,r as ref,M as reactive,b as openBlock,e as createElementBlock,q as createVNode,p as withCtx,f as createBaseVNode,L as withDirectives,m as createBlock,u as unref,x as toDisplayString,v as createTextVNode,C as createCommentVNode}from"./runtime-core.esm-bundler-7c3fd514.js";import"./vue-router-b5675730.js";import"./el-overlay-f7f710bd.js";import"./plugin-vue_export-helper-edbdb6f8.js";import"./index-f02197a7.js";import"./index-868cd458.js";import"./index-a3cf5375.js";import"./event-9519ab40.js";import"./focus-trap-bb1e8c7a.js";import"./index-7b0897f9.js";import"./error-492b6a5b.js";import"./el-switch-3d36d31d.js";import"./index-cf47f151.js";import"./index-2083be2e.js";import"./index-95693143.js";import"./index-47617222.js";import"./validator-62f68fe3.js";/* empty css */import"./el-radio-c9a1047c.js";import"./common-465e36b3.js";import"./index-2f0b1bf3.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-7d17482e.js";import"./index-be5dc120.js";import"./common-cc37bda4.js";import"./common-2cf17469.js";/* empty css *//* empty css */import"./index-624573cc.js";import"./_baseClone-cf40e5b2.js";import"./_Uint8Array-de4f83bb.js";import"./_initCloneObject-bc5ed9bb.js";import"./index-4683bff4.js";import"./index-c656f08b.js";import"./index-470ade69.js";import"./isEqual-f40f939e.js";import"./flatten-b3585bb8.js";import"./_isIterateeCall-7a6fae02.js";const _hoisted_1={class:"main-container"},_hoisted_2={class:"mt-[16px]"},_sfc_main=defineComponent({__name:"sms",setup(__props){const aliDialog=ref(null),tencentDialog=ref(null);let smsTableData=reactive({loading:!0,data:[]});const loadSmsList=()=>{smsTableData.loading=!0,getSmsList().then(r=>{smsTableData.data=r.data,smsTableData.loading=!1}).catch(()=>{smsTableData.loading=!1})};loadSmsList();const editEvent=data=>{eval(data.sms_type+"Dialog.value.setFormData(data)"),eval(data.sms_type+"Dialog.value.showDialog = true;")};return(r,o)=>{const a=ElTableColumn,i=ElTag,l=ElButton,m=ElTable,s=ElCard,n=vLoading;return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(s,{class:"box-card !border-none",shadow:"never"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2,[withDirectives((openBlock(),createBlock(m,{data:unref(smsTableData).data,size:"large"},{empty:withCtx(()=>[createBaseVNode("span",null,toDisplayString(unref(smsTableData).loading?"":unref(t)("emptyData")),1)]),default:withCtx(()=>[createVNode(a,{prop:"name",label:unref(t)("name"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),createVNode(a,{label:unref(t)("isUse"),"min-width":"180",align:"center"},{default:withCtx(({row:e})=>[e.is_use==1?(openBlock(),createBlock(i,{key:0,class:"ml-2",type:"success"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t)("statusNormal")),1)]),_:1})):createCommentVNode("",!0),e.is_use==0?(openBlock(),createBlock(i,{key:1,class:"ml-2",type:"error"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t)("statusDeactivate")),1)]),_:1})):createCommentVNode("",!0)]),_:1},8,["label"]),createVNode(a,{label:unref(t)("operation"),fixed:"right",width:"100"},{default:withCtx(({row:e})=>[createVNode(l,{type:"primary",link:"",onClick:p=>editEvent(e)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[n,unref(smsTableData).loading]])]),createVNode(_sfc_main$1,{ref_key:"aliDialog",ref:aliDialog,onComplete:o[0]||(o[0]=e=>loadSmsList())},null,512),createVNode(_sfc_main$2,{ref_key:"tencentDialog",ref:tencentDialog,onComplete:o[1]||(o[1]=e=>loadSmsList())},null,512)]),_:1})])}}});export{_sfc_main as default};
|