From 421d735274e2212ff03ede69313c1c8744af3950 Mon Sep 17 00:00:00 2001 From: wangfq Date: Tue, 9 Jun 2026 14:11:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B5=8B=E8=AF=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=A1=B5=E5=8E=BB=E6=8E=89=E5=9C=B0=E5=9D=80/?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=88=97=EF=BC=8C=E8=A1=A8=E6=A0=BC=E6=A8=AA?= =?UTF-8?q?=E5=90=91=E5=8F=AF=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - all/B2/B4 三视图均移除 dpg430_addr(地址) 和 str_type(类型) 列 - 表格包裹在 overflow-x:auto 容器中,列多时横向滚动 --- edc-web/app/static/js/test_data.js | 4 ---- edc-web/app/templates/test_data.html | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/edc-web/app/static/js/test_data.js b/edc-web/app/static/js/test_data.js index 4512c8a..37d76bb 100644 --- a/edc-web/app/static/js/test_data.js +++ b/edc-web/app/static/js/test_data.js @@ -10,7 +10,6 @@ const VIEWS = { { key: 'id', title: 'ID' }, { key: 'serial', title: '设备编码' }, { key: 'model', title: '型号', render: r => r.sub_type === 1 ? 'PD132' : r.sub_type === 2 ? 'DLD110' : '-' }, - { key: 'str_type', title: '类型' }, { key: 'data_source', title: '来源' }, { key: 'test_mode', title: '测试模式', render: r => r.test_mode === 1 ? '波动' : '灵敏度' }, { key: 'iffinish', title: '完成', render: r => r.data_source === 'B4' ? '-' : (r.iffinish === '1' ? '是' : '否') }, @@ -46,9 +45,7 @@ const VIEWS = { cols: [ { key: 'id', title: 'ID' }, { key: 'serial', title: '设备编码' }, - { key: 'dpg430_addr', title: '地址' }, { key: 'model', title: '型号', render: r => r.sub_type === 1 ? 'PD132' : r.sub_type === 2 ? 'DLD110' : '-' }, - { key: 'str_type', title: '类型' }, { key: 'test_mode', title: '测试模式', render: r => r.test_mode === 1 ? '波动' : '灵敏度' }, { key: 'iffinish', title: '完成', render: r => r.iffinish === '1' ? '是' : '否' }, { key: 'fault_info', title: '故障信息' }, @@ -71,7 +68,6 @@ const VIEWS = { cols: [ { key: 'id', title: 'ID' }, { key: 'serial', title: '设备编码' }, - { key: 'dpg430_addr', title: '地址' }, { key: 'remain_count', title: '剩余次数' }, { key: 'work_freq', title: '工作频率(Hz)' }, { key: 'curr_dist', title: '当前距离(mm)' }, diff --git a/edc-web/app/templates/test_data.html b/edc-web/app/templates/test_data.html index 74eeb60..01949c8 100644 --- a/edc-web/app/templates/test_data.html +++ b/edc-web/app/templates/test_data.html @@ -41,10 +41,12 @@ +
+
{% endblock %}