|
- import{r as p,b as i,c as S,L as v,h as r,f as e,k as c}from"./index-dd5fae99.js";const b=c({name:"safetyInput"}),w=Object.assign(b,{setup(V,{expose:m}){const n=p({}),d=p(),s={engineeringSpeedOne:[{required:!0,message:"请填写第一季度进度",trigger:"blur"}],engineeringSpeedTwo:[{required:!0,message:"请填写第二季度进度",trigger:"blur"}],engineeringSpeedThree:[{required:!0,message:"请填写第三季度进度",trigger:"blur"}],engineeringSpeedFour:[{required:!0,message:"请填写第四季度进度",trigger:"blur"}]};return m({validForm:o=>{d.value.validate(l=>{o(l)})},formData:n,setFormData:o=>{n.value={engineeringSpeedOne:o.engineeringSpeedOne,engineeringSpeedTwo:o.engineeringSpeedTwo,engineeringSpeedThree:o.engineeringSpeedThree,engineeringSpeedFour:o.engineeringSpeedFour}}}),(o,l)=>{const t=i("el-input"),g=i("el-form-item"),u=i("el-col"),_=i("el-row"),f=i("el-form");return S(),v(f,{ref_key:"formRef",ref:d,model:n.value,rules:s,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:r(()=>[e(_,{gutter:40},{default:r(()=>[e(u,{span:12},{default:r(()=>[e(g,{label:"第一季度",prop:"engineeringSpeedOne"},{default:r(()=>[e(t,{modelValue:n.value.engineeringSpeedOne,"onUpdate:modelValue":l[0]||(l[0]=a=>n.value.engineeringSpeedOne=a),maxlength:"50",placeholder:"请填写"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12},{default:r(()=>[e(g,{label:"第二季度",prop:"engineeringSpeedTwo"},{default:r(()=>[e(t,{modelValue:n.value.engineeringSpeedTwo,"onUpdate:modelValue":l[1]||(l[1]=a=>n.value.engineeringSpeedTwo=a),maxlength:"50",placeholder:"请填写"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12},{default:r(()=>[e(g,{label:"第三季度",prop:"engineeringSpeedThree"},{default:r(()=>[e(t,{modelValue:n.value.engineeringSpeedThree,"onUpdate:modelValue":l[2]||(l[2]=a=>n.value.engineeringSpeedThree=a),maxlength:"50",placeholder:"请填写"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:12},{default:r(()=>[e(g,{label:"第四季度",prop:"engineeringSpeedFour"},{default:r(()=>[e(t,{modelValue:n.value.engineeringSpeedFour,"onUpdate:modelValue":l[3]||(l[3]=a=>n.value.engineeringSpeedFour=a),maxlength:"50",placeholder:"请填写"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}});export{w as default};
|