沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
1
import{u as R,_ as x,a as A}from"./useTable-C6Yqovep.js";import{_ as M}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.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-BP6bNRoi.js";import{a as b}from"./account.data-CGzUiLMk.js";import{b as V,d as D}from"./useCrudSchemas-C857pLxT.js";import{_ as E}from"./MailAccountForm.vue_vue_type_script_setup_true_lang-DhtkioXo.js";import{_ as G}from"./MailAccountDetail.vue_vue_type_script_setup_true_lang-tEymLTfD.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"./formatTime-DwR9f7DP.js";import"./formRules-9V-NAySD.js";import"./tree-BBZY150N.js";import"./DictTag.vue_vue_type_script_lang-DwXPHgid.js";import"./color-DXkOL5Tu.js";import"./Dialog.vue_vue_type_style_index_0_lang-DFckl8Er.js";import"./Descriptions-DqoepVxh.js";import"./el-descriptions-item-BuMEVwqR.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(b).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(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:o(({row:t})=>[p((n(),c(m,{link:"",type:"primary",onClick:P=>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:P=>{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:P=>{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};