|
|
@@ -142,9 +142,15 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
addRow() {
|
|
|
- this.data.push({
|
|
|
- quantity: 0
|
|
|
- });
|
|
|
+ if (this.data.length == 0) {
|
|
|
+ this.data.push({
|
|
|
+ quantity: this.qtyMax
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.data.push({
|
|
|
+ quantity: 0
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
rowDicChange(name, row, el) {
|
|
|
if (name == "reservoirAreaName") {
|
|
|
@@ -176,7 +182,7 @@ export default {
|
|
|
this.form = form;
|
|
|
this.query = row;
|
|
|
this.index = index;
|
|
|
- this.data = row.historyList;
|
|
|
+ this.data = this.deepClone(row.historyList);
|
|
|
this.qtyMax = row.remainingNum;
|
|
|
this.dialogVisible = true;
|
|
|
},
|