|
@@ -1197,8 +1197,20 @@ export default {
|
|
that.getTableData(1);
|
|
that.getTableData(1);
|
|
},
|
|
},
|
|
handleCurrentChange (currentRow) {
|
|
handleCurrentChange (currentRow) {
|
|
- let that = this;
|
|
|
|
- that.currentData = currentRow;
|
|
|
|
|
|
+ let that = this;
|
|
|
|
+ if (currentRow !== null) {
|
|
|
|
+ that.currentData = currentRow;
|
|
|
|
+ } else {
|
|
|
|
+ that.currentData.itemid = '';
|
|
|
|
+ that.currentData.itemname = '';
|
|
|
|
+ that.currentData.itemdesc = '';
|
|
|
|
+ that.currentData.energyid = '';
|
|
|
|
+ that.currentData.workprocid = '';
|
|
|
|
+ that.currentData.unitid = unitid;
|
|
|
|
+ that.currentData.fid = '';
|
|
|
|
+ that.currentData.isup = '1';
|
|
|
|
+ that.currentData.mintimegranid = '';
|
|
|
|
+ }
|
|
},
|
|
},
|
|
but_add () {
|
|
but_add () {
|
|
let that = this;
|
|
let that = this;
|