|
@@ -2333,10 +2333,14 @@ $(document).ready(function() {
|
|
|
datas.push(data);
|
|
|
}
|
|
|
}
|
|
|
- postData(window.location.pathname + '/update', {postType: 'update', postData: datas}, function (result) {
|
|
|
- const refreshNode = ledgerTree.loadPostData(result);
|
|
|
- treeOperationObj.refreshTree(ledgerSpread.getActiveSheet(), refreshNode);
|
|
|
- });
|
|
|
+ if (datas.length > 0) {
|
|
|
+ postData(window.location.pathname + '/update', {postType: 'update', postData: datas}, function (result) {
|
|
|
+ const refreshNode = ledgerTree.loadPostData(result);
|
|
|
+ treeOperationObj.refreshTree(ledgerSpread.getActiveSheet(), refreshNode);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ toastr.warning('没有可应用的清单。');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|