var q=Object.defineProperty,z=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var V=(n,e,a)=>e in n?q(n,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[e]=a,w=(n,e)=>{for(var a in e||(e={}))G.call(e,a)&&V(n,a,e[a]);if(N)for(var a of N(e))M.call(e,a)&&V(n,a,e[a]);return n},g=(n,e)=>z(n,F(e));var C=(n,e,a)=>new Promise((m,p)=>{var i=u=>{try{_(a.next(u))}catch(o){p(o)}},c=u=>{try{_(a.throw(u))}catch(o){p(o)}},_=u=>u.done?m(u.value):Promise.resolve(u.value).then(i,c);_((a=a.apply(n,e)).next())});import{m as S}from"./index-89f21c96.js";import{_ as A}from"./index.vue_vue_type_style_index_0_lang-2d65f8f4.js";import{d as E,r as k,a as H,j as s,o as I,h as J,w as l,b as x,e as t,k as $,P as T}from"./index-90c78f99.js";const K={class:"review-support page-content w-full mr-16"},P=["onClick"],ee=E({__name:"index",setup(n){const e=k({feedbackNo:void 0,type:void 0,status:void 0}),a=[{type:"index",label:"序号",width:80},{label:"反馈记录编号",prop:"feedbackNo",key:"feedbackNo",width:150},{label:"反馈类型",prop:"type",key:"type",width:100,render:o=>T("span",`${o.type===1?"建议":"问题"}`)},{label:"反馈内容",prop:"feedbackContent",key:"feedbackContent",minwidth:"150",showOverflowTooltip:!0},{label:"提交时间",prop:"createOn",key:"createOn",width:180},{label:"反馈进度",prop:"status",key:"status",render:o=>T("span",`${o.status===1?"待处理":"已处理"}`),width:120},{label:"操作",slot:"action",key:"action",width:120,fixed:"right"}],m=k(),p=k(),i=k(),c=o=>C(this,null,function*(){o=o||{pageNumber:1,pageSize:10};const d=yield S(w(g(w({},e.value),{timeRang:void 0}),o));m.value=d.data&&d.data.records||[],p.value=d.data&&d.data.total||0}),_=()=>{i.value.pageNumber=1,c()},u=()=>{i.value.pageNumber=1,e.value={feedbackNo:void 0,type:void 0,status:void 0},c()};return H(()=>{c()}),(o,d)=>{const B=s("page-title"),D=s("el-input"),f=s("el-form-item"),b=s("el-col"),v=s("el-option"),y=s("el-select"),h=s("el-button"),O=s("el-row"),R=s("el-form"),U=s("table-list"),L=s("el-card"),j=s("views");return I(),J(j,null,{default:l(()=>[x("div",K,[t(A,{style:{margin:"0"}}),t(B),t(R,{class:"search mb-16",model:e.value,"label-suffix":":"},{default:l(()=>[t(O,{gutter:16},{default:l(()=>[t(b,{span:6},{default:l(()=>[t(f,null,{default:l(()=>[t(D,{modelValue:e.value.feedbackNo,"onUpdate:modelValue":d[0]||(d[0]=r=>e.value.feedbackNo=r),placeholder:"反馈编号"},null,8,["modelValue"])]),_:1})]),_:1}),t(b,{span:6},{default:l(()=>[t(f,null,{default:l(()=>[t(y,{modelValue:e.value.type,"onUpdate:modelValue":d[1]||(d[1]=r=>e.value.type=r),clearable:"",placeholder:"反馈类型",class:"w-full"},{default:l(()=>[t(v,{label:"建议",value:1}),t(v,{label:"问题",value:2})]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(b,{span:6},{default:l(()=>[t(f,null,{default:l(()=>[t(y,{modelValue:e.value.status,"onUpdate:modelValue":d[2]||(d[2]=r=>e.value.status=r),clearable:"",placeholder:"反馈进度",class:"w-full"},{default:l(()=>[t(v,{label:"待处理",value:1}),t(v,{label:"已处理",value:2})]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(b,{span:6},{default:l(()=>[t(f,{class:"search_btn"},{default:l(()=>[t(h,{type:"primary",onClick:_},{default:l(()=>[$("搜索")]),_:1}),t(h,{onClick:u},{default:l(()=>[$("重置")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(L,{class:"my-card",shadow:"never",header:"反馈列表"},{default:l(()=>[t(U,{ref_key:"tableListRef",ref:i,column:a,data:m.value,total:p.value,onGetTableData:c},{action:l(({scope:r})=>[x("a",{class:"btn text-primary",onClick:Q=>o.$router.push({name:"feedbackDetails",query:{id:r.row.id,status:r.row.status}})}," 详情 ",8,P)]),_:1},8,["data","total"])]),_:1})])]),_:1})}}});export{ee as default};
