import{d as h,Y as T,h as x,ai as H,r as o,aj as I,o as g,f as m,w as a,b as e,a7 as U,k as r,l as c}from"./index.e3896b23.js";import{_ as R}from"./data-add-or-update.vue_vue_type_script_setup_true_lang.1d0a65ff.js";const $=c("\u65B0\u589E"),q=c("\u4FEE\u6539"),N=c("\u5220\u9664"),O=h({name:"SysDictData"}),A=h({...O,props:{dictTypeId:{type:Number,required:!0}},setup(f){const s=f,t=T({dataListUrl:"/sys/dict/data/page",deleteUrl:"/sys/dict/data",queryForm:{dictTypeId:s.dictTypeId}}),l=x(),u=p=>{l.value.dataForm.dictTypeId=s.dictTypeId,l.value.init(p)},{getDataList:C,sizeChangeHandle:y,selectionChangeHandle:b,sortChangeHandle:k,currentChangeHandle:v,deleteBatchHandle:w}=H(t);return(p,_)=>{const i=o("el-button"),z=o("el-form-item"),F=o("el-form"),n=o("el-table-column"),B=o("el-table"),D=o("el-pagination"),L=o("el-card"),S=I("loading");return g(),m(L,null,{default:a(()=>[e(F,{inline:!0,model:t.queryForm},{default:a(()=>[e(z,null,{default:a(()=>[e(i,{type:"primary",onClick:_[0]||(_[0]=d=>u())},{default:a(()=>[$]),_:1})]),_:1})]),_:1},8,["model"]),U((g(),m(B,{data:t.dataList,border:"",style:{width:"100%"},onSelectionChange:r(b),onSortChange:r(k)},{default:a(()=>[e(n,{type:"selection","header-align":"center",align:"center",width:"50"}),e(n,{prop:"dictValue",label:"\u5B57\u5178\u503C","header-align":"center",align:"center"}),e(n,{prop:"dictLabel",label:"\u5B57\u5178\u6807\u7B7E","header-align":"center",align:"center"}),e(n,{prop:"sort",label:"\u6392\u5E8F",sortable:"custom","header-align":"center",align:"center"}),e(n,{prop:"remark",label:"\u5907\u6CE8","header-align":"center",align:"center"}),e(n,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","header-align":"center",align:"center",width:"180"}),e(n,{label:"\u64CD\u4F5C",fixed:"right","header-align":"center",align:"center",width:"150"},{default:a(d=>[e(i,{type:"primary",link:"",onClick:E=>u(d.row.id)},{default:a(()=>[q]),_:2},1032,["onClick"]),e(i,{type:"primary",link:"",onClick:E=>r(w)(d.row.id)},{default:a(()=>[N]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onSelectionChange","onSortChange"])),[[S,t.dataListLoading]]),e(D,{"current-page":t.page,"page-sizes":t.pageSizes,"page-size":t.limit,total:t.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:r(y),onCurrentChange:r(v)},null,8,["current-page","page-sizes","page-size","total","onSizeChange","onCurrentChange"]),e(R,{ref_key:"addOrUpdateRef",ref:l,onRefreshDataList:r(C)},null,8,["onRefreshDataList"])]),_:1})}}});export{A as _};
