Commit 95cfd903656dcbe61f5c11db7971aca3f8a5b5e6
1 parent
22b5101a
.
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
babylon-vue-4.0.0/src/service/AgGridService.js
| @@ -96,7 +96,7 @@ const agGridService = { | @@ -96,7 +96,7 @@ const agGridService = { | ||
| 96 | */ | 96 | */ |
| 97 | agGridChangeStatusRow: (pGridApi, pEvent) => { | 97 | agGridChangeStatusRow: (pGridApi, pEvent) => { |
| 98 | console.log("onCellValueChanged"); | 98 | console.log("onCellValueChanged"); |
| 99 | - if ('N,D'.indexOf(pEvent.data.rowStatus) == -1) pEvent.data.rowStatus = "U"; | 99 | + if (pEvent.data.rowStatus == "") pEvent.data.rowStatus = "U"; |
| 100 | const res = pGridApi.value.applyTransaction({ | 100 | const res = pGridApi.value.applyTransaction({ |
| 101 | update: [pEvent.data] | 101 | update: [pEvent.data] |
| 102 | }); | 102 | }); |
prestige-vue-4.0.0/src/service/AgGridService.js
| @@ -96,7 +96,7 @@ const agGridService = { | @@ -96,7 +96,7 @@ const agGridService = { | ||
| 96 | */ | 96 | */ |
| 97 | agGridChangeStatusRow: (pGridApi, pEvent) => { | 97 | agGridChangeStatusRow: (pGridApi, pEvent) => { |
| 98 | console.log("onCellValueChanged"); | 98 | console.log("onCellValueChanged"); |
| 99 | - if ('N,D'.indexOf(pEvent.data.rowStatus) == -1) pEvent.data.rowStatus = "U"; | 99 | + if (pEvent.data.rowStatus == "") pEvent.data.rowStatus = "U"; |
| 100 | const res = pGridApi.value.applyTransaction({ | 100 | const res = pGridApi.value.applyTransaction({ |
| 101 | update: [pEvent.data] | 101 | update: [pEvent.data] |
| 102 | }); | 102 | }); |