refactor: 测试信息页去掉地址/类型列,表格横向可滚动
- all/B2/B4 三视图均移除 dpg430_addr(地址) 和 str_type(类型) 列 - 表格包裹在 overflow-x:auto 容器中,列多时横向滚动
This commit is contained in:
@@ -10,7 +10,6 @@ const VIEWS = {
|
|||||||
{ key: 'id', title: 'ID' },
|
{ key: 'id', title: 'ID' },
|
||||||
{ key: 'serial', title: '设备编码' },
|
{ key: 'serial', title: '设备编码' },
|
||||||
{ key: 'model', title: '型号', render: r => r.sub_type === 1 ? 'PD132' : r.sub_type === 2 ? 'DLD110' : '-' },
|
{ key: 'model', title: '型号', render: r => r.sub_type === 1 ? 'PD132' : r.sub_type === 2 ? 'DLD110' : '-' },
|
||||||
{ key: 'str_type', title: '类型' },
|
|
||||||
{ key: 'data_source', title: '来源' },
|
{ key: 'data_source', title: '来源' },
|
||||||
{ key: 'test_mode', title: '测试模式', render: r => r.test_mode === 1 ? '波动' : '灵敏度' },
|
{ key: 'test_mode', title: '测试模式', render: r => r.test_mode === 1 ? '波动' : '灵敏度' },
|
||||||
{ key: 'iffinish', title: '完成', render: r => r.data_source === 'B4' ? '-' : (r.iffinish === '1' ? '是' : '否') },
|
{ key: 'iffinish', title: '完成', render: r => r.data_source === 'B4' ? '-' : (r.iffinish === '1' ? '是' : '否') },
|
||||||
@@ -46,9 +45,7 @@ const VIEWS = {
|
|||||||
cols: [
|
cols: [
|
||||||
{ key: 'id', title: 'ID' },
|
{ key: 'id', title: 'ID' },
|
||||||
{ key: 'serial', title: '设备编码' },
|
{ key: 'serial', title: '设备编码' },
|
||||||
{ key: 'dpg430_addr', title: '地址' },
|
|
||||||
{ key: 'model', title: '型号', render: r => r.sub_type === 1 ? 'PD132' : r.sub_type === 2 ? 'DLD110' : '-' },
|
{ 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: 'test_mode', title: '测试模式', render: r => r.test_mode === 1 ? '波动' : '灵敏度' },
|
||||||
{ key: 'iffinish', title: '完成', render: r => r.iffinish === '1' ? '是' : '否' },
|
{ key: 'iffinish', title: '完成', render: r => r.iffinish === '1' ? '是' : '否' },
|
||||||
{ key: 'fault_info', title: '故障信息' },
|
{ key: 'fault_info', title: '故障信息' },
|
||||||
@@ -71,7 +68,6 @@ const VIEWS = {
|
|||||||
cols: [
|
cols: [
|
||||||
{ key: 'id', title: 'ID' },
|
{ key: 'id', title: 'ID' },
|
||||||
{ key: 'serial', title: '设备编码' },
|
{ key: 'serial', title: '设备编码' },
|
||||||
{ key: 'dpg430_addr', title: '地址' },
|
|
||||||
{ key: 'remain_count', title: '剩余次数' },
|
{ key: 'remain_count', title: '剩余次数' },
|
||||||
{ key: 'work_freq', title: '工作频率(Hz)' },
|
{ key: 'work_freq', title: '工作频率(Hz)' },
|
||||||
{ key: 'curr_dist', title: '当前距离(mm)' },
|
{ key: 'curr_dist', title: '当前距离(mm)' },
|
||||||
|
|||||||
@@ -41,10 +41,12 @@
|
|||||||
|
|
||||||
<div id="chart-container" style="display:none; width:100%; height:500px; margin-bottom:16px;"></div>
|
<div id="chart-container" style="display:none; width:100%; height:500px; margin-bottom:16px;"></div>
|
||||||
|
|
||||||
|
<div style="overflow-x:auto; max-width:100%; -webkit-overflow-scrolling:touch;">
|
||||||
<table id="test-data-table">
|
<table id="test-data-table">
|
||||||
<thead></thead>
|
<thead></thead>
|
||||||
<tbody></tbody>
|
<tbody></tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="pagination" id="pagination"></div>
|
<div class="pagination" id="pagination"></div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user