Browse Source

Merge pull request 'fix:修复bug' (#51) from dev-xjf into master

Reviewed-on: http://120.26.116.243:3000/root/alert-front/pulls/51
YKS
xiaojinfei 3 weeks ago
parent
commit
8681b6401e
  1. 8
      src/views/dashboard/demo/components/ParameterInfo.vue

8
src/views/dashboard/demo/components/ParameterInfo.vue

@ -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: [],

Loading…
Cancel
Save