秀山金融大屏完成

This commit is contained in:
aixianling
2022-05-23 21:04:48 +08:00
parent e46dc98f58
commit cf6610153f
4 changed files with 696 additions and 604 deletions

View File

@@ -101,7 +101,7 @@ export default {
this.dashboard = JSON.parse(res.data.config).dashboard
this.componentList.forEach((item, index) => {
if (item.dataType !== 'staticData' && ((item.type.indexOf('Chart') > -1) || item.type === 'display' || item.type === 'table' || item.type === 'summary')) {
if (item.dataType !== 'staticData' && ((item.type.indexOf('Chart') > -1) || ['display', 'table', 'map', 'summary'].includes(item.type))) {
this.getSourceData(item, index)
}
if (item.type === 'monitor' && item.monitorType === 'cmcc') {
@@ -174,9 +174,8 @@ export default {
...obj
})
})
}
} else dynamicData = res.data
}
this.$set(this.componentList[index], item.dataType, dynamicData)
}
}