選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

2 行
2.3KB

  1. import{r as N}from"./inquirySheetManage.c5dab786.js";import{d as C,B as F,r as O,J as h,c as b,e as k,G as L,i as c,h as x,g as B,f as R,k as T,Z as f,A as U}from"./index.766d5891.js";const $=["onClick"],D=["onClick"],I=C({name:"recordListDialg"}),V=Object.assign(I,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(i,{emit:_}){const{projectTypeOptions:g}=F.dictStore.globalDicts||{},l=i,j=_,v=[{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName"},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName"},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectType",prop:"projectType",render:e=>f("span",g[e.projectType]||"-")},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear"},{label:"\u54A8\u8BE2\u5355\u72B6\u6001",key:"status",prop:"status",render:e=>f("span",{class:[1,2,3].includes(e.status)?"text-warning":e.status===4?"text-success":"text-danger"},e.statusName)},{label:"\u5BA1\u6838\u65F6\u95F4",key:"createOn",prop:"createOn"},{label:"\u54A8\u8BE2\u5355",key:"consultationForm",slot:"consultationForm"},{label:"\u56DE\u590D\u5355",key:"replyForm",slot:"replyForm"}],d=O(),w=async()=>{const e=await N(l.data.id);d.value=e.data},p=async e=>{var s,m,u,y;const o=e&&((m=(s=JSON.parse(e))==null?void 0:s[0])==null?void 0:m.id),r=e&&((y=(u=JSON.parse(e))==null?void 0:u[0])==null?void 0:y.originalFileName),n=await U({fileId:o}),a=URL.createObjectURL(n),t=document.createElement("a");t.style.display="none",t.href=a,t.download=r,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a)};return h(()=>l.visible,async e=>{e&&w()}),(e,o)=>{var a;const r=b("table-list"),n=b("el-dialog");return k(),L(n,{"model-value":i.visible,title:`${(a=l.data)==null?void 0:a.projectName}-\u54A8\u8BE2\u5355\u3001\u56DE\u590D\u5355\u5217\u8868`,width:"70%","destroy-on-close":"",onClose:o[0]||(o[0]=t=>j("close"))},{default:c(()=>[x(r,{ref:"tableListRef",column:v,data:d.value,pagination:!1},{consultationForm:c(({scope:t})=>[B("a",{onClick:s=>p(t.row.consultationForm)},"\u4E0B\u8F7D",8,$)]),replyForm:c(({scope:t})=>[t.row.replyForm?(k(),R("a",{key:0,onClick:s=>p(t.row.replyForm)},"\u4E0B\u8F7D",8,D)):T("",!0)]),_:1},8,["data"])]),_:1},8,["model-value","title"])}}});export{V as default};