import{u as q}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{u as L}from"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import{u as $}from"./useScore-79ca4f62-1782572373740v=1.0.0.js";import{e as G}from"./scoreReleaseApi-a2bdf2d9-1782572373740v=1.0.0.js";import{u as N,a as M,w as U,_ as J}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{y as b,r as O,m as K,al as r,z as c,I as _,J as a,R as s,u as t,O as u,M as g}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import"./useGetDIct-7b6bc50c-1782572373740v=1.0.0.js";import"./useGetGroupTerm-2c81d695-1782572373740v=1.0.0.js";import"./eventGroupAndTermApi-31c30359-1782572373740v=1.0.0.js";const Q=b({name:"scoreIndex"}),W=b({...Q,setup(X){const i=N(),y=M();let C;(o=>{o.project="project",o.group="group"})(C||(C={})),O("project");const{tableColumns:k,columns:v,dataCallBack:h,paramCallBack:z}=$(y.query.eventProjectType),{tableData:w,pageable:l,baseParam:Y,searchParam:P,totalParam:ee,pageParam:te,handleSizeChange:S,handleCurrentChange:x,getTableList:f,search:H,reset:T,loading:B}=q(G,h,z),F=()=>{i.push({name:"scoreAdd"})},D=o=>{i.push({name:"scoreDetail",query:{id:o.id}})},E=o=>{i.push({name:"scoreEdit",query:{id:o.id}})},Z=o=>{i.push({name:"scoreReleaseAdd",query:{id:o.id}})},A=async(o,e)=>{let d=e==="publish"?"\u53D1\u5E03":"\u64A4\u9500";await L(U,{bizContentId:o.eventGradeId,bizTable:"ppo_eventactivity__event_grade",field:"status",val:e},d),f()};return K(async()=>{await f()}),(o,e)=>{const d=r("HZSearchForm"),I=r("el-button"),p=r("el-link"),R=r("HZProTable"),V=r("el-pagination"),j=r("HZPageLayout");return c(),_(j,{title:t(y).meta.title},{searchForm:a(()=>[s(d,{"search-param":t(P),columns:t(v),search:t(H),reset:t(T)},null,8,["search-param","columns","search","reset"])]),pagination:a(()=>[s(V,{"current-page":t(l).page,"onUpdate:currentPage":e[0]||(e[0]=n=>t(l).page=n),"page-size":t(l).size,"onUpdate:pageSize":e[1]||(e[1]=n=>t(l).size=n),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:t(l).count,onSizeChange:t(S),onCurrentChange:t(x)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:a(()=>e[8]||(e[8]=[])),default:a(()=>[s(R,{columns:t(k),data:t(w),isFlex:!1,loading:t(B)},{tableHeader:a(()=>e[2]||(e[2]=[])),toolButton:a(()=>[s(I,{type:"primary",onClick:F},{default:a(()=>e[3]||(e[3]=[u(" \u65B0\u589E ",-1)])),_:1,__:[3]})]),operation:a(n=>[n.row.eventGradeStatus!=="publish"?(c(),_(p,{key:0,type:"primary",onClick:m=>Z(n.row)},{default:a(()=>e[4]||(e[4]=[u("\u53D1\u5E03 ",-1)])),_:2,__:[4]},1032,["onClick"])):g("v-if",!0),n.row.eventGradeStatus==="publish"?(c(),_(p,{key:1,type:"primary",onClick:m=>A(n.row,"channel")},{default:a(()=>e[5]||(e[5]=[u("\u64A4\u9500 ",-1)])),_:2,__:[5]},1032,["onClick"])):g("v-if",!0),s(p,{type:"primary",onClick:m=>D(n.row)},{default:a(()=>e[6]||(e[6]=[u(" \u67E5\u770B ",-1)])),_:2,__:[6]},1032,["onClick"]),s(p,{type:"primary",onClick:m=>E(n.row)},{default:a(()=>e[7]||(e[7]=[u(" \u7F16\u8F91 ",-1)])),_:2,__:[7]},1032,["onClick"]),g(' <el-link type="danger" @click="handleDel(scope.row)"> \u5220\u9664 </el-link> ')]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const ce=J(W,[["__scopeId","data-v-8e969b5f"]]);export{ce as default};
