选煤厂安全管理系统前端代码
houzhongjian
2024-11-25 37b2044f04a09e89f82f8484279b5f06b7194481
1
import{d as B,Q as G,J,r as d,A as O,b as Q,a1 as W,o as c,c as X,k as e,B as a,a as t,a2 as N,O as m,P as f,g,C as Y,F as Z,a7 as j,S as D,U as E,V as H,W as $,X as I,Y as L,Z as M}from"./index-CHTXMeh8.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang-Cenk7Bi3.js";import{_ as ae}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{d as le}from"./formatTime-DG99nHw2.js";import{b as te,d as oe}from"./index-CcK5vsAD.js";import{_ as re}from"./AppGroupForm.vue_vue_type_script_setup_true_lang-pfnbMlhK.js";import"./index-DVe591HI.js";import"./el-card-Bdk9qx7q.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";const pe=["src"],se=B({name:"SystemAppGroup",__name:"index",setup(ne){const h=G(),{t:P}=J(),_=d(!0),k=d(0),x=d([]),r=O({pageNo:1,pageSize:10,code:void 0,name:void 0,createTime:[]}),C=d(),s=async()=>{_.value=!0;try{const n=await te(r);x.value=n.list,k.value=n.total}finally{_.value=!1}},u=()=>{r.pageNo=1,s()},z=()=>{C.value.resetFields(),u()},v=d(),S=(n,o)=>{v.value.open(n,o)};return Q(async()=>{await s()}),(n,o)=>{const V=j,y=D,b=E,i=H,F=$,U=ae,p=I,A=L,K=ee,w=W("hasPermi"),R=M;return c(),X(Z,null,[e(U,null,{default:a(()=>[e(F,{class:"-mb-15px",model:t(r),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:a(()=>[e(y,{label:"\u5206\u7EC4\u7F16\u53F7",prop:"appCode"},{default:a(()=>[e(V,{modelValue:t(r).code,"onUpdate:modelValue":o[0]||(o[0]=l=>t(r).code=l),placeholder:"\u8BF7\u8F93\u5165\u5206\u7EC4\u7F16\u53F7",clearable:"",onKeyup:N(u,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u5206\u7EC4\u540D\u79F0",prop:"appName"},{default:a(()=>[e(V,{modelValue:t(r).name,"onUpdate:modelValue":o[1]||(o[1]=l=>t(r).name=l),placeholder:"\u8BF7\u8F93\u5165\u5206\u7EC4\u540D\u79F0",clearable:"",onKeyup:N(u,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(y,null,{default:a(()=>[e(i,{onClick:u},{default:a(()=>[e(b,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22 ")]),_:1}),e(i,{onClick:z},{default:a(()=>[e(b,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E ")]),_:1}),f((c(),g(i,{type:"primary",plain:"",onClick:o[2]||(o[2]=l=>S("create"))},{default:a(()=>[e(b,{icon:"ep:plus",class:"mr-5px"}),m(" \u65B0\u589E ")]),_:1})),[[w,["system:app-group:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(U,null,{default:a(()=>[f((c(),g(A,{data:t(x)},{default:a(()=>[e(p,{label:"\u5206\u7EC4\u7F16\u53F7",align:"center",prop:"code"}),e(p,{label:"\u5206\u7EC4\u540D\u79F0",align:"center",prop:"name"}),e(p,{label:"\u5206\u7EC4\u56FE\u6807",align:"center",prop:"logo"},{default:a(l=>[Y("img",{width:"40px",height:"40px",src:l.row.icon},null,8,pe)]),_:1}),e(p,{label:"\u6392\u5E8F",align:"center",prop:"sort"}),e(p,{label:"\u5907\u6CE8",align:"center",prop:"remark",width:"200"}),e(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(le)},null,8,["formatter"]),e(p,{label:"\u64CD\u4F5C",align:"center","min-width":"110",fixed:"right"},{default:a(l=>[f((c(),g(i,{link:"",type:"primary",onClick:T=>S("update",l.row.id)},{default:a(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["system:app-group:update"]]]),f((c(),g(i,{link:"",type:"danger",onClick:T=>(async q=>{try{await h.delConfirm(),await oe(q),h.success(P("common.delSuccess")),await s()}catch{}})(l.row.id)},{default:a(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["system:app-group:delete"]]])]),_:1})]),_:1},8,["data"])),[[R,t(_)]]),e(K,{total:t(k),page:t(r).pageNo,"onUpdate:page":o[3]||(o[3]=l=>t(r).pageNo=l),limit:t(r).pageSize,"onUpdate:limit":o[4]||(o[4]=l=>t(r).pageSize=l),onPagination:s},null,8,["total","page","limit"])]),_:1}),e(re,{ref_key:"formRef",ref:v,onSuccess:s},null,512)],64)}}});export{se as default};