diff --git a/js/car_demand_plan/dispatch_car_list.js b/js/car_demand_plan/dispatch_car_list.js index 7c4e46a..190e91d 100644 --- a/js/car_demand_plan/dispatch_car_list.js +++ b/js/car_demand_plan/dispatch_car_list.js @@ -268,6 +268,22 @@ function initTable() { 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(); + }) } // 数量颜色 diff --git a/js/welcome/welcome_ajax.js b/js/welcome/welcome_ajax.js index c15dfb8..105ee15 100644 --- a/js/welcome/welcome_ajax.js +++ b/js/welcome/welcome_ajax.js @@ -139,6 +139,7 @@ function getSupStatistics() { $.each(l.list, function (index, item) { let img = item.type === 1 ? '../../images/svg/u326.svg' : '../../images/svg/u312.svg'; item.LAY_NUM = index; + item.progress = item.leaseProgress; html += "