Commit 3a794ca1 by chenwq

sop,fromPage

1 parent 44049f85
......@@ -275,7 +275,7 @@ export default {
return {
// add-新增;edit-编辑;look-查看
addOrEdit: 'add',
fromPage: 'index',
fromPage: '/sop/index',
id: ''
}
}
......@@ -795,7 +795,7 @@ export default {
},
cancelJump() {
this.$router.push({
path: '/sop/' + this.routeInfo.fromPage
path: this.routeInfo.fromPage
})
},
......
......@@ -107,7 +107,7 @@ export default {
handleJump(path, row = {}) {
this.$router.push({
path: '/sop/' + path,
query: row ? { id: row.id, fromPage: 'index' } : ''
query: row ? { id: row.id, fromPage: '/sop/index' } : ''
})
},
......@@ -197,7 +197,7 @@ export default {
handleEdit(addOrEdit, row) {
var params = {
addOrEdit: addOrEdit,
fromPage: 'index',
fromPage: '/sop/index',
$title: encodeURI(addOrEdit == 'add' ? '新建SOP' : '编辑SOP')
}
addOrEdit != 'add' && (params.id = row.id)
......
......@@ -28,7 +28,7 @@ export default {
size: 'small',
routeInfo: {
id: '',
fromPage: 'index'
fromPage: '/sop/index'
}
}
},
......@@ -47,7 +47,7 @@ export default {
handleTabClick() { },
handleBack() {
this.$router.push({
path: '/sop/' + this.routeInfo.fromPage
path: this.routeInfo.fromPage
})
}
}
......
......@@ -137,7 +137,7 @@ export default {
handleJump(path, row = {}) {
this.$router.push({
path: '/sop/' + path,
query: row ? { id: row.id, fromPage: 'sopList' } : ''
query: row ? { id: row.id, fromPage: '/sop/sopList' } : ''
})
},
......@@ -166,7 +166,7 @@ export default {
handleEdit(addOrEdit, row) {
var params = {
addOrEdit: addOrEdit,
fromPage: 'sopList',
fromPage: '/sop/sopList',
$title: encodeURI(addOrEdit == 'add' ? '新建SOP' : '编辑SOP')
}
addOrEdit != 'add' && (params.id = row.id)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!