|
@@ -460,7 +460,7 @@ $(document).ready(() => {
|
|
|
billsData[col.field] = col.type === 'Number' ? parseFloat(info.editingText) : info.editingText;
|
|
|
|
|
|
postData(window.location.href + '/update', { bills: billsData }, function (data) {
|
|
|
- const nodes = stageTree.loadPostStageData(data.bills);
|
|
|
+ const nodes = stageTree.loadPostStageData(data);
|
|
|
stageTreeSpreadObj.refreshTreeNodes(slSpread.getActiveSheet(), nodes);
|
|
|
});
|
|
|
}
|
|
@@ -506,7 +506,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
if (datas.length > 0) {
|
|
|
postData(window.location.href + '/update', {bills: datas}, function (result) {
|
|
|
- const nodes = stageTree.loadPostStageData(result.bills);
|
|
|
+ const nodes = stageTree.loadPostStageData(result);
|
|
|
stageTreeSpreadObj.refreshTreeNodes(slSpread.getActiveSheet(), nodes);
|
|
|
});
|
|
|
}
|
|
@@ -562,10 +562,9 @@ $(document).ready(() => {
|
|
|
datas.push(data);
|
|
|
}
|
|
|
}
|
|
|
- console.log(datas);
|
|
|
if (datas.length > 0) {
|
|
|
postData(window.location.href + '/update', { bills: datas }, function (data) {
|
|
|
- const nodes = stageTree.loadPostStageData(data.bills);
|
|
|
+ const nodes = stageTree.loadPostStageData(data);
|
|
|
stageTreeSpreadObj.refreshTreeNodes(slSpread.getActiveSheet(), nodes.concat(filterNodes));
|
|
|
});
|
|
|
} else {
|