Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2 řádky
3.0KB

  1. import{_ as c}from"./index-33a0e6e3.js";import{d as F}from"./securityPersonnelControl-9b4e1dfe.js";import{E as I,r as O,B as Q,b as w,c as l,L as R,h as m,e as u,f as r,d as p,F as y,H as b,t as _,i as D,u as j,k as q}from"./index-dd5fae99.js";const J=q({name:"detailDialog"}),G=Object.assign(J,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(v,{emit:N}){const{insuranceLevel:S}=I.dictStore.globalDicts||{},g=v,x=N,P=[{label:"序号",type:"index",width:"60"},{label:"项目安全负责人",key:"username",prop:"username"},{label:"联系方式",key:"contactInfo",prop:"contactInfo"},{label:"项目保险协议",key:"investigationReport",slot:"investigationReport"}],B=[{label:"序号",type:"index",width:"60"},{label:"厂商人员姓名",key:"username",prop:"username"},{label:"联系方式",key:"contactInfo",prop:"contactInfo"},{label:"保密协议",key:"safetyProtocol",slot:"safetyProtocol"}],C=[{label:"类型",key:"type",prop:"type"},{label:"系统获取级别",key:"level",slot:"level"}],o=O({});return Q(()=>g.visible,async k=>{var e,i,f,s;if(k){const n=await F(g.data.projectCode);o.value=n.data,o.value.grades=[{type:"等保级别",level:(i=(e=n.data)==null?void 0:e.equalProtection)==null?void 0:i.secrecyGrade},{type:"密码测评级别",level:(s=(f=n.data)==null?void 0:f.equalProtection)==null?void 0:s.passwordGrade}]}}),(k,e)=>{const i=w("table-list"),f=w("el-dialog");return l(),R(f,{"model-value":v.visible,title:"详情",width:"700px","destroy-on-close":"",onClose:e[0]||(e[0]=s=>x("close"))},{default:m(()=>{var s,n;return[e[1]||(e[1]=u("p",{class:"font-bold mb-8"},"安全人员信息",-1)),r(i,{pagination:!1,column:P,data:o.value.personSafetyInfo,"empty-temp":!1,class:"mb-24"},{investigationReport:m(({scope:a})=>[(l(!0),p(y,null,b(a.row.investigationReport&&JSON.parse(a.row.investigationReport),(t,d)=>(l(),p("p",{key:d,class:"mb-4"},[r(c,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128))]),_:1},8,["data"]),e[2]||(e[2]=u("p",{class:"font-bold mb-8"},"供应商安全资质",-1)),u("p",null,"供应商名称:"+_(((n=(s=o.value.supplierSafetyQualification)==null?void 0:s[0])==null?void 0:n.supplierName)||"-"),1),r(i,{pagination:!1,column:B,data:o.value.supplierSafetyQualification,"empty-temp":!1,class:"mb-24"},{safetyQualification:m(({scope:a})=>[(l(!0),p(y,null,b(a.row.safetyQualification&&JSON.parse(a.row.safetyQualification),(t,d)=>(l(),p("p",{key:d,class:"mb-4"},[r(c,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128))]),safetyProtocol:m(({scope:a})=>[(l(!0),p(y,null,b(a.row.safetyProtocol&&JSON.parse(a.row.safetyProtocol),(t,d)=>(l(),p("p",{key:d,class:"mb-4"},[r(c,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128))]),_:1},8,["data"]),e[3]||(e[3]=u("p",{class:"font-bold mb-8"},"等级详情",-1)),r(i,{pagination:!1,column:C,data:o.value.grades,"empty-temp":!1,class:"mb-24"},{level:m(({scope:a})=>[D(_(j(S)[a.row.level]),1)]),_:1},8,["data"])]}),_:1},8,["model-value"])}}});export{G as default};