From 1816f1a4972c9a7563e975d42f9734ee12b36496 Mon Sep 17 00:00:00 2001 From: hy <123@qq.com> Date: Tue, 31 Dec 2024 09:45:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC=E5=AF=B9?= =?UTF-8?q?=E4=B8=8D=E9=BD=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/src/js/custom_form_status_indicator.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jikimo_frontend/static/src/js/custom_form_status_indicator.js b/jikimo_frontend/static/src/js/custom_form_status_indicator.js index 1e39b719..4992872a 100644 --- a/jikimo_frontend/static/src/js/custom_form_status_indicator.js +++ b/jikimo_frontend/static/src/js/custom_form_status_indicator.js @@ -177,9 +177,10 @@ patch(ListRenderer.prototype, 'jikimo_frontend.ListRenderer', { const thead_th_num = thead_tr.children().length const tbody_tr_num = tbody_tr.children().length const num = thead_th_num - tbody_tr_num - console.log('num', num); if(num == -1) { - thead_tr.prepend('序号') + tbody.children('tr').each(function () { + $(this).children('td').eq(0).remove() + }) } } catch (e) {