fix: 修复chartAlarmInfo组件只有第一次刷新时回到第一页
This commit is contained in:
@@ -313,6 +313,7 @@ export default {
|
|||||||
this.$emit('refresh')
|
this.$emit('refresh')
|
||||||
if (this.isAlarmInfo) {
|
if (this.isAlarmInfo) {
|
||||||
this.tabHandleClick('All')
|
this.tabHandleClick('All')
|
||||||
|
this.emitter.emit('chart-info', 'All')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
timeRefreshChange () {
|
timeRefreshChange () {
|
||||||
|
|||||||
@@ -192,6 +192,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
const _this = this
|
||||||
|
this.emitter.on('chart-info', function (value) {
|
||||||
|
_this.getData(1, value)
|
||||||
|
})
|
||||||
this.getCount()
|
this.getCount()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user