Browse Source

添加农事 修改显示病虫害逻辑

master
邓宏 1 year ago
parent
commit
436d36092e
  1. 2
      pages/massif/add_farming.vue

2
pages/massif/add_farming.vue

@ -212,7 +212,7 @@
</view>
</view> -->
<u-form class="inline" errorType="toast" :model="formData" :rules="rules" ref="form" labelWidth="auto">
<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="()=>`${formData.pestsType||'病虫害'}名称`" type="navigate" :value="formData.pests" :btnFun="pestsFun"/>
</template>

Loading…
Cancel
Save