Commit be4e1246 by chenwq

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

修改add.vue以正确获取路由参数中的row对象
统一index.vue中跳转路由时的查询参数结构,添加$title字段
1 parent a611dfd9
...@@ -342,7 +342,7 @@ export default { ...@@ -342,7 +342,7 @@ export default {
}, },
mounted() { mounted() {
this.routeInfo = this.$route.query this.routeInfo = this.$route.query.row
if (this.routeInfo.refundCode) { if (this.routeInfo.refundCode) {
this.oprType = 'edit' this.oprType = 'edit'
this.editFirst = true this.editFirst = true
......
...@@ -352,13 +352,20 @@ export default { ...@@ -352,13 +352,20 @@ export default {
}) })
}, },
handleAdd() { handleAdd() {
this.$router.push({ path: '/sendBack/add' }) this.$router.push({
path: '/sendBack/add',
query: {
$title: '创建退货'
}
})
}, },
handleEdit(row) { handleEdit(row) {
this.$router.push({ this.$router.push({
$title: '编辑退货',
path: '/sendBack/add', path: '/sendBack/add',
query: row query: {
$title: '编辑退货',
row: row
}
}) })
}, },
getOptionsList(formName, hasAll = true, refreshSigle) { 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!