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