修改 测试bug
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user