|
@@ -1076,6 +1076,19 @@ $(document).ready(() => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ $.divResizer({
|
|
|
+ select: '#main-resize',
|
|
|
+ callback: function () {
|
|
|
+ materialSpread.refresh();
|
|
|
+ ledgerSpread.refresh();
|
|
|
+ let bcontent = $(".bcontent-wrap") ? $(".bcontent-wrap").height() : 0;
|
|
|
+ $(".sp-wrap").height(bcontent-30);
|
|
|
+ leafXmjSpread.refresh();
|
|
|
+ const height = $('.bcontent-wrap').height();
|
|
|
+ setLocalCache('material_list2_' + materialID, height);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
// 展开收起月信息价并浏览器记住本期展开收起
|
|
|
$('a', '.right-nav').bind('click', function () {
|
|
|
//const main = $('#main-view'), tool = $('#tools-view');
|
|
@@ -1113,4 +1126,17 @@ $(document).ready(() => {
|
|
|
// leafXmjSpread.refresh();
|
|
|
materialSpread.refresh();
|
|
|
}
|
|
|
+ if (getLocalCache('material_list2_' + materialID)) {
|
|
|
+ $('.bcontent-wrap').height(getLocalCache('material_list2_' + materialID));
|
|
|
+ const cHeader = getObjHeight($(".c-header"));
|
|
|
+ const bcontent = $(".bcontent-wrap") ? $(".bcontent-wrap").height() : 0;
|
|
|
+ $(".sp-wrap").height(bcontent-30);
|
|
|
+ $('.sjs-height-1').height($(window).height()-cHeader-bcontent-90+53);
|
|
|
+ materialSpread.refresh();
|
|
|
+ ledgerSpread.refresh();
|
|
|
+ leafXmjSpread.refresh();
|
|
|
+ }
|
|
|
+ function getObjHeight(select) {
|
|
|
+ return select.length > 0 ? select.height() : 0;
|
|
|
+ }
|
|
|
});
|