Files
zyt/server/public/admin/assets/index-Bxwzzkn7.js
T
2026-03-24 16:32:56 +08:00

2 lines
2.6 KiB
JavaScript

import{L as C,M as h,N as E,U as x,i as L,J as B}from"./element-plus-CFxTwCZ2.js";import{d as N}from"./message-gzYYk4Ea.js";import{_ as T}from"./edit.vue_vue_type_script_setup_true_lang-BSpNB8Jr.js";import{f as u,as as R,ak as i,I as D,aP as c,G as a,aN as o,a as r,O as l}from"./@vue/runtime-core-C0pg79pw.js";import{y as f,u as S,r as V}from"./@vue/reactivity-BIbyPIZJ.js";import"./@vue/runtime-dom-iFk_KP8y.js";import"./lodash-D3kF6u-c.js";import"./@vue/shared-mAAVTE9n.js";import"./@element-plus/icons-vue-cboVPb4D.js";import"./lodash-es-BADexyn7.js";import"./@popperjs/core-C5az9QE8.js";import"./dayjs-DG77mNTn.js";import"./@ctrl/tinycolor-BuyEbX8F.js";import"./async-validator-CFA_igpM.js";import"./normalize-wheel-es-BQoi3Ox2.js";import"./index-DqzX0p3J.js";import"./jspdf-BsthCvR5.js";import"./@babel/runtime-BanGtE2-.js";import"./fflate-_ayOYiT1.js";import"./vue-router-CYz6RFzi.js";import"./pinia-Ba_jX6-d.js";import"./axios-C80V62Fs.js";import"./@vueuse/core-DIKi2bJB.js";import"./@vueuse/shared-D8934tfB.js";import"./css-color-function-DI01JAaZ.js";import"./balanced-match-BdS7OldZ.js";import"./color-B2zxaWkI.js";import"./clone-DBZ6_OiU.js";import"./color-convert-OrFsTA_V.js";import"./color-name-Dju3oUBS.js";import"./color-string-pUQDDJII.js";import"./ms-CzQ2E3wO.js";import"./vue-clipboard3-DByT_rEQ.js";import"./clipboard-CHgxszqY.js";import"./echarts-DYKKs4Al.js";import"./tslib-BDyQ-Jie.js";import"./zrender-CTTuYiLF.js";import"./highlight.js-Bxt7hFFy.js";import"./@highlightjs/vue-plugin-BVMzZUvF.js";import"./index-Dn-pwuas.js";const $=u({name:"shortLetter"}),ht=u({...$,setup(z){const p=S(),e=V({loading:!1,lists:[]}),d=async()=>{try{e.loading=!0,e.lists=await N(),e.loading=!1}catch{e.loading=!1}},g=s=>{var t;(t=p.value)==null||t.open(s)};return d(),(s,t)=>{const m=E,_=x,v=L,k=h,y=B,b=R("perms"),w=C;return i(),D("div",null,[c((i(),a(y,{class:"!border-none",shadow:"never"},{default:o(()=>[r(k,{size:"large",data:f(e).lists},{default:o(()=>[r(m,{label:"短信渠道",prop:"name","min-width":"120"}),r(m,{label:"状态","min-width":"120"},{default:o(({row:n})=>[n.status==1?(i(),a(_,{key:0},{default:o(()=>[...t[0]||(t[0]=[l("开启",-1)])]),_:1})):(i(),a(_,{key:1,type:"danger"},{default:o(()=>[...t[1]||(t[1]=[l("关闭",-1)])]),_:1}))]),_:1}),r(m,{label:"操作","min-width":"120",fixed:"right"},{default:o(({row:n})=>[c((i(),a(v,{type:"primary",link:"",onClick:G=>g(n.type)},{default:o(()=>[...t[2]||(t[2]=[l(" 设置 ",-1)])]),_:1},8,["onClick"])),[[b,["notice.sms_config/setConfig"]]])]),_:1})]),_:1},8,["data"])]),_:1})),[[w,f(e).loading]]),r(T,{ref_key:"editRef",ref:p,onSuccess:d},null,512)])}}});export{ht as default};