import{u as L}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{u as $}from"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import{b as q,u as I,a as R,q as U,g as A,_ as N}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{r as u,y as k,m as J,al as r,z as M,I as j,J as t,R as o,u as a,O as c}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";const G=()=>{q(),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:l=>(l.listData.forEach(C=>{}),l),paramCallBack:l=>l}},K=G,Q=k({name:"violationTypeIndex"}),W=k({...Q,setup(T){const p=I(),d=R(),{tableColumns:m,columns:_,dataCallBack:y,paramCallBack:l}=K(),{tableData:C,pageable:i,baseParam:X,searchParam:f,totalParam:Y,pageParam:ee,handleSizeChange:x,handleCurrentChange:S,getTableList:b,search:v,reset:z,loading:B}=L(A,y,l),D=()=>{p.push({name:"violationTypeAdd"})},w=s=>{p.push({name:"violationTypeDetail",query:{id:s.id}})},P=s=>{p.push({name:"violationTypeEdit",query:{id:s.id}})},H=async s=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await $(U,{id:s.id},e),b()};return J(async()=>{f.value.dictTypeSign="get_out_of_line",await b()}),(s,e)=>{const E=r("HZSearchForm"),F=r("el-button"),g=r("el-link"),O=r("HZProTable"),Z=r("el-pagination"),V=r("HZPageLayout");return M(),j(V,{title:a(d).meta.title},{searchForm:t(()=>[o(E,{"search-param":a(f),columns:a(_),search:a(v),reset:a(z)},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[o(Z,{"current-page":a(i).page,"onUpdate:currentPage":e[0]||(e[0]=n=>a(i).page=n),"page-size":a(i).size,"onUpdate:pageSize":e[1]||(e[1]=n=>a(i).size=n),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(i).count,onSizeChange:a(x),onCurrentChange:a(S)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[o(O,{columns:a(m),data:a(C),isFlex:!1,loading:a(B)},{tableHeader:t(()=>e[2]||(e[2]=[])),toolButton:t(()=>[o(F,{type:"primary",onClick:D},{default:t(()=>e[3]||(e[3]=[c(" \u65B0\u589E ",-1)])),_:1,__:[3]})]),operation:t(n=>[o(g,{type:"primary",onClick:h=>w(n.row)},{default:t(()=>e[4]||(e[4]=[c(" \u67E5\u770B ",-1)])),_:2,__:[4]},1032,["onClick"]),o(g,{type:"primary",onClick:h=>P(n.row)},{default:t(()=>e[5]||(e[5]=[c(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"]),o(g,{type:"danger",onClick:h=>H(n.row)},{default:t(()=>e[6]||(e[6]=[c(" \u5220\u9664 ",-1)])),_:2,__:[6]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const re=N(W,[["__scopeId","data-v-53578f93"]]);export{re as default};
