var w=($,y,n)=>new Promise((g,_)=>{var t=l=>{try{v(n.next(l))}catch(d){_(d)}},h=l=>{try{v(n.throw(l))}catch(d){_(d)}},v=l=>l.done?g(l.value):Promise.resolve(l.value).then(t,h);v((n=n.apply($,y)).next())});import{_ as S}from"./index.vue_vue_type_style_index_0_lang-2d65f8f4.js";import{u as q}from"./useCurrentInstance-cd4729ef.js";import{d as B,A as M,u as F,r as D,a as J,j as p,o as e,h as f,w as a,b as m,e as o,k as u,t as r,i as k,c as i,F as b,v as T,f as V}from"./index-90c78f99.js";import{d as j,a as U}from"./index-89f21c96.js";import{_ as A}from"./index.vue_vue_type_style_index_0_lang-f807b015.js";import"./index.vue_vue_type_style_index_0_lang-3eaf88fd.js";import"./uploadAction-50b8a6f7.js";const G={class:"w-full pr-16 flex flex-col overflow-auto"},P={class:"page-content page-footer"},X={key:0,class:"break-all"},z={key:1,class:"break-all"},K={key:0,class:"inline-flex flex-col relative top-3"},Q={key:1},W=m("div",{class:"el-descriptions__title mt-16"},"反馈处理",-1),Y={class:"flex mt-16"},Z=m("div",{class:"w-[80px] text-14"},"处理结果：",-1),ee={class:"footer"},de=B({__name:"index",setup($){const{proxy:y}=q(),n=M(),g=F(),_=D(""),t=D({}),h=()=>w(this,null,function*(){t.value=(yield j(+n.query.id)).data}),v=()=>w(this,null,function*(){if(!_.value){y.$message.error("请填写处理结果");return}yield U({id:+n.query.id,feedbackResult:_.value}),y.$message.success("提交成功！"),g.go(-1)});return J(()=>{h()}),(l,d)=>{const O=p("page-title"),c=p("el-descriptions-item"),x=p("el-descriptions"),E=p("el-input"),H=p("el-card"),N=p("el-button"),I=p("views");return e(),f(I,null,{default:a(()=>[m("div",G,[o(S,{style:{margin:"0"}}),o(O),m("div",P,[o(H,{class:"my-card tab-card h-full",shadow:"never"},{default:a(()=>[o(x,{column:2,title:"反馈信息",class:"custom-desc-list"},{default:a(()=>[o(c,{label:"反馈类型:"},{default:a(()=>[u(r(t.value.type===1?"建议":t.value.type===2?"问题":"-"),1)]),_:1}),o(c,{label:"提交时间:"},{default:a(()=>[u(r(t.value.createOn||"-"),1)]),_:1}),l.$route.name==="feedbackHandleDetails"?(e(),f(c,{key:0,label:"用户姓名:"},{default:a(()=>[u(r(t.value.creator||"-"),1)]),_:1})):k("",!0),l.$route.name==="feedbackHandleDetails"?(e(),f(c,{key:1,label:"所在单位:"},{default:a(()=>[u(r(t.value.creatorOrg||"-"),1)]),_:1})):k("",!0),o(c,{label:"反馈内容:",span:2},{default:a(()=>[u(r(t.value.feedbackContent||"-"),1)]),_:1}),(e(!0),i(b,null,T(t.value.feedbackModelDetail&&JSON.parse(t.value.feedbackModelDetail),(s,L)=>(e(),f(c,{key:L,label:`${s.columnName}:`,span:2},{default:a(()=>[["TEXT","SINGLE"].includes(s.modelType)?(e(),i("span",X,r(s.value||"-"),1)):["MULTIPLE"].includes(s.modelType)?(e(),i("span",z,r(s.value.join("、")||"-"),1)):["FILE"].includes(s.modelType)?(e(),i(b,{key:2},[s.value&&JSON.parse(s.value).length?(e(),i("p",K,[(e(!0),i(b,null,T(JSON.parse(s.value),(C,R)=>(e(),f(A,{key:R,"file-name":C.fileName,"file-id":C.fileId},null,8,["file-name","file-id"]))),128))])):(e(),i("span",Q,"-"))],64)):k("",!0)]),_:2},1032,["label"]))),128))]),_:1}),V(n).query.status==="2"?(e(),f(x,{key:0,column:2,title:"反馈处理",class:"mt-16 custom-desc-list"},{default:a(()=>[o(c,{label:"处理结果:",span:2},{default:a(()=>[u(r(t.value.feedbackResult||"-"),1)]),_:1}),o(c,{label:"处理时间:"},{default:a(()=>[u(r(t.value.updateOn||"-"),1)]),_:1})]),_:1})):l.$route.name==="feedbackHandleDetails"?(e(),i(b,{key:1},[W,m("div",Y,[Z,o(E,{modelValue:_.value,"onUpdate:modelValue":d[0]||(d[0]=s=>_.value=s),placeholder:"请输入",type:"textarea",rows:3,maxlength:100,"show-word-limit":""},null,8,["modelValue"])])],64)):k("",!0)]),_:1}),m("div",ee,[o(N,{onClick:d[1]||(d[1]=s=>l.$router.go(-1))},{default:a(()=>[u("返 回")]),_:1}),l.$route.name==="feedbackHandleDetails"&&V(n).query.status==="1"?(e(),f(N,{key:0,type:"primary",onClick:v},{default:a(()=>[u(" 提 交 ")]),_:1})):k("",!0)])])])]),_:1})}}});export{de as default};
