index-069c2535.js 3.6 KB

1
  1. import{u as R,_ as j,a as w}from"./useTable-36a14322.js";import{_ as F}from"./ContentWrap.vue_vue_type_script_setup_true_lang-3e2a4d47.js";import{d as M,r as P,x as U,Q as A,o as p,c as q,i as r,w as i,a,B as n,j as c,m as u,F as B,_ as I,q as O,__tla as Q}from"./index-6d906b8a.js";import{a as v,_ as T,__tla as D}from"./MailTemplateForm.vue_vue_type_script_setup_true_lang-d654f25a.js";import{a as E,d as G}from"./index-89efe0ce.js";import{_ as H}from"./MailTemplateSendForm.vue_vue_type_script_setup_true_lang-7136eb79.js";import"./Form-424314c3.js";import"./el-virtual-list-245d0617.js";import"./el-tree-select-73d9f90b.js";import"./el-time-select-05556594.js";import"./InputPassword-6d118d58.js";import"./InputPassword.vue_vue_type_style_index_0_scoped_0af03974_lang-5f93c03b.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./style.css_vue_type_style_index_0_src_true_lang-d62b46a5.js";import"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3a6b66a.js";import"./index-6b24d3ee.js";import"./el-image-viewer-3eb20b9c.js";import"./useMessage-cb0d0c75.js";import"./UploadImg-6255f1e4.js";import"./UploadImgs-7833db09.js";import"./UploadImgs.vue_vue_type_style_index_0_scoped_bad238b9_lang-1b8df76e.js";import"./UploadFile-b3e715d9.js";import"./UploadFile.vue_vue_type_style_index_0_scoped_a9e67aa2_lang-e3ef4000.js";import"./index-06db4b5a.js";import"./useForm-a2bef669.js";import"./download-20922b56.js";import"./el-card-dcb0121c.js";import"./Dialog-7d76582a.js";import"./formatTime-b48ce278.js";import"./index-2f72d348.js";import"./formRules-da14bc95.js";import"./dict-1d5b7a74.js";import"./useCrudSchemas-b7f6993d.js";import"./tree-fd3a041e.js";import"./DictTag.vue_vue_type_script_lang-afe43767.js";import"./color-6e929987.js";let b,J=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return D}catch{}})()]).then(async()=>{b=M({name:"SystemMailTemplate",__name:"index",setup(K){const{tableObject:o,tableMethods:d}=R({getListApi:E,delListApi:G}),{getList:_,setSearchParams:f}=d,g=P(),y=(h,t)=>{g.value.open(h,t)},k=P();return U(()=>{_()}),(h,t)=>{const x=I,l=O,z=j,S=F,L=w,s=A("hasPermi");return p(),q(B,null,[r(S,null,{default:i(()=>[r(z,{schema:a(v).searchSchema,onSearch:a(f),onReset:a(f)},{actionMore:i(()=>[n((p(),c(l,{type:"primary",plain:"",onClick:t[0]||(t[0]=e=>y("create"))},{default:i(()=>[r(x,{icon:"ep:plus",class:"mr-5px"}),t[3]||(t[3]=u(" \u65B0\u589E "))]),_:1})),[[s,["system:mail-account:create"]]])]),_:1},8,["schema","onSearch","onReset"])]),_:1}),r(S,null,{default:i(()=>[r(L,{columns:a(v).tableColumns,data:a(o).tableList,loading:a(o).loading,pagination:{total:a(o).total},pageSize:a(o).pageSize,"onUpdate:pageSize":t[1]||(t[1]=e=>a(o).pageSize=e),currentPage:a(o).currentPage,"onUpdate:currentPage":t[2]||(t[2]=e=>a(o).currentPage=e)},{action:i(({row:e})=>[n((p(),c(l,{link:"",type:"primary",onClick:C=>{return m=e.id,void k.value.open(m);var m}},{default:i(()=>t[4]||(t[4]=[u(" \u6D4B\u8BD5 ")])),_:2},1032,["onClick"])),[[s,["system:mail-template:send-mail"]]]),n((p(),c(l,{link:"",type:"primary",onClick:C=>y("update",e.id)},{default:i(()=>t[5]||(t[5]=[u(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[s,["system:mail-template:update"]]]),n((p(),c(l,{link:"",type:"danger",onClick:C=>{return m=e.id,void d.delList(m,!1);var m}},{default:i(()=>t[6]||(t[6]=[u(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[s,["system:mail-template:delete"]]])]),_:1},8,["columns","data","loading","pagination","pageSize","currentPage"])]),_:1}),r(T,{ref_key:"formRef",ref:g,onSuccess:a(_)},null,8,["onSuccess"]),r(H,{ref_key:"sendFormRef",ref:k},null,512)],64)}}})});export{J as __tla,b as default};