修改 测试bug

This commit is contained in:
GGJ
2024-11-12 14:06:41 +08:00
parent 299301d4f7
commit 27e0dd3abd
10 changed files with 40 additions and 36 deletions

View File

@@ -283,9 +283,11 @@ const setChildRef = (index: any) => {
const childRefs: any = {}
const init = () => {
loading.value = true
searchForm.value.index.map((item: any, index: any) => {
item?.children.map((vv: any, vvs: any) => {
if (mqttMessage.value[vv.name]) {
if (mqttMessage.value[vv.name] !=undefined) {
item.data.push({
// time: mqttMessage.value.dataTime,
value: mqttMessage.value[vv.name],
@@ -301,6 +303,7 @@ const init = () => {
xAixsTimeList.value.push(mqttMessage.value.dataTime.split(" ")[1])
searchForm.value.index.map((item: any, index: any) => {
//循环渲染图表
@@ -360,6 +363,7 @@ const init = () => {
? (height = mainHeight(275, 3).height)
: (height = mainHeight(275, searchForm.value.index.length).height)
item.children.map((zz: any, zzIndex: any) => {
item.echartsData.series.push({
name: zz.phase,
type: 'line',