From e85ef7700a6b4ea5eea57c2750d831cb59ecff7d Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期六, 06 五月 2023 10:18:04 +0800
Subject: [PATCH] 周会-修理 页面自适应屏幕宽度
---
force-app/main/default/pages/RepairPCL.page | 4 ++--
force-app/main/default/staticresources/OpportunityPCLJs.js | 19 +++++++++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/pages/RepairPCL.page b/force-app/main/default/pages/RepairPCL.page
index 569e20d..e6b265a 100644
--- a/force-app/main/default/pages/RepairPCL.page
+++ b/force-app/main/default/pages/RepairPCL.page
@@ -43,13 +43,13 @@
overflow: auto; /*銈广偗銉兗銉儛銉�*/
float:left;
width:700px;
- height: 100px; /* tbody銈掕〃绀恒仚銈嬮珮銇曘�佸緦銇s銇仸瑾挎暣 */
+ height: 300px; /* tbody銈掕〃绀恒仚銈嬮珮銇曘�佸緦銇s銇仸瑾挎暣 */
}
div#in_Div_L {
position:relative;
overflow: hidden;
float:left;
- height: 100px;
+ height: 300px;
width: 547px;
}
diff --git a/force-app/main/default/staticresources/OpportunityPCLJs.js b/force-app/main/default/staticresources/OpportunityPCLJs.js
index d89c9e1..6533d6e 100644
--- a/force-app/main/default/staticresources/OpportunityPCLJs.js
+++ b/force-app/main/default/staticresources/OpportunityPCLJs.js
@@ -156,6 +156,15 @@
}
function resizeTable() {
+ blockHeight = j$(window).innerHeight() - j$(escapeVfId('allPage:allForm:searchBlock')).height() - heightAjustment;
+ sbwidth = scrollbarWidth();
+ blockWidth = j$(escapeVfId('allPage:allForm:searchBlock')).width() - j$('div#in_Div_L').width() - widthAjustment - sbwidth;
+ j$(escapeVfId('allPage:allForm:oppBlock')).css('height', blockHeight + 78 + 'px');
+ j$('div#in_Div').css('width', blockWidth + 'px');
+ j$('div#out_Div').css('width', blockWidth + 'px');
+
+
+
var tableWidth = 0;
j$('body .pbBody table#tableHeader tr.headerRow td').each(function() {
var colClass = getColClassName(this);
@@ -166,6 +175,16 @@
});
j$('table#tableData').css('width', (tableWidth + 20) + 'px');
j$('table#tableHeader').css('width', (tableWidth + 20) + 'px');
+
+
+
+ if (j$('table#tableData').height() > j$('div#in_Div').height()) {
+ j$('div#in_Div').css('width', (blockWidth + sbwidth) + 'px');
+ } else {
+ j$('div#out_Div').css('width', (blockWidth + sbwidth) + 'px');
+ j$('div#in_Div').css('width', (blockWidth + sbwidth) + 'px');
+ }
+
}
function sortTableJs_Account(key) {
--
Gitblit v1.9.1