fix:处理panel 页面报错信息

This commit is contained in:
zhangyu
2021-11-26 16:24:58 +08:00
parent 463a66847d
commit a1c9b34a8b
3 changed files with 12 additions and 12 deletions

View File

@@ -884,7 +884,7 @@ export default {
getChartData (chartInfo, pos, filterType) {
const chartItem = chartInfo
if (chartItem.type === 'group') {
this.$refs['editChart' + chartItem.id][0].setData(chartItem)
this.$refs['editChart' + chartItem.id][0] && this.$refs['editChart' + chartItem.id][0].setData(chartItem)
return
}
if (chartItem.type === 'assetInfo') {
@@ -1686,7 +1686,7 @@ export default {
if (this.obj) {
this.$set(chartInfo, 'param', { endpointId: this.obj.id })
}
this.$refs['editChart' + chartInfo.id][0].getAlertList(null, null, chartInfo)
this.$refs['editChart' + chartInfo.id][0] && this.$refs['editChart' + chartInfo.id][0].getAlertList(null, null, chartInfo)
},
getAlertRuleChartData (chartInfo) {
const vm = this