Commit 0dafaaf3 by 胡悦

修改跳转

1 parent 0f93875f
...@@ -293,7 +293,8 @@ export default { ...@@ -293,7 +293,8 @@ export default {
const { code, data } = res const { code, data } = res
if (code == '0' && data) { if (code == '0' && data) {
this.notice.okTips() this.notice.okTips()
this.$root.close('*新增账户类型') this.$root.close(cfg.axios.accountUrl.slice(-1))
// this.$root.close('*新增账户类型')
// window.history.go(-1) // window.history.go(-1)
this.$root.to(cfg.axios.listUrl) this.$root.to(cfg.axios.listUrl)
} }
...@@ -331,8 +332,9 @@ export default { ...@@ -331,8 +332,9 @@ export default {
const { code, data } = res const { code, data } = res
if (code == '0' && data) { if (code == '0' && data) {
this.notice.okTips() this.notice.okTips()
this.$root.close('*新增账户类型') // this.$root.close('*新增账户类型')
this.$root.to(cfg.axios.listUrl) this.$root.close(cfg.axios.accountUrl.slice(-1))
this.$root.to(cfg.axios.listUrl)
// window.history.go(-1) // window.history.go(-1)
} }
}) })
...@@ -344,7 +346,8 @@ export default { ...@@ -344,7 +346,8 @@ export default {
break break
case 'cancel': case 'cancel':
// window.history.go(-1) // window.history.go(-1)
this.$root.close('*新增账户类型') this.$root.close(cfg.axios.accountUrl.slice(-1))
// this.$root.close('*新增账户类型')
console.log(cfg.axios.listUrl, '===-------------------===========') console.log(cfg.axios.listUrl, '===-------------------===========')
this.$root.to(cfg.axios.listUrl) this.$root.to(cfg.axios.listUrl)
// this.$parent.to(['MOCK系统G', '系统设置', '账户管理', '账户类型管理', '账户类型列表']) // this.$parent.to(['MOCK系统G', '系统设置', '账户管理', '账户类型管理', '账户类型列表'])
......
...@@ -169,7 +169,10 @@ export default { ...@@ -169,7 +169,10 @@ export default {
}, },
handleClick() {}, handleClick() {},
cancel() { cancel() {
window.history.go(-1) const cfg = this.$get_session_common_config()
// window.history.go(-1)
this.$root.close(cfg.axios.detailUrl.slice(-1))
this.$root.to(cfg.axios.listUrl)
// this.$$parent.close() // this.$$parent.close()
} }
} }
......
...@@ -114,12 +114,14 @@ export default { ...@@ -114,12 +114,14 @@ export default {
case 'create': case 'create':
console.log('create') console.log('create')
// window.location.href = `./add.html` // window.location.href = `./add.html`
this.$root.close('账户类型列表') // this.$root.close('账户类型列表')
this.$root.close(cfg.axios.listUrl.slice(-1))
this.$root.to(cfg.axios.accountUrl, { id: '' }) this.$root.to(cfg.axios.accountUrl, { id: '' })
break break
case 'edit': case 'edit':
// window.location.href = `./add.html?id=${scope.id}` // window.location.href = `./add.html?id=${scope.id}`
this.$root.close('账户类型列表') // this.$root.close('账户类型列表')
this.$root.close(cfg.axios.listUrl.slice(-1))
this.$root.to(cfg.axios.accountUrl, {id: scope.id}) this.$root.to(cfg.axios.accountUrl, {id: scope.id})
break break
// eslint-disable-next-line no-case-declarations // eslint-disable-next-line no-case-declarations
...@@ -153,7 +155,8 @@ export default { ...@@ -153,7 +155,8 @@ export default {
break break
case 'detail': case 'detail':
// window.location.href = `./detail.html?id=${scope.id}` // window.location.href = `./detail.html?id=${scope.id}`
this.$root.close('账户类型列表') this.$root.close(cfg.axios.listUrl.slice(-1))
// this.$root.close('账户类型列表')
this.$root.to(cfg.axios.detailUrl, {id: scope.id}) this.$root.to(cfg.axios.detailUrl, {id: scope.id})
break break
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!