NEZ-1631 fix:列表页面 默认排序字段 初始化状态修复

This commit is contained in:
zhangyu
2022-03-04 13:59:25 +08:00
parent 5e8964932f
commit be959ad26b
37 changed files with 54 additions and 13 deletions

View File

@@ -719,9 +719,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' },
@@ -739,6 +739,7 @@ export default {
})
}
this.tableData = response.data.list
console.log(this.$refs.dataTable.$refs.dataTable)
const globalSearchId = this.$store.getters.getGlobalSearchId
let detailViewRightObj = ''
if (globalSearchId) {
@@ -749,7 +750,7 @@ export default {
this.detailViewRightObj = detailViewRightObj
this.pageObj.total = response.data.total
this.pageObj.pages = response.data.pages
if (!this.scrollbarWrap && this.$refs.dataTable&& this.$refs.dataTable.$refs.dataTable) {
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)