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