修改测试问题

This commit is contained in:
guanj
2026-06-16 08:34:45 +08:00
parent 1c01fe5ae1
commit d9dfd804c5
63 changed files with 5289 additions and 3842 deletions

View File

@@ -82,15 +82,50 @@ const tableStore: any = new TableStore({
title: '指标名称',
field: 'name',
minWidth: 120
}, {
title: '越限时间',
field: 'time',
minWidth: 100,
formatter: (row: any) => {
return row.cellValue || '/'
}
},
{
title: '越限最高监测点',
title: '越限最高监测点名称',
field: 'lineName',
minWidth: 120,
minWidth: 140,
formatter: (row: any) => {
return row.cellValue || '/'
}
},
{
title: '越限程度(%)',
field: 'extent',
minWidth: 100,
formatter: (row: any) => {
return row.cellValue ? Math.floor(row.cellValue * 100) / 100 : '/'
}
},
{
title: '越限最大值',
field: 'maxValue',
minWidth: 100,
render: 'customTemplate',
customTemplate: (row: any) => {
const extentValue =
row.maxValue !== null && row.maxValue !== undefined && row.maxValue !== ''
? Math.floor(row.maxValue * 100) / 100
: '/'
return extentValue == '/' ? '/' : `<span style='cursor: pointer;text-decoration: underline;'>${extentValue}</span>`
}
},
{
title: '国标限值',
field: 'internationalValue',
minWidth: 100, formatter: (row: any) => {
return row.cellValue || '/'
}
},
{
title: '设备名称', field: 'devName', minWidth: 130, align: 'center', formatter: (row: any) => {
return row.cellValue || '/'
@@ -106,42 +141,9 @@ const tableStore: any = new TableStore({
return row.cellValue || '/'
}
},
{
title: '越限最大值',
field: 'maxValue',
minWidth: 100,
render: 'customTemplate',
customTemplate: (row: any) => {
const extentValue =
row.maxValue !== null && row.maxValue !== undefined && row.maxValue !== ''
? Math.floor(row.maxValue * 100) / 100
: '/'
return extentValue=='/' ? '/' : `<span style='cursor: pointer;text-decoration: underline;'>${extentValue}</span>`
}
},
{
title: '国标限值',
field: 'internationalValue',
minWidth: 100, formatter: (row: any) => {
return row.cellValue || '/'
}
},
{
title: '越限程度(%)',
field: 'extent',
minWidth: 100,
formatter: (row: any) => {
return row.cellValue? Math.floor(row.cellValue * 100) / 100 : '/'
}
},
{
title: '越限时间',
field: 'time',
minWidth: 100,
formatter: (row: any) => {
return row.cellValue || '/'
}
},
],
beforeSearchFun: () => {