import{u as $}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{u as I}from"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import{b as R,u as U,a as V,_ as q}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{r as u,y as h,m as A,al as s,z as N,I as J,J as t,R as n,u as a,O as c}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{b as M,d as j}from"./scoreApi-49c9277f-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";const G=()=>{R(),u([]),(async()=>{})(),u([]),(async()=>{})();const d=u([{prop:"name",label:"\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"}},{prop:"dictTypeSign",label:"\u5B57\u5178\u6807\u8BC6",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B57\u5178\u6807\u8BC6"}},{prop:"status",label:"\u72B6\u6001",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"}}]),m=u([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u540D\u79F0",prop:"name"},{label:"\u5B57\u5178\u6807\u8BC6",prop:"dictTypeSign"},{label:"\u72B6\u6001",prop:"status"},{label:"\u521B\u5EFA\u4EBA",prop:"creatorOrganUnitType"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:d,tableColumns:m,dataCallBack:r=>(r.listData.forEach(b=>{}),r),paramCallBack:r=>r}},K=G,Q=h({name:"scoreIndex"}),W=h({...Q,setup(k){const p=U(),d=V(),{tableColumns:m,columns:_,dataCallBack:C,paramCallBack:r}=K(),{tableData:b,pageable:i,baseParam:X,searchParam:S,totalParam:Y,pageParam:ee,handleSizeChange:x,handleCurrentChange:z,getTableList:f,search:B,reset:T,loading:w}=$(M,C,r),P=()=>{p.push({name:"scoreAdd"})},v=l=>{p.push({name:"scoreDetail",query:{id:l.id}})},D=l=>{p.push({name:"scoreEdit",query:{id:l.id}})},H=async l=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await I(j,{id:l.id},e),f()};return A(async()=>{await f()}),(l,e)=>{const E=s("HZSearchForm"),F=s("el-button"),g=s("el-link"),O=s("HZProTable"),Z=s("el-pagination"),L=s("HZPageLayout");return N(),J(L,{title:a(d).meta.title},{searchForm:t(()=>[n(E,{"search-param":a(S),columns:a(_),search:a(B),reset:a(T)},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[n(Z,{"current-page":a(i).page,"onUpdate:currentPage":e[0]||(e[0]=o=>a(i).page=o),"page-size":a(i).size,"onUpdate:pageSize":e[1]||(e[1]=o=>a(i).size=o),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(i).count,onSizeChange:a(x),onCurrentChange:a(z)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[n(O,{columns:a(m),data:a(b),isFlex:!1,loading:a(w)},{tableHeader:t(()=>e[2]||(e[2]=[])),toolButton:t(()=>[n(F,{type:"primary",onClick:P},{default:t(()=>e[3]||(e[3]=[c(" \u65B0\u589E ",-1)])),_:1,__:[3]})]),operation:t(o=>[n(g,{type:"primary",onClick:y=>v(o.row)},{default:t(()=>e[4]||(e[4]=[c(" \u67E5\u770B ",-1)])),_:2,__:[4]},1032,["onClick"]),n(g,{type:"primary",onClick:y=>D(o.row)},{default:t(()=>e[5]||(e[5]=[c(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"]),n(g,{type:"danger",onClick:y=>H(o.row)},{default:t(()=>e[6]||(e[6]=[c(" \u5220\u9664 ",-1)])),_:2,__:[6]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const ie=q(W,[["__scopeId","data-v-09f0f8be"]]);export{ie as default};
