|
@@ -745,6 +745,7 @@ $(document).ready(function() {
|
|
SpreadJsObj.saveTopAndSelect(info.sheet, ckBillsSpread);
|
|
SpreadJsObj.saveTopAndSelect(info.sheet, ckBillsSpread);
|
|
},
|
|
},
|
|
cut: function (sheet, sel, callback) {
|
|
cut: function (sheet, sel, callback) {
|
|
|
|
+ sheet = ledgerSpread.getActiveSheet();
|
|
if (!sheet || !sel) return;
|
|
if (!sheet || !sel) return;
|
|
if (sel.colCount >= sheet.zh_setting.cols.length) {
|
|
if (sel.colCount >= sheet.zh_setting.cols.length) {
|
|
toastr.warning('请勿选中整行剪切');
|
|
toastr.warning('请勿选中整行剪切');
|
|
@@ -780,9 +781,9 @@ $(document).ready(function() {
|
|
}
|
|
}
|
|
|
|
|
|
if (datas.length > 0) {
|
|
if (datas.length > 0) {
|
|
|
|
+ callback();
|
|
postData(window.location.pathname + '/update', {postType: 'update', postData: datas}, function (result) {
|
|
postData(window.location.pathname + '/update', {postType: 'update', postData: datas}, function (result) {
|
|
const refreshNode = sheet.zh_tree.loadPostData(result);
|
|
const refreshNode = sheet.zh_tree.loadPostData(result);
|
|
- callback();
|
|
|
|
treeOperationObj.refreshTree(sheet, refreshNode);
|
|
treeOperationObj.refreshTree(sheet, refreshNode);
|
|
});
|
|
});
|
|
}
|
|
}
|