秀山金融大屏完成
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user