Commit be4e1246 by chenwq

fix(退货管理): 修复路由参数传递问题并统一查询参数结构

修改add.vue以正确获取路由参数中的row对象
统一index.vue中跳转路由时的查询参数结构,添加$title字段
1 parent a611dfd9
......@@ -342,7 +342,7 @@ export default {
},
mounted() {
this.routeInfo = this.$route.query
this.routeInfo = this.$route.query.row
if (this.routeInfo.refundCode) {
this.oprType = 'edit'
this.editFirst = true
......
......@@ -352,13 +352,20 @@ export default {
})
},
handleAdd() {
this.$router.push({ path: '/sendBack/add' })
this.$router.push({
path: '/sendBack/add',
query: {
$title: '创建退货'
}
})
},
handleEdit(row) {
this.$router.push({
$title: '编辑退货',
path: '/sendBack/add',
query: row
query: {
$title: '编辑退货',
row: row
}
})
},
getOptionsList(formName, hasAll = true, refreshSigle) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!