|
|
@@ -257,22 +257,25 @@
|
|
|
});
|
|
|
},
|
|
|
handleAdd() {
|
|
|
+ var index=this.formModel.optionList.length+1;
|
|
|
this.formModel.optionList.push({
|
|
|
serialNumber: "",
|
|
|
name: "",
|
|
|
- incomeTimeRangeArr:null
|
|
|
+ incomeTimeRangeArr:null,
|
|
|
+ index:index
|
|
|
});
|
|
|
},
|
|
|
handleInsert(row) {
|
|
|
+ var index=this.formModel.optionList.length+1;
|
|
|
this.formModel.optionList.push({
|
|
|
serialNumber: "",
|
|
|
name: "",
|
|
|
- incomeTimeRangeArr:null
|
|
|
+ incomeTimeRangeArr:null,
|
|
|
+ index:index
|
|
|
});
|
|
|
},
|
|
|
handleDelete(row) {
|
|
|
var optionList = this.formModel.optionList;
|
|
|
-
|
|
|
optionList.splice(optionList.indexOf(row), 1);
|
|
|
},
|
|
|
},
|