import{u as x,_ as M,a as F}from"./useTable-C6Yqovep.js";import{_ as U}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{d as j,r as C,b as A,a1 as O,o as s,c as T,k as o,B as r,a,P as p,g as c,O as u,F as w,U as B,V,__tla as q}from"./index-BP6bNRoi.js";import{a as b,_ as D,__tla as E}from"./MailTemplateForm.vue_vue_type_script_setup_true_lang-Cv6ILmYk.js";import{a as G,d as H}from"./index-CC9P7Y1v.js";import{_ as I}from"./MailTemplateSendForm.vue_vue_type_script_setup_true_lang-D_q_Z5uu.js";import"./Form.vue_vue_type_style_index_0_scoped_09f6ff61_lang-D5RcC1zQ.js";import"./el-virtual-list-DJUo12qZ.js";import"./el-tree-select-pYALMRc9.js";import"./InputPassword-Da-PE-q6.js";import"./index-BZESAUPP.js";import"./Form-CFzd3m81.js";import"./useForm-sMS-5OOc.js";import"./download-e0EdwhTv.js";import"./el-card-bU92WWV4.js";import"./Dialog.vue_vue_type_style_index_0_lang-DFckl8Er.js";import"./formatTime-DwR9f7DP.js";import"./useCrudSchemas-C857pLxT.js";import"./tree-BBZY150N.js";import"./DictTag.vue_vue_type_script_lang-DwXPHgid.js";import"./color-DXkOL5Tu.js";import"./formRules-9V-NAySD.js";let v,J=Promise.all([(()=>{try{return q}catch{}})(),(()=>{try{return E}catch{}})()]).then(async()=>{v=j({name:"SystemMailTemplate",__name:"index",setup(K){const{tableObject:i,tableMethods:d}=x({getListApi:G,delListApi:H}),{getList:_,setSearchParams:f}=d,g=C(),y=(h,e)=>{g.value.open(h,e)},k=C();return A(()=>{_()}),(h,e)=>{const z=B,m=V,L=M,S=U,R=F,n=O("hasPermi");return s(),T(w,null,[o(S,null,{default:r(()=>[o(L,{schema:a(b).searchSchema,onSearch:a(f),onReset:a(f)},{actionMore:r(()=>[p((s(),c(m,{type:"primary",plain:"",onClick:e[0]||(e[0]=t=>y("create"))},{default:r(()=>[o(z,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[n,["system:mail-template:create"]]])]),_:1},8,["schema","onSearch","onReset"])]),_:1}),o(S,null,{default:r(()=>[o(R,{columns:a(b).tableColumns,data:a(i).tableList,loading:a(i).loading,pagination:{total:a(i).total},pageSize:a(i).pageSize,"onUpdate:pageSize":e[1]||(e[1]=t=>a(i).pageSize=t),currentPage:a(i).currentPage,"onUpdate:currentPage":e[2]||(e[2]=t=>a(i).currentPage=t)},{action:r(({row:t})=>[p((s(),c(m,{link:"",type:"primary",onClick:P=>{return l=t.id,void k.value.open(l);var l}},{default:r(()=>[u(" \u6D4B\u8BD5 ")]),_:2},1032,["onClick"])),[[n,["system:mail-template:send-mail"]]]),p((s(),c(m,{link:"",type:"primary",onClick:P=>y("update",t.id)},{default:r(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[n,["system:mail-template:update"]]]),p((s(),c(m,{link:"",type:"danger",onClick:P=>{return l=t.id,void d.delList(l,!1);var l}},{default:r(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[n,["system:mail-template:delete"]]])]),_:1},8,["columns","data","loading","pagination","pageSize","currentPage"])]),_:1}),o(D,{ref_key:"formRef",ref:g,onSuccess:a(_)},null,8,["onSuccess"]),o(I,{ref_key:"sendFormRef",ref:k},null,512)],64)}}})});export{J as __tla,v as default};