import{u as J}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{b as U,g as M,u as q,a as K,_ as j}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{r,y as x,m as G,al as s,z as A,I as B,J as l,R as p,u as a,k as Q,B as W,O as f,M as I}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{b as X,d as Y}from"./contestAppealApi-946ca67c-1782572373740v=1.0.0.js";import ee from"./Dataview-bd21b036-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";const ae=()=>{const k=U();r([]),(async()=>{})(),r([]),(async()=>{})();const u=r([]);(async()=>{const n=await M({page:1,size:9999,dictTypeSign:"appeal_type"});n.code===0&&(u.value=n.data.listData.map(t=>({label:t.name,value:t.dictId})))})();const g=r([{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:k.getEnumListByKey("appealFeedbackStatus"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u7533\u8BC9\u72B6\u6001"}},{prop:"keyword",label:"\u7533\u8BC9\u4FE1\u606F",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u7533\u8BC9\u4EBA\u3001\u7533\u8BC9\u7F16\u53F7\u67E5\u8BE2"}},{prop:"dictId",label:"\u7533\u8BC9\u7C7B\u578B",isFilterEnum:!0,enum:u,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u7533\u8BC9\u7C7B\u578B"}}]),b=r([{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:"\u72B6\u6001",prop:"appealFeedbackStatusCn"},{label:"\u5904\u7406\u4EBA",prop:"handlerName"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:g,tableColumns:b,dataCallBack:n=>(n.listData.forEach(t=>{var m,_;((m=t.evidence)==null?void 0:m.length)>0?t.evidence=JSON.parse(t.evidence||"[]"):t.evidence=[],((_=t.replyAttachments)==null?void 0:_.length)>0?t.replyAttachments=JSON.parse(t.replyAttachments||"[]"):t.replyAttachments=[]}),n),paramCallBack:n=>n}},te=ae,le={class:"dialog-footer"},oe=x({name:"contestAppealIndex"}),ne=x({...oe,setup(k){const C=q();K();const i=r(!1),{tableColumns:u,columns:y,dataCallBack:g,paramCallBack:b}=te(),{tableData:h,pageable:c,baseParam:n,searchParam:t,totalParam:m,pageParam:_,handleSizeChange:w,handleCurrentChange:z,getTableList:N,search:P,reset:O,loading:D}=J(X,g,b),v=r({}),E=async()=>{const d=await Y(m.value);d.code===0&&(v.value=d.data)};G(async()=>{n.value={isSubmit:1,appealFeedbackType:"appeal"},N(),E()});const S=(d,e="")=>{C.push({name:"appealDetail",query:{id:d.appealFeedbackId,processing:e,type:"appeal"}})};return(d,e)=>{const V=s("HZSearchForm"),F=s("el-link"),T=s("HZProTable"),H=s("el-pagination"),L=s("el-button"),Z=s("el-dialog"),R=s("HZPageLayout");return A(),B(R,{isCard:!1},{searchForm:l(()=>[p(V,{"search-param":a(t),columns:a(y),search:a(P),reset:a(O)},null,8,["search-param","columns","search","reset"])]),handle:l(()=>[p(ee,{data:a(v)},null,8,["data"])]),pagination:l(()=>[p(H,{"current-page":a(c).page,"onUpdate:currentPage":e[0]||(e[0]=o=>a(c).page=o),"page-size":a(c).size,"onUpdate:pageSize":e[1]||(e[1]=o=>a(c).size=o),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(c).count,onSizeChange:a(w),onCurrentChange:a(z)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:l(()=>[p(Z,{modelValue:a(i),"onUpdate:modelValue":e[3]||(e[3]=o=>Q(i)?i.value=o:null),title:"\u5904\u7406\u8BE6\u60C5",width:"500px"},{footer:l(()=>[W("div",le,[p(L,{onClick:e[2]||(e[2]=o=>i.value=!1)},{default:l(()=>e[7]||(e[7]=[f("\u786E\u5B9A",-1)])),_:1,__:[7]})])]),_:1},8,["modelValue"])]),default:l(()=>[p(T,{columns:a(u),data:a(h),isFlex:!1,loading:a(D)},{tableHeader:l(()=>e[4]||(e[4]=[])),toolButton:l(()=>[I(' <el-button type="primary" @click="handleAdd"> \u65B0\u589E </el-button> ')]),operation:l(o=>[p(F,{type:"primary",onClick:$=>S(o.row)},{default:l(()=>e[5]||(e[5]=[f(" \u67E5\u770B ",-1)])),_:2,__:[5]},1032,["onClick"]),o.row.appealFeedbackStatus!=="processed"?(A(),B(F,{key:0,type:"primary",onClick:$=>S(o.row,"process")},{default:l(()=>e[6]||(e[6]=[f("\u5904\u7406",-1)])),_:2,__:[6]},1032,["onClick"])):I("v-if",!0)]),_:1},8,["columns","data","loading"])]),_:1})}}});const me=j(ne,[["__scopeId","data-v-638629b2"]]);export{me as default};
