[update] 修改bug79790

This commit is contained in:
lideqin
2023-12-29 10:13:09 +08:00
parent e57a4c0438
commit bb70e8f4ab
3 changed files with 15 additions and 6 deletions
@@ -324,7 +324,10 @@ export default {
}) })
}, },
// 获取表格数据 // 获取表格数据
replacePage () { replacePage (arg) {
if (arg === 1) {
this.ipagination.current = 1
}
const query = { const query = {
...this.queryParam, ...this.queryParam,
...this.searchParam, ...this.searchParam,
@@ -351,7 +354,7 @@ export default {
this.replacePage() this.replacePage()
}, },
searchQuery () { searchQuery () {
this.replacePage() this.replacePage(1)
}, },
searchReset () { searchReset () {
this.queryParam = {} this.queryParam = {}
@@ -227,7 +227,10 @@ export default {
}) })
}, },
// 获取表格数据 // 获取表格数据
replacePage () { replacePage (arg) {
if (arg === 1) {
this.ipagination.current = 1
}
const query = { const query = {
...this.queryParam, ...this.queryParam,
...this.searchParam, ...this.searchParam,
@@ -254,7 +257,7 @@ export default {
this.replacePage() this.replacePage()
}, },
searchQuery () { searchQuery () {
this.replacePage() this.replacePage(1)
}, },
searchReset () { searchReset () {
this.queryParam = {} this.queryParam = {}
@@ -211,7 +211,10 @@ export default {
}) })
}, },
// 获取表格数据 // 获取表格数据
replacePage () { replacePage (arg) {
if (arg === 1) {
this.ipagination.current = 1
}
const query = { const query = {
...this.queryParam, ...this.queryParam,
...this.filters, ...this.filters,
@@ -238,7 +241,7 @@ export default {
}) })
}, },
searchQuery () { searchQuery () {
this.replacePage() this.replacePage(1)
}, },
searchReset () { searchReset () {
// 如果禁用来源,就不重置来源 // 如果禁用来源,就不重置来源