|
@@ -140,6 +140,12 @@ $(document).ready(function() {
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ const gclGather = $.cs_gclGather({
|
|
|
|
+ selector: '#gcl-gather',
|
|
|
|
+ id: 'gcl-gather',
|
|
|
|
+ relaSheet: ledgerSpread.getActiveSheet(),
|
|
|
|
+ });
|
|
|
|
+
|
|
$.subMenu({
|
|
$.subMenu({
|
|
menu: '#sub-menu', miniMenu: '#sub-mini-menu', miniMenuList: '#mini-menu-list',
|
|
menu: '#sub-menu', miniMenu: '#sub-mini-menu', miniMenuList: '#mini-menu-list',
|
|
toMenu: '#to-menu', toMiniMenu: '#to-mini-menu',
|
|
toMenu: '#to-menu', toMiniMenu: '#to-mini-menu',
|
|
@@ -176,6 +182,7 @@ $(document).ready(function() {
|
|
if (checkList) {
|
|
if (checkList) {
|
|
checkList.spread.refresh();
|
|
checkList.spread.refresh();
|
|
}
|
|
}
|
|
|
|
+ if (gclGather) gclGather.spread.refresh();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
@@ -1070,12 +1077,9 @@ $(document).ready(function() {
|
|
ledgerSpread.bind(spreadNS.Events.SelectionChanged, treeOperationObj.selectionChanged);
|
|
ledgerSpread.bind(spreadNS.Events.SelectionChanged, treeOperationObj.selectionChanged);
|
|
ledgerSpread.bind(spreadNS.Events.TopRowChanged, treeOperationObj.topRowChanged);
|
|
ledgerSpread.bind(spreadNS.Events.TopRowChanged, treeOperationObj.topRowChanged);
|
|
|
|
|
|
- console.log(ledgerSpread.options);
|
|
|
|
ledgerSpread.bind(spreadNS.Events.ClipboardChanging, function (e, info) {
|
|
ledgerSpread.bind(spreadNS.Events.ClipboardChanging, function (e, info) {
|
|
const copyText = SpreadJsObj.getFilterCopyText(info.sheet);
|
|
const copyText = SpreadJsObj.getFilterCopyText(info.sheet);
|
|
SpreadJsObj.Clipboard.setCopyData(copyText);
|
|
SpreadJsObj.Clipboard.setCopyData(copyText);
|
|
- info.copyData.text = copyText;
|
|
|
|
- info.copyData.html = SpreadJsObj.getFilterCopyHTML(info.sheet);
|
|
|
|
});
|
|
});
|
|
if (!ledgerSpreadSetting.readOnly) {
|
|
if (!ledgerSpreadSetting.readOnly) {
|
|
ledgerSpread.bind(spreadNS.Events.SelectionChanged, function (e, info) {
|
|
ledgerSpread.bind(spreadNS.Events.SelectionChanged, function (e, info) {
|
|
@@ -2269,6 +2273,7 @@ $(document).ready(function() {
|
|
if (checkList) {
|
|
if (checkList) {
|
|
checkList.spread.refresh();
|
|
checkList.spread.refresh();
|
|
}
|
|
}
|
|
|
|
+ if (gclGather) gclGather.spread.refresh();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
const stdLibCellDoubleClick = function (e, info) {
|
|
const stdLibCellDoubleClick = function (e, info) {
|
|
@@ -2471,6 +2476,8 @@ $(document).ready(function() {
|
|
const node = SpreadJsObj.getSelectObject(ledgerSpread.getActiveSheet());
|
|
const node = SpreadJsObj.getSelectObject(ledgerSpread.getActiveSheet());
|
|
getNodeList(node.id);
|
|
getNodeList(node.id);
|
|
getAllList();
|
|
getAllList();
|
|
|
|
+ } else if (tab.attr('content') === '#gcl-gather') {
|
|
|
|
+ gclGather.spread.refresh();
|
|
}
|
|
}
|
|
} else { // 收起工具栏
|
|
} else { // 收起工具栏
|
|
tab.removeClass('active');
|
|
tab.removeClass('active');
|