问题修改

This commit is contained in:
cwchen 2025-01-20 16:31:43 +08:00
parent 3cd212f29c
commit a47a4786ba
2 changed files with 17 additions and 0 deletions

View File

@ -268,6 +268,22 @@ function initTable() {
table.resize("currentTableId"); table.resize("currentTableId");
}, },
}); });
table.on('sort(currentTableId2)', function (obj) {
$(".layui-table-main tr").each(function (index, val) {
$($(".layui-table-fixed .layui-table-body tbody tr")[index]).height($(val).height());
});
//动态监听表体高度变化,冻结行跟着改变高度
$(".layui-table-body tr").resize(function () {
$(".layui-table-body tr").each(function (index, val) {
$($(".layui-table-fixed .layui-table-body table tr")[index]).height($(val).height());
});
});
//初始化高度,使得冻结行表体高度一致
$(".layui-table-body tr").each(function (index, val) {
$($(".layui-table-fixed .layui-table-body table tr")[index]).height($(val).height());
});
element.render();
})
} }
// 数量颜色 // 数量颜色

View File

@ -139,6 +139,7 @@ function getSupStatistics() {
$.each(l.list, function (index, item) { $.each(l.list, function (index, item) {
let img = item.type === 1 ? '../../images/svg/u326.svg' : '../../images/svg/u312.svg'; let img = item.type === 1 ? '../../images/svg/u326.svg' : '../../images/svg/u312.svg';
item.LAY_NUM = index; item.LAY_NUM = index;
item.progress = item.leaseProgress;
html += "<li class='layout'>" + html += "<li class='layout'>" +
"<div class='layout' style='justify - content: space - evenly; '>" + "<div class='layout' style='justify - content: space - evenly; '>" +
"<img src=" + img + " width='32' height='32'>" + "<img src=" + img + " width='32' height='32'>" +