如图所示
我想要这个数组的第二项time在第一项的里面赋值新key 以此类推
window.KaTeX parse error: Expected '}', got 'EOF' at end of input: …dTime = window.dayjs().add(1, ‘day’).format(‘YYYY-MM-DD 00:00:00’)
v.runState = 4 // 最后一个时间截止后无法预估后续的状态,默认赋值0 停机
}
echartData.push({
…v
})
})
echartData2.push(item.details)
}
})
this.tableData = JSON.parse(JSON.stringify(tabArr)).reverse() // 表格数据
this.dataList = JSON.parse(JSON.stringify(echartData2)) // echarts 数据
this.KaTeX parse error: Expected 'EOF', got '&' at position 22: …deviceOpenRef']&?&this.refs[‘deviceOpenRef’].getEchartsLiving()
this.KaTeX parse error: Expected 'EOF', got '&' at position 23: …eviceOpenRef'] &?& this.refs[‘deviceOpenRef’].upDataEcharts(bootEcharts(this.dataList, this.yData, this.formData.dataTimeArr))
}).catch(() => {
this.
m
e
s
s
a
g
e
.
e
r
r
o
r
(
‘
message.error(`
message.error(‘{this.dataInfos.deviceTitle}获取数据失败`)
this.KaTeX parse error: Expected 'EOF', got '&' at position 23: …eviceOpenRef'] &?& this.refs[‘deviceOpenRef’].upDataEcharts(bootEcharts([], this.yData, this.formData.dataTimeArr))
})