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

equipmentInfo.8739638c.js 3.5KB

2ヶ月前
1
  1. import{h as f,a as _,f as m}from"./uploadAction.69ee4a64.js";import{d as U,z as k,v as w,f as s,g as b,c as x,e as o,w as l,x as t,F,s as z,b as g}from"./index.551f5afa.js";const K={class:"equipmentInfo"},M=g("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),B=g("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),C=g("div",{class:"el-upload__tip"},"\u652F\u6301.png,.jpg,.gif\u683C\u5F0F",-1),q=U({name:"equipmentInfo"}),N=Object.assign(q,{props:{formData:{type:Object,default:()=>{}}},emits:["updata:formData"],setup(v,{emit:y}){const V=v,p=k.dictStore.uploadUrl,a=w({get(){return V.formData},set(h){y("updata:formData",h)}});return(h,i)=>{const d=s("Plus"),u=s("el-icon"),c=s("el-upload"),n=s("el-form-item"),r=s("el-col"),P=s("el-row"),D=s("el-date-picker"),j=s("el-option"),Y=s("el-select");return b(),x("div",K,[o(P,{gutter:30},{default:l(()=>[o(r,{span:8},{default:l(()=>[o(n,{label:"\u4E09\u811A\u67B6\u7167\u7247",prop:"tripodPhoto"},{default:l(()=>[o(c,{"file-list":t(a).tripodPhoto,"onUpdate:file-list":i[0]||(i[0]=e=>t(a).tripodPhoto=e),class:"picture-card",action:t(p),"list-type":"picture-card",limit:10,"on-success":e=>t(f)(e,t(a).tripodPhoto),"on-error":t(_),"before-upload":e=>t(m)(e,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[M]),default:l(()=>[o(u,{class:"avatar-uploader-icon"},{default:l(()=>[o(d)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1}),o(r,{span:8},{default:l(()=>[o(n,{label:"\u533B\u7597\u5305\u7167\u7247",prop:"medicalKitPhoto"},{default:l(()=>[o(c,{"file-list":t(a).medicalKitPhoto,"onUpdate:file-list":i[1]||(i[1]=e=>t(a).medicalKitPhoto=e),class:"picture-card",action:t(p),"list-type":"picture-card",limit:10,"on-success":e=>t(f)(e,t(a).medicalKitPhoto),"on-error":t(_),"before-upload":e=>t(m)(e,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[B]),default:l(()=>[o(u,{class:"avatar-uploader-icon"},{default:l(()=>[o(d)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1})]),_:1}),o(P,{gutter:30},{default:l(()=>[o(r,{span:8},{default:l(()=>[o(n,{label:"\u706D\u706B\u5668\u7167\u7247",prop:"extinguisherPhoto"},{default:l(()=>[o(c,{"file-list":t(a).extinguisherPhoto,"onUpdate:file-list":i[2]||(i[2]=e=>t(a).extinguisherPhoto=e),class:"picture-card",action:t(p),"list-type":"picture-card",limit:10,"on-success":e=>t(f)(e,t(a).extinguisherPhoto),"on-error":t(_),"before-upload":e=>t(m)(e,{types:["image/jpeg","image/png","image/gif"],size:5120})},{tip:l(()=>[C]),default:l(()=>[o(u,{class:"avatar-uploader-icon"},{default:l(()=>[o(d)]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})]),_:1}),o(r,{span:8},{default:l(()=>[o(n,{label:"\u706D\u706B\u5668\u751F\u4EA7\u65E5\u671F",prop:"extinguisherProdDate"},{default:l(()=>[o(D,{modelValue:t(a).extinguisherProdDate,"onUpdate:modelValue":i[3]||(i[3]=e=>t(a).extinguisherProdDate=e),type:"date",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1})]),_:1}),o(r,{span:8},{default:l(()=>[o(n,{label:"\u6709\u6548\u671F\u9650",prop:"extinguisherValidity"},{default:l(()=>[o(Y,{modelValue:t(a).extinguisherValidity,"onUpdate:modelValue":i[4]||(i[4]=e=>t(a).extinguisherValidity=e),placeholder:"\u8BF7\u9009\u62E9\u6709\u6548\u671F\u9650",class:"w-full"},{default:l(()=>[(b(),x(F,null,z(6,e=>o(j,{key:e,label:`${e}\u5E74`,value:e},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})])}}});export{N as default};