fix: 修复 chart-list 因字段判断 undefined 报错
This commit is contained in:
@@ -935,7 +935,9 @@ export default {
|
||||
// this.$refs.alertListTable.$refs.alertListTable.clearSelection()
|
||||
// this.$refs.alertListScreenTable.$refs.dataTable.clearSelection()
|
||||
this.screenPageObj = { ...this.pageObj }
|
||||
if (this.$refs.screenPagination && this.$refs.screenPagination.pageSize) {
|
||||
this.$refs.screenPagination.pageSize = this.screenPageObj.pageSize
|
||||
}
|
||||
},
|
||||
// 设置数据, filter区分
|
||||
setData (chartItem, seriesItem, panelId, filter, area, errorMsg) {
|
||||
|
||||
@@ -358,7 +358,9 @@ export default {
|
||||
},
|
||||
initDialog () {
|
||||
// 此时初始化,才能获得screenShowArea对象,否则此对象为undefined,无法初始化图表
|
||||
if (this.$refs.pickTime) {
|
||||
this.$refs.pickTime.$refs.timePicker.setCustomTime()
|
||||
}
|
||||
const chartType = this.chart.type
|
||||
if (chartType === 'table') {
|
||||
//
|
||||
|
||||
@@ -74,7 +74,7 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
username: sessionStorage.getItem('nz-username'),
|
||||
username: localStorage.getItem('nz-username'),
|
||||
name: localStorage.getItem('nz-user-name'),
|
||||
language: localStorage.getItem('nz-language') ? localStorage.getItem('nz-language') : 'en',
|
||||
// 顶部菜单相关
|
||||
|
||||
Reference in New Issue
Block a user