提交 c1e7b806 authored 作者: matian's avatar matian

页面还原

上级 16d74e55
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
toPayDetail(row) { toPayDetail(row) {
this.$router.push({ this.$router.push({
name: 'paydetail', name: 'paydetail',
query: { params: {
row: row, row: row,
dealList: this.dealList dealList: this.dealList
} }
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
toDeal(row) { toDeal(row) {
this.$router.push({ this.$router.push({
name: 'deal', name: 'deal',
query: { params: {
dealList: this.dealList, dealList: this.dealList,
row: row row: row
} }
......
...@@ -119,8 +119,8 @@ export default { ...@@ -119,8 +119,8 @@ export default {
} }
}, },
mounted() { mounted() {
this.row = this.$route.query.row this.row = this.$route.params.row
this.dealList = this.$route.query.dealList this.dealList = this.$route.params.dealList
}, },
methods: { methods: {
handleChange(file, fileList) { handleChange(file, fileList) {
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</template> </template>
<!-- 操作 --> <!-- 操作 -->
<template v-slot:table-x="{ row }"> <template v-slot:table-x="{ row }">
<router-link target="_blank" :to="{ name: 'paymentView', query: { id: row.id } }"> <router-link target="_blank" :to="{ name: 'paymentView', params: { id: row.id } }">
<el-button>查看</el-button> <el-button>查看</el-button>
</router-link> </router-link>
<el-dropdown split-button type="primary" size="small" style="margin-left: 10px; margin-right: 10px"> <el-dropdown split-button type="primary" size="small" style="margin-left: 10px; margin-right: 10px">
......
...@@ -70,8 +70,8 @@ export default { ...@@ -70,8 +70,8 @@ export default {
} }
}, },
mounted() { mounted() {
this.row = this.$route.query.row this.row = this.$route.params.row
this.dealList = this.$route.query.dealList this.dealList = this.$route.params.dealList
} }
} }
</script> </script>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<app-card style="max-width: 100%"> <app-card style="max-width: 100%">
<app-list v-bind="tableOptions" ref="list"> <app-list v-bind="tableOptions" ref="list">
<template v-slot:table-x="{ row }"> <template v-slot:table-x="{ row }">
<router-link :to="{ name: 'invoiceView', query: { id: row.id } }"> <router-link :to="{ name: 'invoiceView', params: { id: row.id } }">
<el-button type="text">查看</el-button> <el-button type="text">查看</el-button>
</router-link> </router-link>
</template> </template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论