fix:修改 底部弹窗接口调用路由参数的问题
This commit is contained in:
@@ -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 () {
|
||||||
|
|||||||
@@ -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 = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user