You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

equipmentInfo.cf43ddf6.js 2.7KB

3 months ago
1
  1. import{d as k,f as r,g as a,c as l,e,w as t,F as g,s as D,p as x,b as p,h as P,t as y,x as w,N as b}from"./index.6d448f34.js";const B={class:"equipmentInfo"},V={key:0,class:"mt-8"},N={class:"image-slot"},Y={key:1},j={key:0,class:"mt-8"},C={class:"image-slot"},K={key:1},q={key:0,class:"mt-8"},F={class:"image-slot"},I={key:1},M={key:0},O={key:1},E=k({name:"equipmentInfo"}),z=Object.assign(E,{props:{detailData:{type:Object,default:()=>{}}},setup(i){return(L,S)=>{const m=r("Picture"),h=r("el-icon"),f=r("el-image"),c=r("el-form-item"),d=r("el-col"),v=r("el-row");return a(),l("div",B,[e(v,{gutter:30},{default:t(()=>[e(d,{span:8},{default:t(()=>[e(c,{label:"\u4E09\u811A\u67B6\u7167\u7247"},{default:t(()=>{var s,o;return[(o=(s=i.detailData)==null?void 0:s.tripodPhoto)!=null&&o.length?(a(),l("div",V,[(a(!0),l(g,null,D(i.detailData.tripodPhoto,(u,n)=>(a(),x(f,{key:n,class:"imgBox mr-8",src:u.url,"initial-index":n,"preview-src-list":i.detailData.tripodPhoto.map(_=>_.url),fit:"cover"},{error:t(()=>[p("div",N,[e(h,null,{default:t(()=>[e(m)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(a(),l("span",Y,"-"))]}),_:1})]),_:1}),e(d,{span:8},{default:t(()=>[e(c,{label:"\u533B\u7597\u5305\u7167\u7247"},{default:t(()=>{var s,o;return[(o=(s=i.detailData)==null?void 0:s.medicalKitPhoto)!=null&&o.length?(a(),l("div",j,[(a(!0),l(g,null,D(i.detailData.medicalKitPhoto,(u,n)=>(a(),x(f,{key:n,class:"imgBox mr-8",src:u.url,"initial-index":n,"preview-src-list":i.detailData.medicalKitPhoto.map(_=>_.url),fit:"cover"},{error:t(()=>[p("div",C,[e(h,null,{default:t(()=>[e(m)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(a(),l("span",K,"-"))]}),_:1})]),_:1})]),_:1}),e(v,{gutter:30},{default:t(()=>[e(d,{span:8},{default:t(()=>[e(c,{label:"\u706D\u706B\u5668\u7167\u7247"},{default:t(()=>{var s,o;return[(o=(s=i.detailData)==null?void 0:s.extinguisherPhoto)!=null&&o.length?(a(),l("div",q,[(a(!0),l(g,null,D(i.detailData.extinguisherPhoto,(u,n)=>(a(),x(f,{key:n,class:"imgBox mr-8",src:u.url,"initial-index":n,"preview-src-list":i.detailData.extinguisherPhoto.map(_=>_.url),fit:"cover"},{error:t(()=>[p("div",F,[e(h,null,{default:t(()=>[e(m)]),_:1})])]),_:2},1032,["src","initial-index","preview-src-list"]))),128))])):(a(),l("span",I,"-"))]}),_:1})]),_:1}),e(d,{span:8},{default:t(()=>[e(c,{label:"\u706D\u706B\u5668\u751F\u4EA7\u65E5\u671F"},{default:t(()=>[P(y(i.detailData.extinguisherProdDate?w(b)(i.detailData.extinguisherProdDate).format("YYYY-MM-DD"):"-"),1)]),_:1})]),_:1}),e(d,{span:8},{default:t(()=>[e(c,{label:"\u6709\u6548\u671F\u9650"},{default:t(()=>[i.detailData.extinguisherValidity?(a(),l("span",M,y(i.detailData.extinguisherValidity)+"\u5E74",1)):(a(),l("span",O,"-"))]),_:1})]),_:1})]),_:1})])}}});export{z as default};