|
@@ -104,7 +104,6 @@ export default {
|
|
|
show(index) {
|
|
|
const self = this
|
|
|
this.index = index
|
|
|
- this.form = {}
|
|
|
this.form = _.cloneDeep(self.nodeConfig.parallelNodes[index])
|
|
|
this.drawer = true
|
|
|
},
|
|
@@ -186,7 +185,12 @@ export default {
|
|
|
conditionList.splice(index, 1)
|
|
|
},
|
|
|
addConditionGroup() {
|
|
|
- this.addConditionList(this.form.conditionList[this.form.conditionList.push([]) - 1])
|
|
|
+ let conditionList = this.form.conditionList
|
|
|
+ if (!conditionList) {
|
|
|
+ this.form.conditionList = []
|
|
|
+ conditionList = this.form.conditionList
|
|
|
+ }
|
|
|
+ this.addConditionList(conditionList[conditionList.push([]) - 1])
|
|
|
},
|
|
|
deleteConditionGroup(index) {
|
|
|
this.form.conditionList.splice(index, 1)
|