Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0dafaaf3
authored
Apr 15, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改跳转
1 parent
0f93875f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
src/views/customer/account/add/index.vue
src/views/customer/account/detail/index.vue
src/views/customer/account/index/index.vue
src/views/customer/account/add/index.vue
View file @
0dafaaf
...
@@ -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,7 +332,8 @@ export default {
...
@@ -331,7 +332,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('*新增账户类型')
this
.
$root
.
close
(
cfg
.
axios
.
accountUrl
.
slice
(
-
1
))
this
.
$root
.
to
(
cfg
.
axios
.
listUrl
)
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', '系统设置', '账户管理', '账户类型管理', '账户类型列表'])
...
...
src/views/customer/account/detail/index.vue
View file @
0dafaaf
...
@@ -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()
}
}
}
}
...
...
src/views/customer/account/index/index.vue
View file @
0dafaaf
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment