|
|
*/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};
|
|
*/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};
|