Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
1bd0b00b
提交
1bd0b00b
编写于
3月 19, 2020
作者:
ping zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
DISCUSS 组件管理系统
导航后台接口获取,不用写死
上级
db048c7f
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
31 行增加
和
37 行删除
+31
-37
env-config.js
src/utils/env-config.js
+5
-5
header.vue
src/views/layout/header.vue
+2
-1
slidebar.vue
src/views/layout/slidebar.vue
+24
-31
未找到文件。
src/utils/env-config.js
浏览文件 @
1bd0b00b
...
@@ -6,11 +6,11 @@ export const envConfig = {
...
@@ -6,11 +6,11 @@ export const envConfig = {
// baseUrl: 'https://dev-sc.yunqueyi.com/',
// baseUrl: 'https://dev-sc.yunqueyi.com/',
// // baseUrl: 'http://10.177.15.180:10202/',
// // baseUrl: 'http://10.177.15.180:10202/',
// // baseUrl: 'http://192.168.140.14:10201/',
// // baseUrl: 'http://192.168.140.14:10201/',
// baseUrl: 'https://test1-sc.yunqueyi.com/',
// baseUrl: 'https://test1-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
baseUrl
:
'https://
dev
-sc.yunqueyi.com'
,
baseUrl
:
'https://
uat
-sc.yunqueyi.com'
,
qiniuFileUrl
:
"https://dev-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"https://dev-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
...
@@ -48,7 +48,7 @@ export const envConfig = {
...
@@ -48,7 +48,7 @@ export const envConfig = {
innerLoginUrl
:
'https://uat-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
innerLoginUrl
:
'https://uat-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html'
,
yuequeyiIndexUrl
:
'https://uat.yunqueyi.com/pica_index.html'
yuequeyiIndexUrl
:
'https://uat.yunqueyi.com/pica_index.html'
},
},
pro
:
{
pro
:
{
baseUrl
:
'https://sc.yunqueyi.com'
,
baseUrl
:
'https://sc.yunqueyi.com'
,
qiniuFileUrl
:
"https://sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"https://sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://video.yunqueyi.com"
,
qiniuResourceUrl
:
"https://video.yunqueyi.com"
,
...
...
src/views/layout/header.vue
浏览文件 @
1bd0b00b
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
},
},
watch
:
{
watch
:
{
authList
(
newVal
,
oldVal
){
authList
(
newVal
,
oldVal
){
}
}
},
},
created
()
{
created
()
{
...
@@ -67,6 +67,7 @@ export default {
...
@@ -67,6 +67,7 @@ export default {
token
:
localStorage
.
getItem
(
'storageToken'
)
token
:
localStorage
.
getItem
(
'storageToken'
)
}
}
vm
.
POST
(
'/contents/login/log_out'
,
req
).
then
((
res
)
=>
{
vm
.
POST
(
'/contents/login/log_out'
,
req
).
then
((
res
)
=>
{
localStorage
.
removeItem
(
'MSG_CENTER_NAVS'
)
localStorage
.
removeItem
(
'storageToken'
)
localStorage
.
removeItem
(
'storageToken'
)
window
.
location
.
href
=
getInnerLoginUrl
()
window
.
location
.
href
=
getInnerLoginUrl
()
//logout()
//logout()
...
...
src/views/layout/slidebar.vue
浏览文件 @
1bd0b00b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
id=
"slidebar-container"
class=
"slidebar-container"
>
<div
id=
"slidebar-container"
class=
"slidebar-container"
>
<el-menu
:default-active=
"onRoutes"
class=
"el-menu-vertical-demo"
theme=
"dark"
unique-opened
router
>
<el-menu
:default-active=
"onRoutes"
class=
"el-menu-vertical-demo"
theme=
"dark"
unique-opened
router
>
<template
v-for=
"(item,_index) in items"
>
<template
v-for=
"(item,_index) in items"
>
<template
v-if=
"item.subs"
>
<template
v-if=
"item.subs
&& item.subs.length
"
>
<el-submenu
:index=
" 'index_' + _index"
:key=
"item.index"
>
<el-submenu
:index=
" 'index_' + _index"
:key=
"item.index"
>
<template
slot=
"title"
><i
:class=
"item.icon"
></i>
{{
item
.
title
}}
</
template
>
<template
slot=
"title"
><i
:class=
"item.icon"
></i>
{{
item
.
title
}}
</
template
>
<el-menu-item
v-for=
"(subItem,i) in item.subs"
:key=
"i"
:index=
"subItem.index"
>
<el-menu-item
v-for=
"(subItem,i) in item.subs"
:key=
"i"
:index=
"subItem.index"
>
...
@@ -33,31 +33,8 @@ export default {
...
@@ -33,31 +33,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
items
:
[
items
:
[],
{
// items:[{title:'组件',icon:'el-icon-menu',index:'item',subs:[{title:'讨论组件',icon:'el-icon-setting',index:'discuss-list'},{title:"问卷管理",icon:"el-icon-setting",index:"question-naire"},{title:"举报管理",icon:"el-icon-setting",index:"report-set"}]},]
title
:
'组件'
,
icon
:
'el-icon-menu'
,
index
:
'item'
,
subs
:
[
{
title
:
'讨论组件'
,
icon
:
'el-icon-setting'
,
index
:
'discuss-list'
},
{
title
:
'问卷管理'
,
icon
:
'el-icon-setting'
,
index
:
'question-naire'
},
{
title
:
'举报管理'
,
icon
:
'el-icon-setting'
,
index
:
'report-set'
}
]
},
]
}
}
},
},
computed
:
{
computed
:
{
...
@@ -67,9 +44,25 @@ export default {
...
@@ -67,9 +44,25 @@ export default {
},
},
created
()
{
created
()
{
vm
=
this
vm
=
this
const
navs
=
localStorage
.
getItem
(
'MSG_CENTER_NAVS'
)
if
(
navs
!=
null
)
{
vm
.
items
=
JSON
.
parse
(
navs
)
}
else
{
vm
.
getNav
()
}
},
},
methods
:
{
methods
:
{
getNav
()
{
this
.
POST
(
'/basic-data/menu/list'
,
{
systemType
:
26
}).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
const
{
vueMenuDtos
}
=
res
.
data
;
this
.
items
=
vueMenuDtos
;
localStorage
.
setItem
(
'MSG_CENTER_NAVS'
,
JSON
.
stringify
(
vueMenuDtos
));
}
});
}
}
}
}
}
</
script
>
</
script
>
...
@@ -95,15 +88,15 @@ export default {
...
@@ -95,15 +88,15 @@ export default {
color
:
#fff
;
color
:
#fff
;
background
:
#509284
!
important
background
:
#509284
!
important
}
}
.el-menu-item
:hover
,
.el-menu-item
:hover
,
.el-submenu__title
:hover
,
.el-submenu__title
:hover
,
.slidebar-container
.el-menu
.el-menu-item
:hover
,
.slidebar-container
.el-menu
.el-menu-item
:hover
,
.slidebar-container
.el-menu
.el-submenu__title
:hover
{
.slidebar-container
.el-menu
.el-submenu__title
:hover
{
color
:
#fff
;
color
:
#fff
;
background
:
#06232C
;
background
:
#06232C
;
}
}
// .el-menu-item:focus, .el-menu-item:hover {
// .el-menu-item:focus, .el-menu-item:hover {
// background: #06232C !important;
// background: #06232C !important;
// }
// }
}
}
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录