修改测试问题

This commit is contained in:
guanj
2026-01-16 15:54:16 +08:00
parent 5ceb9be9e2
commit c09e6f54dd
15 changed files with 111 additions and 50 deletions

View File

@@ -91,6 +91,7 @@
:name="item.id"
v-for="(item, index) in deviceData.dataSetList"
:key="index"
:disabled="tableLoading"
>
<template #label>
<span class="custom-tabs-label">

View File

@@ -380,7 +380,7 @@ const changeDataType = () => {
let data2 = dataType.value.includes(1)
? list.value[activeTab.value]?.modOutList.map(k => (k.data == 3.14159 ? 0 : k.data))
: [0]
let [modOuMin, modOuMax] = yMethod([...data1, ...data2])
let [modOuMin, modOuMax] = yMethod([...data1||[0], ...data2||[0]])
console.log("🚀 ~ changeDataType ~ modOuMin:", modOuMin,modOuMax)
echartsData.value.yAxis[0] = {

View File

@@ -20,12 +20,13 @@
<el-button @click="handleBack" :icon="Back">返回</el-button>
</div>
<!-- v-loading="loading" -->
<el-tabs
class="home_body"
type="border-card"
v-model.trim="activeName1"
@tab-click="handleClick"
v-loading="loading"
>
<el-tab-pane label="瞬时波形" name="ssbx" :style="'height:' + bxecharts + ';overflow-y: auto;'">
<shushiboxi
@@ -122,7 +123,7 @@ const changeView = () => {
}, 500)
setTimeout(() => {
loading.value = false
}, 1500)
}, 1000)
}
const bxecharts: any = ref(mainHeight(190).height as any)
@@ -133,7 +134,7 @@ const handleClick = (tab: any, event: any) => {
}, 500)
setTimeout(() => {
loading.value = false
}, 1500)
}, 1000)
}
const handleBack = () => {
emit('handleHideCharts')

View File

@@ -72,7 +72,7 @@ const tableStore: any = new TableStore({
title: '持续时间(s)',
minWidth: 110,
formatter: (row: any) => {
console.log('🚀 ~ row.cellValue:', row.cellValue)
// console.log('🚀 ~ row.cellValue:', row.cellValue)
return row.cellValue ? (row.cellValue - 0).toFixed(2) : '/'
},
@@ -136,7 +136,8 @@ const tableStore: any = new TableStore({
nextTick(() => {
waveFormAnalysisRef.value && waveFormAnalysisRef.value.getWpData(wp.value, boxoList.value)
waveFormAnalysisRef.value && waveFormAnalysisRef.value.setHeight(200, 345)
// waveFormAnalysisRef.value && waveFormAnalysisRef.value.setHeight(200, 345)
waveFormAnalysisRef.value && waveFormAnalysisRef.value.setHeight(350, 345)
})
}
},