import{d as N,r as c,v as D,l as R,C as B,a as l,o as I,i as L,e as t,b as o,u as e,m as O,H as U,I as F,j as H,_ as j}from"./index-8184dd63-1780045603901v=1.0.0.js";import{I as q}from"./IndexPagePro-13c09835-1780045603901v=1.0.0.js";import{u as M,P as $}from"./useTable-6673e486-1780045603901v=1.0.0.js";import{E as A}from"./index-1b521f19-1780045603901v=1.0.0.js";import{S as G}from"./index-a4b7c6d3-1780045603901v=1.0.0.js";import{b as J}from"./index-59bbc758-1780045603901v=1.0.0.js";import{c as K}from"./areaSupply-2a8dcd36-1780045603901v=1.0.0.js";import"./notData-5e24f986-1780045603901v=1.0.0.js";import"./sortable.esm-cb107890-1780045603901v=1.0.0.js";import"./common-5ba50e89-1780045603901v=1.0.0.js";import"./useGetTagHook-d138769d-1780045603901v=1.0.0.js";import"./tagManage-1b66d64b-1780045603901v=1.0.0.js";import"./reportingYear-23c6c3e7-1780045603901v=1.0.0.js";import"./index-7b6cf23d-1780045603901v=1.0.0.js";const Q=N({__name:"index",setup(W){const{columns:d,tableColumns:g}=J(),_=c(!0),{tableData:b,pageable:r,baseParam:p,searchParam:v,handleSizeChange:f,handleCurrentChange:C,getTableList:i,search:h,reset:y,totalParam:x,pageParam:S}=M(K),s=c(1),k=D(),z=R(()=>({param:{...x.value,...S.value}})),P=()=>{p.value.report_type=s.value,r.value.page=1,i()},w=u=>{k.push({name:"mSupplyEventDetail",query:{edit_id:u.sports_event_report_id,report_type:s.value}})};return B(async()=>{p.value.report_type=1,await i()}),(u,a)=>{const m=l("el-tab-pane"),E=l("el-tabs"),V=l("el-button"),T=l("el-pagination");return I(),L(q,null,{tabSelect:t(()=>[o(E,{modelValue:e(s),"onUpdate:modelValue":a[0]||(a[0]=n=>O(s)?s.value=n:null),type:"card",class:"no_margin_tab",onTabChange:P},{default:t(()=>[o(m,{label:"\u5B9E\u9645\u60C5\u51B5",name:1}),o(m,{label:"\u8BA1\u5212\u5B89\u6392",name:2})]),_:1},8,["modelValue"])]),searchForm:t(()=>[U(o(G,{"search-param":e(v),columns:e(d),search:e(h),reset:e(y)},null,8,["search-param","columns","search","reset"]),[[F,e(_)]])]),pagination:t(()=>[o(T,{"current-page":e(r).page,"onUpdate:currentPage":a[1]||(a[1]=n=>e(r).page=n),"page-size":e(r).size,"onUpdate:pageSize":a[2]||(a[2]=n=>e(r).size=n),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(r).count,onSizeChange:e(f),onCurrentChange:e(C)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),default:t(()=>[o($,{columns:e(g),data:e(b)},{tableHeader:t(()=>[...a[3]||(a[3]=[])]),toolButton:t(()=>[o(A,{taskName:"sportsEventReportListExport",class:"mr10 ml10",taskOption:e(z)},null,8,["taskOption"])]),operation:t(n=>[o(V,{type:"primary",link:"",onClick:X=>w(n.row)},{default:t(()=>[...a[4]||(a[4]=[H("\u67E5\u770B",-1)])]),_:1},8,["onClick"])]),_:1},8,["columns","data"])]),_:1})}}}),ce=j(Q,[["__file","D:/desktop/yunNan/vue-area-submit/src/views/manage/supply/event/index.vue"]]);export{ce as default};
