From 7b6c26a6184fc54ba0d13eba9729273682706f63 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Mon, 2 Feb 2026 18:17:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E5=8D=95=E5=8A=A0=E5=A4=87?= =?UTF-8?q?=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/public.css | 27 ++++++++++++++++++++++- js/car_demand_plan/dispatch_input_list.js | 9 ++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/css/public.css b/css/public.css index 0f6a3ac..ec4d9bc 100644 --- a/css/public.css +++ b/css/public.css @@ -101,7 +101,6 @@ body { font-size: 15px; color: #262626; letter-spacing: 1px; - height: 55px; } .layui-table thead tr { @@ -297,3 +296,29 @@ blockquote { cursor: pointer; } +.layui-table-fixed .layui-table-body tr, +.layui-table-main tr, +.layui-table-view .layui-table tr { + height: 48px !important; +} + +.layui-table td, +.layui-table-fixed td { + line-height: 48px !important; + padding: 0 10px !important; + box-sizing: border-box; +} + +.layui-table td div, +.layui-table td span { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.splitLine { + display: inline-block; + margin: 0 4px; +} + + diff --git a/js/car_demand_plan/dispatch_input_list.js b/js/car_demand_plan/dispatch_input_list.js index 203023b..4085bf7 100644 --- a/js/car_demand_plan/dispatch_input_list.js +++ b/js/car_demand_plan/dispatch_input_list.js @@ -240,6 +240,15 @@ function initTable() { done: function (res, curr, count) { pageNum = tableIns.config.page.curr; table.resize("currentTableId"); + + let trs = document.querySelectorAll(".layui-table-main tr"); + let fixedTrs = document.querySelectorAll(".layui-table-fixed tr"); + + trs.forEach((tr, i) => { + if (fixedTrs[i]) { + fixedTrs[i].style.height = tr.offsetHeight + "px"; + } + }); }, }); }