NEZ-1631 fix:列表页面 默认排序字段 初始化状态修复
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user