Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-admin-protocol-center
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-admin-protocol-center
提交
c2edcf09
提交
c2edcf09
编写于
3月 24, 2020
作者:
张平
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev-nav-20200319' into 'release'
Dev nav 20200319 导航权限设置代码合并 codereviewer:ping.zhang See merge request
!1
上级
07af615d
0c825277
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
47 行增加
和
62 行删除
+47
-62
env-config.js
src/utils/env-config.js
+4
-4
header.vue
src/views/layout/header.vue
+1
-8
slidebar.vue
src/views/layout/slidebar.vue
+42
-50
未找到文件。
src/utils/env-config.js
浏览文件 @
c2edcf09
...
@@ -6,10 +6,10 @@ export const envConfig = {
...
@@ -6,10 +6,10 @@ 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 = {
yuequeyiIndexUrl
:
'https://uat.yunqueyi.com/pica_index.html'
,
yuequeyiIndexUrl
:
'https://uat.yunqueyi.com/pica_index.html'
,
excelUrl
:
'https://uat-sc.yunqueyi.com/raytheon/excel/template/1'
,
excelUrl
:
'https://uat-sc.yunqueyi.com/raytheon/excel/template/1'
,
},
},
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
浏览文件 @
c2edcf09
...
@@ -69,14 +69,7 @@ export default {
...
@@ -69,14 +69,7 @@ export default {
},
},
handleCommand
(
command
)
{
handleCommand
(
command
)
{
if
(
command
===
'logout'
)
{
if
(
command
===
'logout'
)
{
// let req = {token: localStorage.getItem("storageToken")};
sessionStorage
.
removeItem
(
'PROT_CENTER_NAVS'
)
// let logOutPromise = vm.removeToken(req);
// logOutPromise.then(function (res) {
// logout();
// }).catch(function (error) {
// console.log('登出失败:'+error);
// logout();
// });
localStorage
.
removeItem
(
'storageToken'
)
localStorage
.
removeItem
(
'storageToken'
)
if
(
vm
.
idType
==
1
)
{
// 内部
if
(
vm
.
idType
==
1
)
{
// 内部
window
.
location
.
href
=
getInnerLoginUrl
()
window
.
location
.
href
=
getInnerLoginUrl
()
...
...
src/views/layout/slidebar.vue
浏览文件 @
c2edcf09
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
router
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"
>
<template
slot=
"title"
>
<i
:class=
"item.icon"
></i>
<i
:class=
"item.icon"
></i>
...
@@ -47,38 +47,8 @@ export default {
...
@@ -47,38 +47,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
items
:
[
items
:
[]
// {
// items: [{ title: '协议管理', icon: 'el-icon-history-push', index: 'protocol-list' }]
// title: "黑名单",
// icon: "el-icon-blacklist",
// index: "blacklist"
// },
// {
// title: "疲劳度控制",
// icon: "el-icon-set-up",
// index: "fatigue-control"
// },
{
title
:
"协议管理"
,
icon
:
"el-icon-history-push"
,
index
:
"protocol-list"
},
// {
// title: "创建协议",
// icon: "el-icon-document-add",
// index: "create-protocol"
// },
// {
// title: "查看协议",
// icon: "el-icon-chat-line-square",
// index: "protocol-detail"
// },
// {
// title: "历史版本",
// icon: "el-icon-chat-line-square",
// index: "protocol-history"
// }
]
};
};
},
},
computed
:
{
computed
:
{
...
@@ -88,24 +58,46 @@ export default {
...
@@ -88,24 +58,46 @@ export default {
},
},
created
()
{
created
()
{
vm
=
this
;
vm
=
this
;
const
navs
=
sessionStorage
.
getItem
(
'PROT_CENTER_NAVS'
);
vm
.
getNav
();
},
},
watch
:
{
watch
:
{},
// authList(newVal, oldVal) {
methods
:
{
// if (!newVal.P001) {
getNav
()
{
// // 项目管理
this
.
POST
(
'basic-data/menu/list'
,
{
systemType
:
29
}).
then
(
res
=>
{
// vm.items[1].subs[1].index = "blank";
if
(
res
.
code
==
'000000'
)
{
// }
const
{
vueMenuDtos
}
=
res
.
data
;
// if (!newVal.P002) {
// // 组件管理
this
.
items
=
vueMenuDtos
;
// vm.items[1].subs[0].index = "blank";
sessionStorage
.
setItem
(
'PROT_CENTER_NAVS'
,
JSON
.
stringify
(
vueMenuDtos
));
// }
// 做当前路由无权限时处理
// if (!newVal.P003) {
this
.
checkAuth
(
this
.
$route
.
path
.
split
(
'/'
)[
1
],
vueMenuDtos
);
// // 角色管理
}
// vm.items[2].subs[0].index = "blank";
});
// }
},
// }
checkAuth
(
path
,
navs
)
{
},
let
navList
=
getNavs
(
navs
);
methods
:
{}
function
getNavs
(
arr
)
{
let
nvs
=
[];
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
const
nav
=
arr
[
i
];
const
subs
=
nav
.
subs
;
if
(
subs
.
length
)
{
nvs
=
nvs
.
concat
(
getNavs
(
subs
));
}
else
{
nvs
.
push
(
nav
.
index
);
}
}
return
nvs
;
}
if
(
navList
.
indexOf
(
path
)
==
-
1
)
{
this
.
$router
.
push
(
`/
${
navList
[
0
]}
`
);
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录