/* empty css             *//* empty css              *//* empty css               *//* empty css               *//* empty css               *//* empty css              */import{d as B}from"./advice-feedback.82b87890.js";import{d as N,r as D,l as I,C as F,a3 as E,U as M,W as T,c as f,e as u,w as a,g as m,K as k,b as n,u as L,o,t as c,F as y,v as w,Q as O,a4 as S}from"./index.db1e0641.js";import{d as V}from"./uploadAction.98a2f3db.js";const $={class:"advice-feedback-fetail"},J={style:{display:"flex","flex-wrap":"wrap"}};const P={style:{padding:"20px"}},U=N({name:"adviceFeedbackDetail"}),Y=Object.assign(U,{setup(q){const l=D({}),g=L(),b=async()=>{var _,e;const s=await B(g.query.id);l.value={...s.data,feedbackModelDetail:((_=s.data)==null?void 0:_.feedbackModelDetail)&&JSON.parse(s.data.feedbackModelDetail)},(e=l.value.feedbackModelDetail)!=null&&e.length&&l.value.feedbackModelDetail.forEach(async d=>{var p,v;d.modelType==="FILE"&&(d.value=(p=JSON.parse(d.value))!=null&&p.length?await Promise.all((v=JSON.parse(d.value))==null?void 0:v.map(async i=>({...i,url:await V(i.fileId)}))):[])})},x=s=>{S({images:[s],showIndex:!1})};return I(()=>{g.query.id&&b()}),(s,_)=>{const e=F,d=E,p=M,v=T;return o(),f("div",$,[u(p,{title:"\u53CD\u9988\u4FE1\u606F"},{default:a(()=>{var i;return[u(e,{title:"\u53CD\u9988\u7C7B\u578B"},{default:a(()=>[n("span",null,c(l.value.type===1?"\u5EFA\u8BAE":"\u95EE\u9898"),1)]),_:1}),u(e,{title:"\u53CD\u9988\u5185\u5BB9"},{default:a(()=>[n("span",null,c(l.value.feedbackContent),1)]),_:1}),(o(!0),f(y,null,w((i=l.value)==null?void 0:i.feedbackModelDetail,(t,h)=>(o(),f(y,{key:h},[["SINGLE","TEXT"].includes(t.modelType)?(o(),m(e,{key:0,title:t.columnName},{default:a(()=>[n("span",null,c(t.value||"-"),1)]),_:2},1032,["title"])):["MULTIPLE"].includes(t.modelType)?(o(),m(e,{key:1,title:t.columnName},{default:a(()=>{var r;return[n("span",null,c(((r=t.value)==null?void 0:r.join("\u3001"))||"-"),1)]}),_:2},1032,["title"])):["FILE"].includes(t.modelType)?(o(),m(e,{key:2,title:t.columnName,"value-class":"custom-cell-value"},{default:a(()=>[n("div",J,[(o(!0),f(y,null,w(t.value,(r,C)=>(o(),m(d,{key:C,width:"100",height:"100",src:r.url,onClick:G=>x(r.url)},null,8,["src","onClick"]))),128))])]),_:2},1032,["title"])):k("",!0)],64))),128)),k("",!0),u(e,{title:"\u53CD\u9988\u65F6\u95F4"},{default:a(()=>[n("span",null,c(l.value.createOn),1)]),_:1})]}),_:1}),l.value.status===2?(o(),m(p,{key:0,title:"\u53CD\u9988\u7ED3\u679C"},{default:a(()=>[u(e,{title:"\u5904\u7406\u7ED3\u679C"},{default:a(()=>[n("span",null,c(l.value.feedbackResult),1)]),_:1}),u(e,{title:"\u5904\u7406\u65F6\u95F4"},{default:a(()=>[n("span",null,c(l.value.updateOn),1)]),_:1})]),_:1})):k("",!0),n("div",P,[u(v,{block:"",size:"normal",round:"",onClick:_[0]||(_[0]=i=>s.$router.go(-1))},{default:a(()=>[O(" \u5173\u95ED ")]),_:1})])])}}});export{Y as default};
