import{d as C,Y as E,h as U,ai as q,r as l,aj as f,o as s,f as c,w as t,b as e,k as u,a2 as N,a7 as h,l as F}from"./index.e3896b23.js";import{_ as B}from"./add-or-update.vue_vue_type_script_setup_true_lang.aceeddd9.js";const H=F("\u67E5\u8BE2"),S=F("\u4FEE\u6539"),R=C({name:"Global-manageLayerIndex"}),A=C({...R,setup($){const a=E({dataListUrl:"/data-integrate/layer/page",deleteUrl:"/data-integrate/layer",queryForm:{name:"",cnName:""}}),p=U(),y=m=>{p.value.init(m)},{getDataList:i,selectionChangeHandle:b,sizeChangeHandle:D,currentChangeHandle:v,deleteBatchHandle:O}=q(a);return(m,n)=>{const _=l("el-input"),d=l("el-form-item"),g=l("el-button"),z=l("el-form"),o=l("el-table-column"),k=l("el-table"),w=l("el-pagination"),x=l("el-card"),L=f("auth"),V=f("loading");return s(),c(x,null,{default:t(()=>[e(z,{inline:!0,model:a.queryForm,onKeyup:n[3]||(n[3]=N(r=>u(i)(),["enter"]))},{default:t(()=>[e(d,null,{default:t(()=>[e(_,{modelValue:a.queryForm.name,"onUpdate:modelValue":n[0]||(n[0]=r=>a.queryForm.name=r),placeholder:"\u5206\u5C42\u82F1\u6587\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(_,{modelValue:a.queryForm.cnName,"onUpdate:modelValue":n[1]||(n[1]=r=>a.queryForm.cnName=r),placeholder:"\u5206\u5C42\u4E2D\u6587\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(g,{onClick:n[2]||(n[2]=r=>u(i)())},{default:t(()=>[H]),_:1})]),_:1})]),_:1},8,["model"]),h((s(),c(k,{data:a.dataList,border:"",style:{width:"100%"},onSelectionChange:u(b)},{default:t(()=>[e(o,{type:"selection","header-align":"center",align:"center",width:"50"}),e(o,{prop:"name",label:"\u5206\u5C42\u82F1\u6587\u540D\u79F0","header-align":"center",align:"center"}),e(o,{prop:"cnName",label:"\u5206\u5C42\u4E2D\u6587\u540D\u79F0","header-align":"center",align:"center"}),e(o,{prop:"note",label:"\u5206\u5C42\u63CF\u8FF0","header-align":"center",align:"center"}),e(o,{prop:"tablePrefix",label:"\u8868\u540D\u524D\u7F00","header-align":"center",align:"center"}),e(o,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","header-align":"center",align:"center"}),e(o,{label:"\u64CD\u4F5C",fixed:"right","header-align":"center",align:"center",width:"150"},{default:t(r=>[h((s(),c(g,{type:"primary",link:"",onClick:j=>y(r.row.id)},{default:t(()=>[S]),_:2},1032,["onClick"])),[[L,"data-integrate:layer:update"]])]),_:1})]),_:1},8,["data","onSelectionChange"])),[[V,a.dataListLoading]]),e(w,{"current-page":a.page,"page-sizes":a.pageSizes,"page-size":a.limit,total:a.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:u(D),onCurrentChange:u(v)},null,8,["current-page","page-sizes","page-size","total","onSizeChange","onCurrentChange"]),e(B,{ref_key:"addOrUpdateRef",ref:p,onRefreshDataList:u(i)},null,8,["onRefreshDataList"])]),_:1})}}});export{A as default};
