import{d as k,Y as S,h as H,ai as A,r as o,aj as b,o as d,f as s,w as t,b as e,k as u,a7 as _,a2 as R,l as i,t as F}from"./index.e3896b23.js";import{_ as O}from"./add-or-update.vue_vue_type_script_setup_true_lang.d627c8a1.js";import"./clusterConfiguration.e495cab8.js";const T=i("\u67E5\u8BE2"),j=i("\u65B0\u589E"),K=i("\u5220\u9664"),N=i("\u67E5\u770B"),I=i("\u5220\u9664"),Y=k({name:"Data-developmentCluster-configurationIndex"}),Q=k({...Y,setup(G){const n=S({dataListUrl:"/data-development/cluster-configuration/page",deleteUrl:"/data-development/cluster-configuration",queryForm:{name:"",alias:""}}),f=H(),h=C=>{f.value.init(C)},{getDataList:g,selectionChangeHandle:B,sizeChangeHandle:D,currentChangeHandle:w,deleteBatchHandle:v}=A(n);return(C,l)=>{const y=o("el-input"),c=o("el-form-item"),p=o("el-button"),z=o("el-form"),r=o("el-table-column"),x=o("fast-table-column"),V=o("fast-creator-column"),E=o("el-table"),L=o("el-pagination"),U=o("el-card"),m=b("auth"),$=b("loading");return d(),s(U,{"body-style":"height: calc(100vh - 170px )"},{default:t(()=>[e(z,{inline:!0,model:n.queryForm,onKeyup:l[5]||(l[5]=R(a=>u(g)(),["enter"]))},{default:t(()=>[e(c,null,{default:t(()=>[e(y,{modelValue:n.queryForm.name,"onUpdate:modelValue":l[0]||(l[0]=a=>n.queryForm.name=a),placeholder:"\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(y,{modelValue:n.queryForm.alias,"onUpdate:modelValue":l[1]||(l[1]=a=>n.queryForm.alias=a),placeholder:"\u522B\u540D"},null,8,["modelValue"])]),_:1}),e(c,null,{default:t(()=>[e(p,{onClick:l[2]||(l[2]=a=>u(g)())},{default:t(()=>[T]),_:1})]),_:1}),e(c,null,{default:t(()=>[_((d(),s(p,{type:"primary",onClick:l[3]||(l[3]=a=>h())},{default:t(()=>[j]),_:1})),[[m,"data-development:cluster-configuration:save"]])]),_:1}),e(c,null,{default:t(()=>[_((d(),s(p,{type:"danger",onClick:l[4]||(l[4]=a=>u(v)())},{default:t(()=>[K]),_:1})),[[m,"data-development:cluster-configuration:delete"]])]),_:1})]),_:1},8,["model"]),_((d(),s(E,{data:n.dataList,border:"",style:{width:"100%"},onSelectionChange:u(B)},{default:t(()=>[e(r,{type:"selection","header-align":"center",align:"center",width:"50"}),e(r,{prop:"name",label:"\u540D\u79F0","header-align":"center",align:"center"}),e(r,{prop:"alias",label:"\u522B\u540D","header-align":"center",align:"center"}),e(x,{prop:"type",label:"\u7C7B\u578B","header-align":"center",align:"center","dict-type":"production_cluster_configuration_type"}),e(r,{prop:"isAvailable",label:"\u662F\u5426\u53EF\u7528","header-align":"center",align:"center"},{default:t(a=>[i(F(a.row.isAvailable?"\u662F":"\u5426"),1)]),_:1}),e(r,{prop:"enabled",label:"\u662F\u5426\u542F\u7528","header-align":"center",align:"center"},{default:t(a=>[i(F(a.row.enabled?"\u662F":"\u5426"),1)]),_:1}),e(V,{prop:"creator",label:"\u521B\u5EFA\u8005","header-align":"center",align:"center"}),e(r,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","header-align":"center",align:"center"}),e(r,{prop:"updateTime",label:"\u6700\u8FD1\u66F4\u65B0\u65F6\u95F4","header-align":"center",align:"center"}),e(r,{label:"\u64CD\u4F5C",fixed:"right","header-align":"center",align:"center",width:"150"},{default:t(a=>[_((d(),s(p,{type:"primary",link:"",onClick:q=>h(a.row.id)},{default:t(()=>[N]),_:2},1032,["onClick"])),[[m,"data-development:cluster-configuration:update"]]),_((d(),s(p,{type:"primary",link:"",onClick:q=>u(v)(a.row.id)},{default:t(()=>[I]),_:2},1032,["onClick"])),[[m,"data-development:cluster-configuration:delete"]])]),_:1})]),_:1},8,["data","onSelectionChange"])),[[$,n.dataListLoading]]),e(L,{"current-page":n.page,"page-sizes":n.pageSizes,"page-size":n.limit,total:n.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:u(D),onCurrentChange:u(w)},null,8,["current-page","page-sizes","page-size","total","onSizeChange","onCurrentChange"]),e(O,{ref_key:"addOrUpdateRef",ref:f,onRefreshDataList:u(g)},null,8,["onRefreshDataList"])]),_:1})}}});export{Q as default};
