Commit 5bace584 by cwq0219

提交

1 parent d9d2226c
...@@ -165,12 +165,12 @@ export default { ...@@ -165,12 +165,12 @@ export default {
} }
} }
} }
!targetVal && (this.searchForm.orderStatuses = isAdd ? this.searchFormData[1].optionList.map(item => item.confId) : []) !targetVal && (this.searchForm.orderStatuses = isAdd ? this.searchFormData1[1].optionList.map(item => item.confId) : [])
if (targetVal) { if (targetVal) {
var idx = value.findIndex(item => item == '') var idx = value.findIndex(item => item == '')
if (idx != -1 && this.searchForm.orderStatuses.length < this.searchFormData[1].optionList.length) { if (idx != -1 && this.searchForm.orderStatuses.length < this.searchFormData1[1].optionList.length) {
this.searchForm.orderStatuses.splice(idx, 1) this.searchForm.orderStatuses.splice(idx, 1)
} else if (idx == -1 && this.searchForm.orderStatuses.length == this.searchFormData[1].optionList.length - 1) { } else if (idx == -1 && this.searchForm.orderStatuses.length == this.searchFormData1[1].optionList.length - 1) {
this.searchForm.orderStatuses.push('') this.searchForm.orderStatuses.push('')
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!