修改测试bug
This commit is contained in:
@@ -108,14 +108,14 @@
|
||||
<TableHeader :showSearch="false" ref="tableHeaderRef" :key="searchFormIndex"
|
||||
@selectChange="selectChange">
|
||||
<template v-slot:select>
|
||||
<el-form-item for="-" label="统计指标" label-width="80px">
|
||||
<el-form-item for="-" label="统计指标">
|
||||
<el-select collapse-tags collapse-tags-tooltip v-model="searchForm.index"
|
||||
placeholder="请选择统计指标" multiple :multiple-limit="3">
|
||||
<el-option v-for="item in indexOptions" :key="item.id" :label="item.name"
|
||||
:value="item.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item for="-" label="值类型" label-width="80px">
|
||||
<el-form-item for="-" label="值类型">
|
||||
<el-select style="width: 160px !important" v-model="searchForm.dataLevel">
|
||||
<el-option value="Primary" label="一次值"></el-option>
|
||||
<el-option value="Secondary" label="二次值"></el-option>
|
||||
@@ -256,7 +256,7 @@ const nodeClick = async (e: anyObj) => {
|
||||
|
||||
//查询测试项信息
|
||||
await getTestRecordInfo(id)
|
||||
.then(res => {
|
||||
.then(async (res) => {
|
||||
deviceData.value = res.data
|
||||
if (res.data.records.length == 1) {
|
||||
activeName.value = res.data.records[0].id
|
||||
@@ -269,8 +269,13 @@ const nodeClick = async (e: anyObj) => {
|
||||
}
|
||||
})
|
||||
}
|
||||
searchForm.value.index = [indexOptions.value[0].id]
|
||||
|
||||
schemeTreeRef.value.getPlanData(deviceData.value)
|
||||
init(true)
|
||||
await setTimeout(() => {
|
||||
init(true)
|
||||
}, 500);
|
||||
|
||||
loading.value = false
|
||||
})
|
||||
.catch(e => {
|
||||
@@ -429,7 +434,7 @@ const init = (flag: boolean) => {
|
||||
const xname = params[0].value[0];
|
||||
let str = `${xname}<br>`;
|
||||
params.forEach((el, index) => {
|
||||
str += `${el.marker}${el.seriesName.split('(')[0]}:${el.value[1]}${el.value[2]}<br>`;
|
||||
str += `${el.marker}${el.seriesName.split('(')[0]}:${el.value[1] ? (el.value[1] + ' ' + el.value[2]) : '-'}<br>`;
|
||||
});
|
||||
return str;
|
||||
},
|
||||
@@ -494,7 +499,7 @@ const init = (flag: boolean) => {
|
||||
|
||||
}
|
||||
|
||||
seriesList.push([cc.time, cc.statisticalData?.toFixed(2),cc.unit])
|
||||
seriesList.push([cc.time, cc.statisticalData?.toFixed(2), cc.unit])
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user