import{u as $}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{u as J}from"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import{b as U,g as M,u as q,a as K,w as j,_ as G}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{r as i,y as I,m as Q,al as p,z as S,I as B,J as o,R as r,u as a,k as W,B as X,O as c,M as Y}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{b as ee}from"./contestAppealApi-946ca67c-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";const ae=()=>{const f=U();i([]),(async()=>{})(),i([]),(async()=>{})();const s=i([]);(async()=>{const t=await M({page:1,size:9999,dictTypeSign:"appeal_type",isEnable:1});t.code===0&&(s.value=t.data.listData.map(l=>({label:l.name,value:l.dictId})))})();const b=i([{prop:"eventName",label:"\u8D5B\u4E8B\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u8D5B\u4E8B\u540D\u79F0"}},{prop:"appealFeedbackStatus",label:"\u7533\u8BC9\u72B6\u6001",isFilterEnum:!0,enum:f.getEnumListByKey("appealFeedbackStatus"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u7533\u8BC9\u72B6\u6001"}},{prop:"appealFeedbackId",label:"\u7533\u8BC9\u4FE1\u606F",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u7533\u8BC9\u7F16\u53F7\u67E5\u8BE2"}},{prop:"dictId",label:"\u7533\u8BC9\u7C7B\u578B",isFilterEnum:!0,enum:s,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u7533\u8BC9\u7C7B\u578B"}}]),g=i([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u7533\u8BC9\u7F16\u53F7",prop:"appealFeedbackId"},{label:"\u6240\u5C5E\u8D5B\u4E8B",prop:"eventName"},{label:"\u7533\u8BC9\u4EBA",prop:"creatorName"},{label:"\u7533\u8BC9\u4EBA\u624B\u673A\u53F7\u7801",prop:"createPhone"},{label:"\u7533\u8BC9\u7C7B\u578B",prop:"dictIdName"},{label:"\u7533\u8BC9\u5185\u5BB9",prop:"content"},{label:"\u63D0\u4EA4\u65F6\u95F4",prop:"createTime"},{label:"\u7533\u8BC9\u72B6\u6001",prop:"appealFeedbackStatusCn"},{label:"\u5904\u7406\u4EBA",prop:"updater"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:b,tableColumns:g,dataCallBack:t=>(t.listData.forEach(l=>{var d,_;((d=l.evidence)==null?void 0:d.length)>0?l.evidence=JSON.parse(l.evidence||"[]"):l.evidence=[],((_=l.replyAttachments)==null?void 0:_.length)>0?l.replyAttachments=JSON.parse(l.replyAttachments||"[]"):l.replyAttachments=[]}),t),paramCallBack:t=>t}},te=ae,le={class:"dialog-footer"},oe=I({name:"contestAppealIndex"}),ne=I({...oe,setup(f){const m=q(),k=K(),s=i(!1),{tableColumns:C,columns:b,dataCallBack:g,paramCallBack:y}=te(),{tableData:h,pageable:t,baseParam:l,searchParam:d,totalParam:_,pageParam:se,handleSizeChange:x,handleCurrentChange:w,getTableList:v,search:z,reset:E,loading:D}=$(ee,g,y);Q(async()=>{l.value={appealFeedbackType:"appeal"},await v()});const P=()=>{m.push({name:"contestAppealAdd"})},N=u=>{m.push({name:"appealDetail",query:{id:u.appealFeedbackId,type:"appeal",view:1}})},O=async u=>{let e="\u63D0\u4EA4\u7533\u8BC9";await J(j,{bizContentId:u.appealFeedbackId,bizTable:"ppo_eventactivity__appeal_feedback",field:"appeal_feedback_status",val:"wait"},e),v()};return(u,e)=>{const V=p("HZSearchForm"),F=p("el-button"),A=p("el-link"),T=p("HZProTable"),H=p("el-pagination"),L=p("el-dialog"),Z=p("HZPageLayout");return S(),B(Z,{title:a(k).meta.title},{searchForm:o(()=>[r(V,{"search-param":a(d),columns:a(b),search:a(z),reset:a(E)},null,8,["search-param","columns","search","reset"])]),pagination:o(()=>[r(H,{"current-page":a(t).page,"onUpdate:currentPage":e[0]||(e[0]=n=>a(t).page=n),"page-size":a(t).size,"onUpdate:pageSize":e[1]||(e[1]=n=>a(t).size=n),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(t).count,onSizeChange:a(x),onCurrentChange:a(w)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:o(()=>[r(L,{modelValue:a(s),"onUpdate:modelValue":e[3]||(e[3]=n=>W(s)?s.value=n:null),title:"\u5904\u7406\u8BE6\u60C5",width:"500px"},{footer:o(()=>[X("div",le,[r(F,{onClick:e[2]||(e[2]=n=>s.value=!1)},{default:o(()=>e[8]||(e[8]=[c("\u786E\u5B9A",-1)])),_:1,__:[8]})])]),_:1},8,["modelValue"])]),default:o(()=>[r(T,{columns:a(C),data:a(h),isFlex:!1,loading:a(D)},{tableHeader:o(()=>e[4]||(e[4]=[])),toolButton:o(()=>[r(F,{type:"primary",onClick:P},{default:o(()=>e[5]||(e[5]=[c(" \u65B0\u589E ",-1)])),_:1,__:[5]})]),operation:o(n=>[r(A,{type:"primary",onClick:R=>N(n.row)},{default:o(()=>e[6]||(e[6]=[c(" \u67E5\u770B ",-1)])),_:2,__:[6]},1032,["onClick"]),n.row.appealFeedbackStatus==="unsubmit"?(S(),B(A,{key:0,type:"primary",onClick:R=>O(n.row)},{default:o(()=>e[7]||(e[7]=[c("\u63D0\u4EA4",-1)])),_:2,__:[7]},1032,["onClick"])):Y("v-if",!0)]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const be=G(ne,[["__scopeId","data-v-3dde16a8"]]);export{be as default};
