Browse Source

添加农事 修改表单

master
邓宏 1 year ago
parent
commit
469052d3a4
  1. 2
      pages/massif/add_farming.vue

2
pages/massif/add_farming.vue

@ -215,7 +215,7 @@
<template v-if="/^用药$/.test(formData.farmingType)"> <template v-if="/^用药$/.test(formData.farmingType)">
<d-form label="防治对象" type="select" :value="[formData.pestsType]" @select="formData.pestsType=$event.slice(-1)[0].value" :columns="[[{label:'病害',value:'病害'},{label:'虫害',value:'虫害'}]]"/> <d-form label="防治对象" type="select" :value="[formData.pestsType]" @select="formData.pestsType=$event.slice(-1)[0].value" :columns="[[{label:'病害',value:'病害'},{label:'虫害',value:'虫害'}]]"/>
<d-form :label="()=>`${formData.pestsType||'病虫害'}名称`" type="navigate" :value="formData.pests" :btnFun="pestsFun"/> <d-form :label="()=>`${formData.pestsType||'病虫害'}名称`" type="navigate" :value="formData.pests" :btnFun="pestsFun"/>
<d-form label="作用面积" type="digit" v-model="formData.roleArea"/> <d-form label="作用面积" type="digit" v-model="formData.roleArea" suffix="亩"/>
</template> </template>
<d-form <d-form
v-for="(v,k) in fields" v-for="(v,k) in fields"

Loading…
Cancel
Save