fix:修改详情页面报错的问题
This commit is contained in:
@@ -251,7 +251,7 @@ export default {
|
||||
},
|
||||
searchTime: bus.getTimezontDateRange(),
|
||||
needAlertDaysData: true,
|
||||
trendKey: 'ruleId',
|
||||
trendKey: 'ruleId'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -290,9 +290,9 @@ export default {
|
||||
if (this.needAlertDaysData) {
|
||||
response.data.list.forEach(item => {
|
||||
item.trendLoading = true
|
||||
item.left= 0
|
||||
item.top= 0
|
||||
item.alertNumtooltipShow= false
|
||||
item.left = 0
|
||||
item.top = 0
|
||||
item.alertNumtooltipShow = false
|
||||
item.alertDaysData = [
|
||||
{
|
||||
metric: { priority: 'P1' },
|
||||
@@ -320,7 +320,7 @@ export default {
|
||||
this.detailViewRightObj = detailViewRightObj
|
||||
this.pageObj.total = response.data.total
|
||||
this.pageObj.pages = response.data.pages
|
||||
if (!this.scrollbarWrap) {
|
||||
if (!this.scrollbarWrap && this.$refs.dataTable && this.$refs.dataTable.$refs.dataTable) {
|
||||
this.$nextTick(() => {
|
||||
this.scrollbarWrap = this.$refs.dataTable.$refs.dataTable.bodyWrapper
|
||||
this.toTopBtnHandler(this.scrollbarWrap)
|
||||
|
||||
Reference in New Issue
Block a user