|
|
@ -13,14 +13,14 @@ const props = defineProps({ |
|
|
|
|
|
|
|
function getInterval(record: any) { |
|
|
|
console.log(record) |
|
|
|
if (record.originValue === '-') |
|
|
|
if (record.predictValue === '-') |
|
|
|
return '-' |
|
|
|
record.originValue = Number(record.originValue).toFixed(2) |
|
|
|
record.predictValue = Number(record.predictValue).toFixed(2) |
|
|
|
|
|
|
|
const threshold = record.ResidualThreshold |
|
|
|
console.log(threshold) |
|
|
|
const originValue = record.originValue || 0 |
|
|
|
return `[${Number(originValue) - threshold},${Number(originValue) + threshold}]` |
|
|
|
const predictValue = record.predictValue || 0 |
|
|
|
return `[${Number(predictValue) - threshold},${Number(predictValue) + threshold}]` |
|
|
|
} |
|
|
|
const [registerTable, { setTableData }] = useTable({ |
|
|
|
dataSource: [], |
|
|
|