Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
cc29242c
Commit
cc29242c
authored
Apr 17, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成功之后跳转
parent
05360626
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
31 deletions
+13
-31
success.vue
src/views/mobile/loginregister/success.vue
+12
-4
reqDetail.vue
src/views/mobile/requirement/reqDetail.vue
+1
-27
No files found.
src/views/mobile/loginregister/success.vue
View file @
cc29242c
...
...
@@ -14,8 +14,8 @@
<div
class=
"successButton"
v-if=
"loginVisible||authVisible"
>
<el-button
type=
"primary"
@
click=
"handleToIndex(1)"
>
{{
$t
(
"topNav.findProject"
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleToIndex(2)"
>
{{
$t
(
"topNav.findCustomer"
)
}}
</el-button>
<el-button
v-if=
"userInfo&&
userInfo.empType == 0
"
style=
"margin-top: 0.3rem"
type=
"warning"
@
click=
"handleToIndex(5)"
>
{{
$t
(
"topNav.submitPro"
)
}}
</el-button>
<el-button
v-if=
"userInfo&&
userInfo.empType ==
1"
style=
"margin-top: 0.3rem"
type=
"warning"
@
click=
"handleToIndex(6)"
>
{{
$t
(
"commonTitle.sendRequire"
)
}}
</el-button>
<el-button
v-if=
"userInfo&&
publicFun.getUserDetailRoleFunc()==1
"
style=
"margin-top: 0.3rem"
type=
"warning"
@
click=
"handleToIndex(5)"
>
{{
$t
(
"topNav.submitPro"
)
}}
</el-button>
<el-button
v-if=
"userInfo&&
publicFun.getUserDetailRoleFunc()==
1"
style=
"margin-top: 0.3rem"
type=
"warning"
@
click=
"handleToIndex(6)"
>
{{
$t
(
"commonTitle.sendRequire"
)
}}
</el-button>
</div>
<div
class=
"successTitle"
v-if=
"registerVisible"
>
...
...
@@ -55,9 +55,17 @@
},
methods
:{
handleToIndex
(
type
){
if
(
type
==
1
)
this
.
$router
.
replace
({
path
:
"/projectlist"
,
query
:{
state
:
true
}});
//
if
(
type
==
1
)
{
globalMsg
.
$emit
(
"sendContactIndex"
,
1
)
globalMsg
.
$emit
(
'sendSelected'
,
"contact"
);
this
.
$router
.
replace
({
path
:
"/tabconnect"
,
query
:{
tabIndex
:
1
}});
}
//
if
(
type
==
2
)
{
this
.
$router
.
push
(
"/phoneBusinessList"
);
globalMsg
.
$emit
(
"sendContactIndex"
,
2
)
globalMsg
.
$emit
(
'sendSelected'
,
"contact"
);
this
.
$router
.
replace
({
path
:
"/tabconnect"
,
query
:{
tabIndex
:
2
}});
// this.$router.push("/phoneBusinessList");
}
if
(
type
==
3
){
this
.
$router
.
push
(
"/mobileAddAuth"
)
...
...
src/views/mobile/requirement/reqDetail.vue
View file @
cc29242c
...
...
@@ -197,33 +197,7 @@
},
handleToCom
(){
if
(
this
.
userInfo
.
empType
==
1
){
this
.
$router
.
push
(
'/reminder'
)
}
else
if
(
this
.
userInfo
.
empType
==
0
){
let
params
=
{
pagination
:{
numberOfPages
:
1
,
number
:
10
},
search
:{}
};
api
.
selectProjected
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
if
(
res
.
result
.
records
.
length
==
0
){
this
.
$router
.
push
(
'/projectrelease'
)
}
else
{
this
.
$router
.
push
(
'/reminder'
)
}
}
else
{
this
.
$toast
(
res
.
msg
);
}
}).
catch
((
err
)
=>
{
this
.
$toast
(
err
);
})
}
this
.
$router
.
push
(
'/reminder'
);
},
handleTrans
(
flag
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment