|
@@ -15,8 +15,6 @@ function getTenderId() {
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
autoFlashHeight();
|
|
|
- $('#right-view').css('width', _.round($('#left-view').parent().width() / 3));
|
|
|
- $('#left-view').css('width', $('#left-view').parent().width());
|
|
|
// 初始化台账
|
|
|
const ledgerSpread = SpreadJsObj.createNewSpread($('#ledger-spread')[0]);
|
|
|
SpreadJsObj.addDeleteBind(ledgerSpread);
|
|
@@ -882,8 +880,10 @@ $(document).ready(function() {
|
|
|
* A: 右侧工具栏不一定显示,当右侧工具栏显示过一次后,就必须使用parent和right来计算left.width
|
|
|
*
|
|
|
*/
|
|
|
- left.css('width', parent.width() - right.outerWidth());
|
|
|
- left.css('width', parent.width() - right.outerWidth());
|
|
|
+ //left.css('width', parent.width() - right.outerWidth());
|
|
|
+ //left.css('width', parent.width() - right.outerWidth());
|
|
|
+ const percent = 100 - right.outerWidth() /parent.width() * 100;
|
|
|
+ left.css('width', percent + '%');
|
|
|
} else {
|
|
|
left.width(parent.width());
|
|
|
right.hide();
|
|
@@ -891,6 +891,7 @@ $(document).ready(function() {
|
|
|
};
|
|
|
// 展开工具栏、切换标签
|
|
|
if (!tab.hasClass('active')) {
|
|
|
+ const close = $('.active', '#side-menu').length === 0;
|
|
|
$('a', '#side-menu').removeClass('active');
|
|
|
tab.addClass('active');
|
|
|
$('.tab-content .tab-pane').removeClass('active');
|
|
@@ -984,7 +985,7 @@ $(document).ready(function() {
|
|
|
}
|
|
|
} else { // 收起工具栏
|
|
|
tab.removeClass('active');
|
|
|
- tabPanel.hide();
|
|
|
+ tabPanel.removeClass('active');
|
|
|
showSideTools(tab.hasClass('active'));
|
|
|
}
|
|
|
ledgerSpread.refresh();
|