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 | 96 | */ |
97 | 97 | agGridChangeStatusRow: (pGridApi, pEvent) => { |
98 | 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 | 100 | const res = pGridApi.value.applyTransaction({ |
101 | 101 | update: [pEvent.data] |
102 | 102 | }); | ... | ... |
prestige-vue-4.0.0/src/service/AgGridService.js
... | ... | @@ -96,7 +96,7 @@ const agGridService = { |
96 | 96 | */ |
97 | 97 | agGridChangeStatusRow: (pGridApi, pEvent) => { |
98 | 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 | 100 | const res = pGridApi.value.applyTransaction({ |
101 | 101 | update: [pEvent.data] |
102 | 102 | }); | ... | ... |