fix:修复report页,刷新界面导致行内展开页的分页页码被重置的问题
This commit is contained in:
@@ -401,17 +401,6 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
tableData (newVal, oldVal) {
|
tableData (newVal, oldVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
if (this.categoryId !== '') {
|
|
||||||
this.pageObj = {
|
|
||||||
pageNo: 1,
|
|
||||||
pageSize: 20,
|
|
||||||
total: 0,
|
|
||||||
resetPageNo: true
|
|
||||||
}
|
|
||||||
if (this.initExpandFlag) {
|
|
||||||
this.dropExpandChange('', [])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.showSelectedRow()
|
this.showSelectedRow()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -422,10 +411,12 @@ export default {
|
|||||||
}
|
}
|
||||||
this.reloadUrl(expandIdParam)
|
this.reloadUrl(expandIdParam)
|
||||||
|
|
||||||
const expandPage = {
|
if (this.initExpandFlag) {
|
||||||
expandPage: 1
|
const expandPage = {
|
||||||
|
expandPage: 1
|
||||||
|
}
|
||||||
|
this.reloadUrl(expandPage)
|
||||||
}
|
}
|
||||||
this.reloadUrl(expandPage)
|
|
||||||
|
|
||||||
const dateParam = {
|
const dateParam = {
|
||||||
startTime: dateFormatToUTC(this.timeRange[0]),
|
startTime: dateFormatToUTC(this.timeRange[0]),
|
||||||
@@ -507,11 +498,12 @@ export default {
|
|||||||
const obj = {
|
const obj = {
|
||||||
id: expandInfo[0]
|
id: expandInfo[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dropExpandChange(obj, expandInfo, 'init')
|
this.dropExpandChange(obj, expandInfo, 'init')
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.initExpandFlag = true
|
this.initExpandFlag = true
|
||||||
}, 1000)
|
}, 1500)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user