|
@@ -37,7 +37,13 @@
|
|
|
</v-select>
|
|
|
</a-form-model-item>
|
|
|
<!-- 箱体限投 -->
|
|
|
- <a-row type="flex" align="middle" v-for="(item, index) in formData.deviceTypeBoxList" :key="index">
|
|
|
+ <a-row
|
|
|
+ type="flex"
|
|
|
+ align="middle"
|
|
|
+ v-for="(item, index) in formData.deviceTypeBoxList"
|
|
|
+ :key="index"
|
|
|
+ v-if="formData.deviceTypeBoxList.length"
|
|
|
+ >
|
|
|
<a-col span="12">
|
|
|
<!-- 投放开始时间 -->
|
|
|
<a-form-model-item
|
|
@@ -146,12 +152,14 @@ export default {
|
|
|
// 内置箱体选择修改
|
|
|
handleNumChange (v) {
|
|
|
console.log(v, 'vvvvvvvvvv')
|
|
|
+ this.formData.deviceTypeBoxList = []
|
|
|
for (let i = 0; i < v; i++) {
|
|
|
this.formData.deviceTypeBoxList.push({
|
|
|
maxWeight: '',
|
|
|
rubbishType: ''
|
|
|
})
|
|
|
}
|
|
|
+ this.$refs.ruleForm.clearValidate()
|
|
|
},
|
|
|
// 查详情
|
|
|
getDetailData (id) {
|
|
@@ -201,7 +209,7 @@ export default {
|
|
|
this.$emit('close')
|
|
|
},
|
|
|
clear () {
|
|
|
- this.$refs.ruleForm.resetFields()
|
|
|
+ this.$refs.ruleForm.clearValidate()
|
|
|
this.formData.name = ''
|
|
|
this.formData.boxNum = ''
|
|
|
this.formData.deviceTypeBoxList = []
|