|
@@ -591,7 +591,6 @@ $(document).ready(() => {
|
|
|
},
|
|
|
};
|
|
|
materialMonthSpread.getActiveSheet().frozenColumnCount(4);
|
|
|
- console.log(materialMonthSpread.getActiveSheet().options);
|
|
|
materialMonthSpread.getActiveSheet().options.frozenlineColor = '#f1f1f1';
|
|
|
SpreadJsObj.initSpreadSettingEvents(materialMonthSpreadSetting, materialMonthCol);
|
|
|
SpreadJsObj.initSheet(materialMonthSpread.getActiveSheet(), materialMonthSpreadSetting);
|
|
@@ -1022,4 +1021,26 @@ $(document).ready(() => {
|
|
|
materialMonthSpread.refresh();
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ // 展开收起附件
|
|
|
+ $('a', '.right-nav').bind('click', function () {
|
|
|
+ //const main = $('#main-view'), tool = $('#tools-view');
|
|
|
+ const tab = $(this), tabPanel = $(tab.attr('content'));
|
|
|
+ if (!tab.hasClass('active')) {
|
|
|
+ $('a', '.side-menu').removeClass('active');
|
|
|
+ $('.tab-content .tab-select-show').removeClass('active');
|
|
|
+ tab.addClass('active');
|
|
|
+ tabPanel.addClass('active');
|
|
|
+ showSideTools(tab.hasClass('active'));
|
|
|
+ if (tab.attr('content') === '#month-tab') {
|
|
|
+ materialMonthSpread.refresh();
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ tab.removeClass('active');
|
|
|
+ tabPanel.removeClass('active');
|
|
|
+ showSideTools(tab.hasClass('active'));
|
|
|
+ }
|
|
|
+ materialSpread.refresh();
|
|
|
+ materialMonthSpread.refresh();
|
|
|
+ });
|
|
|
});
|