选煤厂安全管理系统前端代码
houzhongjian
2024-11-25 37b2044f04a09e89f82f8484279b5f06b7194481
1
import{u as R,_ as x,a as A}from"./useTable-yZO19ICF.js";import{_ as M}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{d as U,r as C,b as j,a1 as F,o as n,c as O,k as r,B as o,a,P as p,g as c,O as u,F as q,U as w,V as B}from"./index-CHTXMeh8.js";import{a as P}from"./account.data-D64eYZda.js";import{b as V,d as D}from"./useCrudSchemas-8uncdcXs.js";import{_ as E}from"./MailAccountForm.vue_vue_type_script_setup_true_lang-D-7To6k0.js";import{_ as G}from"./MailAccountDetail.vue_vue_type_script_setup_true_lang-EfEXVPfq.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"./formatTime-DG99nHw2.js";import"./formRules-KRws1Ke5.js";import"./tree-BBZY150N.js";import"./DictTag.vue_vue_type_script_lang-DPOZRs0A.js";import"./color-DXkOL5Tu.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";import"./Descriptions-CMzSHNIV.js";import"./el-descriptions-item-XOb4a1bP.js";const H=U({name:"SystemMailAccount",__name:"index",setup(I){const{tableObject:i,tableMethods:d}=R({getListApi:V,delListApi:D}),{getList:f,setSearchParams:g}=d,_=C(),y=(S,e)=>{_.value.open(S,e)},k=C();return j(()=>{f()}),(S,e)=>{const v=w,m=B,z=x,h=M,L=A,l=F("hasPermi");return n(),O(q,null,[r(h,null,{default:o(()=>[r(z,{schema:a(P).searchSchema,onSearch:a(g),onReset:a(g)},{actionMore:o(()=>[p((n(),c(m,{type:"primary",plain:"",onClick:e[0]||(e[0]=t=>y("create"))},{default:o(()=>[r(v,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[l,["system:mail-account:create"]]])]),_:1},8,["schema","onSearch","onReset"])]),_:1}),r(h,null,{default:o(()=>[r(L,{columns:a(P).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:o(({row:t})=>[p((n(),c(m,{link:"",type:"primary",onClick:b=>y("update",t.id)},{default:o(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[l,["system:mail-account:update"]]]),p((n(),c(m,{link:"",type:"primary",onClick:b=>{return s=t.id,void k.value.open(s);var s}},{default:o(()=>[u(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[l,["system:mail-account:query"]]]),p((n(),c(m,{link:"",type:"danger",onClick:b=>{return s=t.id,void d.delList(s,!1);var s}},{default:o(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[l,["system:mail-account:delete"]]])]),_:1},8,["columns","data","loading","pagination","pageSize","currentPage"])]),_:1}),r(E,{ref_key:"formRef",ref:_,onSuccess:a(f)},null,8,["onSuccess"]),r(G,{ref_key:"detailRef",ref:k},null,512)],64)}}});export{H as default};