fix:修改 底部弹窗接口调用路由参数的问题

This commit is contained in:
zhangyu
2022-03-10 10:20:08 +08:00
parent 5fa7adf285
commit 72b16c9b5e
2 changed files with 10 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
<alertMessageTable <alertMessageTable
ref="dataTable" ref="dataTable"
:api="url" :api="url"
:orderByFa="'id'" :orderByFa="orderBy"
:loading="tools.loading" :loading="tools.loading"
:custom-table-title="tools.customTableTitle" :custom-table-title="tools.customTableTitle"
:height="subTableHeight" :height="subTableHeight"
@@ -156,6 +156,14 @@ export default {
this.getTableData() this.getTableData()
} }
} }
},
orderBy: {
immediate: true,
handler (n) {
if (n) {
console.log(n)
}
}
} }
}, },
data () { data () {

View File

@@ -337,7 +337,7 @@ export default {
}, },
created () { created () {
const path = this.$route.fullPath.match(/\/(\S*)\?/)[1] const path = this.$route.fullPath.match(/\/(\S*)\?/)[1]
if (this.$route.query.orderBy) { if (this.$route.query.orderBy && !this.isSubList) {
this.orderBy = this.$route.query.orderBy this.orderBy = this.$route.query.orderBy
} }
let searchKeys = {} let searchKeys = {}