| 123456 |
- import{ak as x,bS as k,cA as h,bD as y,d as g,o as R,Z as l,a1 as v,T as c,$ as u,bj as S,b_ as w,n as a,bi as r,a5 as d,aP as p,b9 as f}from"./index-8a67e3df.js";import{u as I}from"./system-7d6c6ba1.js";import"./dayjs-919e6097.js";/*!
- * pinia v2.0.36
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */var m;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(m||(m={}));function j(e){{e=x(e);const o={};for(const n in e){const s=e[n];(k(s)||h(s))&&(o[n]=y(e,n))}return o}}const E=g({__name:"index",setup(e){const o=I(),{plugins:n}=j(o),s=[{title:"名称",dataIndex:"name",width:"120px"},{title:"状态",dataIndex:"disabled",width:"80px",customRender:({record:t})=>a(r,{color:t.disabled?"red":"green"},{default:()=>[t.disabled?"禁用":"启用"]})},{title:"描述",dataIndex:"description",customRender:({record:t})=>{const i=[];if(t.description)for(const[_,b]of Object.entries(t.description))i.push(a(r,{color:"blue",class:"mb-4px"},{default:()=>[_,d(": "),b]}));return a("div",{class:"flex flex-wrap gap-4px"},[i])}},{title:"操作",dataIndex:"action",width:"140px",align:"center",customRender:({record:t})=>a("div",null,[a(p,{type:"link",onClick:()=>{f.confirm({title:`确定重启${t.name}吗?`,content:"开发中"})}},{default:()=>[d("重启")]}),a(p,{type:"link",onClick:()=>{f.confirm({title:`配置${t.name}`,content:"开发中"})}},{default:()=>[d("配置")]})])}];return R(()=>{o.loadSysInfo()}),(t,i)=>(l(),v("div",null,[c(n).length?(l(),u(c(S),{key:0,dataSource:c(n),columns:s,size:"small",pagination:!1,bordered:!0},null,8,["dataSource"])):(l(),u(c(w),{key:1}))]))}});export{E as default};
- //# sourceMappingURL=index-c40b4658.js.map
|