From a47a4786ba586ec9e01e836ab07c53258f2a3154 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 20 Jan 2025 16:31:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/car_demand_plan/dispatch_car_list.js | 16 ++++++++++++++++ js/welcome/welcome_ajax.js | 1 + 2 files changed, 17 insertions(+) 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 += "