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