组件之间数据渲染逻辑

This commit is contained in:
ym1026
2025-09-03 15:41:12 +08:00
parent 1568677c8e
commit 369f7165cb
15 changed files with 1018 additions and 892 deletions

View File

@@ -8,7 +8,7 @@
export default {
name: '',
props: {
deviceInfo: {
propsInfo: {
type: Array,
default: () => []
}
@@ -41,7 +41,7 @@ export default {
}
},
watch: {
deviceInfo: {
propsInfo: {
handler(n) {
this.$nextTick(() => {
this.drawLineChart()
@@ -79,7 +79,7 @@ export default {
getDisChargeData() {
const arr=this.curList
const keyList=this.curList.map((item)=>item.key)
const result = this.processData(this.deviceInfo, keyList)
const result = this.processData(this.propsInfo, keyList)
this.lineChartData.xdata = result.dates
arr.forEach((item, index) => {