|
|
@@ -884,7 +884,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'cywyxm', title: __('业务员'), operate: 'LIKE', table: 'b', width: 80, align: 'center'},
|
|
|
{field: 'dStamp', title: __('操作日期'), operate: 'RANGE', addclass: 'datetimerange', autocomplete: false, table: 'a', width: 176, align: 'center', sortable: true, class: 'procuremen-th-sort-tight'},
|
|
|
{field: 'dputrecord', title: __('提交日期'), operate: 'RANGE', addclass: 'datetimerange', autocomplete: false, table: 'b', width: 176, align: 'center', sortable: true, class: 'procuremen-th-sort-tight'},
|
|
|
- {field: 'operate',title: '操作',width: 240,align: 'center',fixed: 'right', operate: false,
|
|
|
+ {field: 'operate',title: '操作',width: 168,align: 'center',fixed: 'right', operate: false,
|
|
|
visible: indexInitWffTab !== 'pick',
|
|
|
table: table,
|
|
|
formatter: function (value, row, index) {
|
|
|
@@ -1078,8 +1078,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
}
|
|
|
$headerWrap.scrollLeft(sl);
|
|
|
|
|
|
- // 右侧固定操作列:插件克隆整表再 scrollLeft 到最右;切勿 scrollLeft(0) 或把 table 压成 240px
|
|
|
- var $fixedRight = $bt.find('.fixed-columns-right');
|
|
|
+ // 右侧固定操作列:插件克隆整表再 scrollLeft 到最右;切勿 scrollLeft(0) 或把 table 压成单列宽
|
|
|
+ var $fixedRight = $bt.find('.fixed-columns-right');
|
|
|
if ($fixedRight.length) {
|
|
|
var $fh = $fixedRight.find('.fixed-table-header').first();
|
|
|
var $fb = $fixedRight.find('.fixed-table-body').first();
|
|
|
@@ -1100,7 +1100,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
});
|
|
|
$fixedRight.find('colgroup').remove();
|
|
|
|
|
|
- var opW = 240;
|
|
|
+ var opW = 168;
|
|
|
var $opCell = $bt.find('.fixed-table-body table thead th[data-field="operate"]').first();
|
|
|
if (!$opCell.length) {
|
|
|
$opCell = $headerTable.find('th[data-field="operate"]').first();
|
|
|
@@ -1108,7 +1108,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
if ($opCell.length) {
|
|
|
var measured = $opCell.outerWidth();
|
|
|
if (measured > 0) {
|
|
|
- opW = Math.max(measured, 240);
|
|
|
+ opW = Math.max(Math.round(measured), 156);
|
|
|
}
|
|
|
}
|
|
|
$fixedRight.css({
|
|
|
@@ -2008,12 +2008,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
var rfqHeightTimer = null;
|
|
|
|
|
|
function rfqCalcTableHeight() {
|
|
|
- var el = table[0];
|
|
|
- if (!el) {
|
|
|
+ var $bt = table.closest('.bootstrap-table');
|
|
|
+ var el = $bt.length ? $bt[0] : table[0];
|
|
|
+ if (!el || !el.getBoundingClientRect) {
|
|
|
return 400;
|
|
|
}
|
|
|
+ // 必须从 .bootstrap-table 顶部算(含工具栏),才是插件 height 的总高
|
|
|
var top = el.getBoundingClientRect().top;
|
|
|
- return Math.max(300, Math.floor(window.innerHeight - top - 28));
|
|
|
+ return Math.max(280, Math.floor(window.innerHeight - top - 18));
|
|
|
}
|
|
|
|
|
|
function rfqSyncTableHeight() {
|