|
@@ -90,16 +90,11 @@ $(document).ready(() => {
|
|
|
xmjSpread.bind(spreadNS.Events.SelectionChanged, function (e, info) {
|
|
|
unitTreeObj.loadCurUnitData();
|
|
|
});
|
|
|
- unitSpread.bind(spreadNS.Events.SelectionChanged, function (e, info) {
|
|
|
- console.log(SpreadJsObj.getSelectObject(info.sheet));
|
|
|
+ xmjSpread.bind(spreadNS.Events.ClipboardChanged, function (e, info) {
|
|
|
+ SpreadJsObj.Clipboard.setSysClipboard(SpreadJsObj.getFilterCopyText(info.sheet));
|
|
|
});
|
|
|
- xmjSpread.bind(spreadNS.Events.ClipboardChanging, function (e, info) {
|
|
|
- const copyText = SpreadJsObj.getFilterCopyText(info.sheet);
|
|
|
- SpreadJsObj.Clipboard.setCopyData(copyText);
|
|
|
- });
|
|
|
- unitSpread.bind(spreadNS.Events.ClipboardChanging, function (e, info) {
|
|
|
- const copyText = SpreadJsObj.getFilterCopyText(info.sheet);
|
|
|
- SpreadJsObj.Clipboard.setCopyData(copyText);
|
|
|
+ unitSpread.bind(spreadNS.Events.ClipboardChanged, function (e, info) {
|
|
|
+ SpreadJsObj.Clipboard.setSysClipboard(SpreadJsObj.getFilterCopyText(info.sheet));
|
|
|
});
|
|
|
const loadData = function (dataType) {
|
|
|
postData(window.location.pathname + '/load', {filter: dataType}, function (result) {
|