var k=(e,o,n)=>new Promise((l,u)=>{var i=a=>{try{r(n.next(a))}catch(p){u(p)}},c=a=>{try{r(n.throw(a))}catch(p){u(p)}},r=a=>a.done?l(a.value):Promise.resolve(a.value).then(i,c);r((n=n.apply(e,o)).next())});import{_ as v,a0 as F,c as f,w as s,a1 as h,j as C,C as S,D as w,E as T,o as d,k as t,p as m,t as _,q as M,b as D,h as V,u as B,a9 as E,f as P,L as j,i as g,M as z,N as A,a6 as U,a7 as q,a8 as O}from"./index-CZJgrp0v.js";import{_ as y}from"./FlatTab.DTGSghS1.js";import{_ as G}from"./uv-input.Ch8KxUbS.js";import{l as H}from"./listMixins.CccSbMD4.js";import{g as J}from"./feedback.CFWT5F4c.js";const K={name:"FeedbackItem",props:{item:{type:Object,default:()=>({title:"",content:"我的成绩与预期不符，怀疑统计有误。我的成绩与预期...",status:1,number:"139860127381926316378",time:"2025.12.12"})}},computed:{statusClass(){return{0:"pending",1:"processing",2:"completed"}[this.item.status]||"pending"},statusText(){return{0:"待处理",1:"处理中",2:"已处理"}[this.item.status]||"待处理"}},methods:{handleClick(){F({url:"/pages/myModulePart/feedback/detail?id="+this.item.appealFeedbackId})}}};function Q(e,o,n,l,u,i){const c=C,r=S(T("uv-icon"),w),a=M;return d(),f(c,{class:h(["feedback-item-container",n.item.appealFeedbackStatus]),onClick:i.handleClick},{default:s(()=>[t(c,{class:"feedback-header"},{default:s(()=>[t(c,{class:"title"},{default:s(()=>[m(_(n.item.eventName),1)]),_:1})]),_:1}),t(c,{class:h(["status-tag"])},{default:s(()=>[m(_(n.item.appealFeedbackStatusCn),1)]),_:1}),t(c,{class:"feedback-content"},{default:s(()=>[t(c,{class:"content-wrapper"},{default:s(()=>[t(r,{name:"file-text",class:"content-icon",color:"#adafb1"}),t(a,{class:"content-text uv-line-1"},{default:s(()=>[m(_(n.item.content),1)]),_:1})]),_:1}),t(c,{class:"content-wrapper"},{default:s(()=>[t(r,{name:"clock",class:"content-icon",color:"#adafb1"}),t(a,{class:"content-text"},{default:s(()=>[m(_(n.item.createTime),1)]),_:1})]),_:1})]),_:1}),t(c,{class:"feedback-number"},{default:s(()=>[t(a,null,{default:s(()=>[m("反馈编号：")]),_:1}),t(a,null,{default:s(()=>[m(_(n.item.appealFeedbackId),1)]),_:1})]),_:1})]),_:1},8,["class","onClick"])}const R=v(K,[["render",Q],["__scopeId","data-v-83649e73"]]),W={name:"FeedbackList",mixins:[H],components:{FlatTab:y,FeedbackItem:R},props:{embedd:{type:Boolean,default:!1}},data(){return{scrollTop:0,eventName:"",appealFeedbackStatus:"",commonStore:E(),userStore:B()}},computed:{tabList(){var o,n;const e=((n=(o=this.commonStore.enumMap.appealFeedbackStatus)==null?void 0:o.filter(l=>l.label!=="未提交"&&l.label!=="新增全部"))==null?void 0:n.map(l=>({name:l.label,value:l.value})))||[];return e.unshift({name:"全部",value:""}),e}},mounted(){this.getList()},onPageScroll(e){this.scrollTop=e.scrollTop},methods:{clearSearch(){this.eventName="",this.resetData()},clickTab(e){this.appealFeedbackStatus=e.value,this.resetData()},goAddFeedback(){F({url:"/pages/feedback/index"})},getList(e=!1){return k(this,null,function*(){D({title:"加载中"});try{const o=yield J({size:5,page:this.page,appealFeedbackStatus:this.appealFeedbackStatus,isSubmit:1,creatorId:this.userStore.userInfo.tsId,eventName:this.eventName});this.getListExtend(o,e)}catch(o){console.error(o)}finally{V()}})}}};function X(e,o,n,l,u,i){const c=y,r=S(T("uv-input"),G),a=C,p=P("FeedbackItem"),L=U,x=q,I=O;return d(),f(a,{class:"page-common-container page-main-container"},{default:s(()=>[t(c,{tabList:i.tabList,onClickTab:i.clickTab},null,8,["tabList","onClickTab"]),t(a,{class:"top-search-bar"},{default:s(()=>[t(r,{modelValue:u.eventName,"onUpdate:modelValue":o[0]||(o[0]=b=>u.eventName=b),placeholder:"请输入赛事名称搜索",clearable:"",onConfirm:e.resetData,onSearch:e.resetData,onClear:i.clearSearch,shape:"circle","suffix-icon":"search"},null,8,["modelValue","onConfirm","onSearch","onClear"])]),_:1}),t(a,{class:"feedback-fab",onClick:i.goAddFeedback},{default:s(()=>[m("+")]),_:1},8,["onClick"]),t(a,{class:"list-container"},{default:s(()=>[(d(!0),j(z,null,A(e.list,(b,N)=>(d(),f(a,{key:N,class:"pt-32rpx"},{default:s(()=>[t(p,{item:b},null,8,["item"])]),_:2},1024))),128)),e.showEmpty?(d(),f(L,{key:0,marginTop:45})):g("",!0),e.showLoadMore?(d(),f(x,{key:1,status:e.loadStatus},null,8,["status"])):g("",!0),t(I,{"scroll-top":u.scrollTop},null,8,["scroll-top"])]),_:1})]),_:1})}const se=v(W,[["render",X],["__scopeId","data-v-eb2988f6"]]);export{se as F};
