Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
e6a30879
提交
e6a30879
authored
11月 23, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add logout
上级
6f249b31
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
46 行增加
和
2 行删除
+46
-2
my.js
src/api/my.js
+6
-0
icon_logout.png
src/assets/images/icon_logout.png
+0
-0
index.vue
src/pages/my/account/index.vue
+3
-0
index.vue
src/pages/my/admission/index.vue
+3
-0
index.vue
src/pages/my/application/index.vue
+3
-2
index.vue
src/pages/my/interview/index.vue
+3
-0
layout.vue
src/pages/my/layout.vue
+21
-0
index.js
src/store/index.js
+7
-0
没有找到文件。
src/api/my.js
浏览文件 @
e6a30879
...
@@ -106,3 +106,9 @@ export function sendToProvider(letterId) {
...
@@ -106,3 +106,9 @@ export function sendToProvider(letterId) {
`/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-provider/
${
projectId
}
/
${
letterId
}
`
`/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-provider/
${
projectId
}
/
${
letterId
}
`
)
)
}
}
/**
* 退出登录
*/
export
function
logout
()
{
return
httpRequest
.
get
(
'/passport/rest/logout'
)
}
src/assets/images/icon_logout.png
0 → 100644
浏览文件 @
e6a30879
848 Bytes
src/pages/my/account/index.vue
浏览文件 @
e6a30879
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
@
error=
"handleError"
@
error=
"handleError"
@
back=
"$router.push('/my/account')"
@
back=
"$router.push('/my/account')"
>
>
<template
#
aside-append
>
<div
class=
"aside-logout"
@
click=
"$store.dispatch('logout')"
><span>
退出登录
</span></div>
</
template
>
<!-- 首页 -->
<!-- 首页 -->
<app-home
v-if=
"currentActive === 'account'"
/>
<app-home
v-if=
"currentActive === 'account'"
/>
...
...
src/pages/my/admission/index.vue
浏览文件 @
e6a30879
...
@@ -11,6 +11,9 @@
...
@@ -11,6 +11,9 @@
@
next=
"handleNext"
@
next=
"handleNext"
@
uploaded=
"getApplication"
@
uploaded=
"getApplication"
>
>
<template
#
aside-append
>
<div
class=
"aside-logout"
@
click=
"$store.dispatch('logout')"
><span>
退出登录
</span></div>
</
template
>
</vue-form>
</vue-form>
<el-dialog
<el-dialog
title=
"办理入学资料提交成功"
title=
"办理入学资料提交成功"
...
...
src/pages/my/application/index.vue
浏览文件 @
e6a30879
...
@@ -13,8 +13,9 @@
...
@@ -13,8 +13,9 @@
@
next=
"handleNext"
@
next=
"handleNext"
v-if=
"detail"
v-if=
"detail"
>
>
<template
#
aside-append
v-if=
"visible"
>
<template
#
aside-append
>
<div
class=
"aside-preview"
@
click=
"dialogVisible = true"
>
预览全部
</div>
<div
class=
"aside-preview"
@
click=
"dialogVisible = true"
v-if=
"visible"
>
预览全部
</div>
<div
class=
"aside-logout"
@
click=
"$store.dispatch('logout')"
><span>
退出登录
</span></div>
</
template
>
</
template
>
<!-- 报名缴费 -->
<!-- 报名缴费 -->
<
template
#
content
v-if=
"currentActive === 'application_pay'"
>
<
template
#
content
v-if=
"currentActive === 'application_pay'"
>
...
...
src/pages/my/interview/index.vue
浏览文件 @
e6a30879
...
@@ -10,6 +10,9 @@
...
@@ -10,6 +10,9 @@
@
prev=
"handlePrev"
@
prev=
"handlePrev"
@
next=
"handleNext"
@
next=
"handleNext"
>
>
<template
#
aside-append
>
<div
class=
"aside-logout"
@
click=
"$store.dispatch('logout')"
><span>
退出登录
</span></div>
</
template
>
</vue-form>
</vue-form>
<app-complete
:type=
"1"
v-model=
"completeVisible"
></app-complete>
<app-complete
:type=
"1"
v-model=
"completeVisible"
></app-complete>
<el-dialog
<el-dialog
...
...
src/pages/my/layout.vue
浏览文件 @
e6a30879
...
@@ -40,6 +40,27 @@ export default {
...
@@ -40,6 +40,27 @@ export default {
margin
:
20px
0
;
margin
:
20px
0
;
}
}
::v-deep
.v-layout-aside
{
::v-deep
.v-layout-aside
{
position
:
relative
;
min-height
:
410px
;
min-height
:
410px
;
align-self
:
flex-start
;
.aside-logout
{
span
{
display
:
inline-block
;
background
:
url('../../assets/images/icon_logout.png')
no-repeat
left
center
;
background-size
:
18px
17px
;
padding-left
:
33px
;
}
position
:
absolute
;
left
:
0
;
right
:
0
;
bottom
:
0
;
margin
:
0
10px
;
padding
:
12px
;
font-size
:
12px
;
color
:
#999
;
text-align
:
center
;
border-top
:
1px
solid
#eee
;
cursor
:
pointer
;
}
}
}
</
style
>
</
style
>
src/store/index.js
浏览文件 @
e6a30879
import
Vue
from
'vue'
import
Vue
from
'vue'
import
Vuex
from
'vuex'
import
Vuex
from
'vuex'
import
router
from
'@/router'
import
{
constantRoutes
}
from
'@/router/routes.js'
import
{
constantRoutes
}
from
'@/router/routes.js'
import
{
logout
}
from
'@/api/my'
Vue
.
use
(
Vuex
)
Vue
.
use
(
Vuex
)
...
@@ -22,6 +24,11 @@ export default new Vuex.Store({
...
@@ -22,6 +24,11 @@ export default new Vuex.Store({
commit
(
'SET_ROUTES'
,
constantRoutes
)
commit
(
'SET_ROUTES'
,
constantRoutes
)
resolve
(
constantRoutes
)
resolve
(
constantRoutes
)
})
})
},
logout
()
{
return
logout
().
then
(()
=>
{
router
.
push
(
'/'
)
})
}
}
}
}
})
})
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论