import{u as x,_ as M,a as F}from"./useTable-yZO19ICF.js";import{_ as U}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.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-CHTXMeh8.js";import{a as b,_ as D,__tla as E}from"./MailTemplateForm.vue_vue_type_script_setup_true_lang-IHCvjDxn.js";import{a as G,d as H}from"./index-CzI510gN.js";import{_ as I}from"./MailTemplateSendForm.vue_vue_type_script_setup_true_lang-C6kYpAxI.js";import"./Form.vue_vue_type_style_index_0_scoped_09f6ff61_lang-B0myO5Ey.js";import"./el-virtual-list-DyZstV52.js";import"./el-tree-select-DhIHMmfG.js";import"./InputPassword-BKyYinTx.js";import"./index-DVe591HI.js";import"./Form-DWU3hFR9.js";import"./useForm-CEk1zgLl.js";import"./download-e0EdwhTv.js";import"./el-card-Bdk9qx7q.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";import"./formatTime-DG99nHw2.js";import"./useCrudSchemas-8uncdcXs.js";import"./tree-BBZY150N.js";import"./DictTag.vue_vue_type_script_lang-DPOZRs0A.js";import"./color-DXkOL5Tu.js";import"./formRules-KRws1Ke5.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};