Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
f0cb4525
提交
f0cb4525
编写于
4月 14, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
菜单调整、查看权限
上级
52a8d399
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
37 行增加
和
16 行删除
+37
-16
item-manager.vue
src/views/education/item-manager.vue
+25
-10
slidebar.vue
src/views/layout/slidebar.vue
+12
-6
未找到文件。
src/views/education/item-manager.vue
浏览文件 @
f0cb4525
...
...
@@ -78,8 +78,9 @@
<el-table-column
prop=
"id"
label=
"ID编号"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
min-width=
"100"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span
@
click=
"handleCreateProject(1)"
style=
"color:rgb(2, 130, 132);cursor:pointer;"
v-if=
"(scope.row.level == 'L1' && scope.row.idType == 1)
|| (scope.row.level == 'L2' && scope.row.idType == 2)"
>
{{
scope
.
row
.
projectName
}}
</span>
<span
@
click=
"previewTemplate(1)"
style=
"color:rgb(2, 130, 132);cursor:pointer;"
v-if=
"scope.row.projectType == 3
&& (scope.row.level == 'L1' || scope.row.level == 'L2') "
>
{{
scope
.
row
.
projectName
}}
</span>
<span
v-else
>
{{
scope
.
row
.
projectName
}}
</span>
</
template
>
</el-table-column>
...
...
@@ -437,13 +438,13 @@ export default {
this
.
centerDialogVisible
=
true
;
}
},
toPage
(
isPreview
)
{
toPage
(
isPreview
=
0
)
{
this
.
$router
.
push
(
"edit-manager?projectType=1&isPreview="
+
isPreview
);
},
toCmePage
(
isPreview
)
{
toCmePage
(
isPreview
=
0
)
{
this
.
$router
.
push
(
"edit-cme?projectType=2&isPreview="
+
isPreview
);
},
toTemplatePage
(
isPreview
)
{
toTemplatePage
(
isPreview
=
0
)
{
this
.
$router
.
push
(
"template-open?projectType=3&isPreview="
+
isPreview
);
},
toShield
(
row
)
{
...
...
@@ -453,16 +454,30 @@ export default {
this
.
centerDialogVisible
=
false
;
this
.
newProjectType
=
1
;
},
handleCreateProject
(
isPreview
)
{
handleCreateProject
()
{
if
(
this
.
newProjectType
==
1
)
{
// 1 普通项目 2 CME项目
this
.
toPage
(
isPreview
);
this
.
toPage
();
}
else
if
(
this
.
newProjectType
==
2
)
{
this
.
toCmePage
(
isPreview
);
this
.
toCmePage
();
}
else
if
(
this
.
newProjectType
==
3
)
{
this
.
toTemplatePage
(
isPreview
);
this
.
toTemplatePage
();
}
},
previewTemplate
(
isPreview
)
{
this
.
toTemplatePage
(
isPreview
);
},
// handleCreateProject(isPreview) {
// if (this.newProjectType == 1) { // 1 普通项目 2 CME项目
// this.toPage(isPreview);
// } else if (this.newProjectType == 2) {
// this.toCmePage(isPreview);
// } else if(this.newProjectType == 3) {
// this.toTemplatePage(isPreview);
// }
// },
hanldeCmeClick
(
row
)
{
this
.
currentRow
=
row
;
let
status
=
row
.
projectStatus
;
...
...
src/views/layout/slidebar.vue
浏览文件 @
f0cb4525
...
...
@@ -86,9 +86,9 @@
index
:
'item'
,
subs
:
[
{
title
:
'
项目组件
'
,
icon
:
'el-icon-
setting
'
,
index
:
'
item-component
'
title
:
'
下载报告
'
,
icon
:
'el-icon-
document
'
,
index
:
'
export-download
'
},
{
title
:
'项目管理'
,
...
...
@@ -216,9 +216,10 @@
}
},
storageIdType
(
val
,
ov
){
if
(
val
==
1
){
if
(
val
==
1
){
vm
.
setEntrySide
();
}
else
if
(
val
==
2
)
{
vm
.
items
[
1
].
title
=
'教育培训'
;
vm
.
setFollowSide
();
}
},
...
...
@@ -277,7 +278,11 @@
vm
.
items
.
push
(
followSider
);
},
setEntrySide
()
{
console
.
log
(
222
);
const
itemComponent
=
{
title
:
'项目组件'
,
icon
:
'el-icon-setting'
,
index
:
'item-component'
};
const
followSider
=
{
title
:
'入口管理'
,
icon
:
'el-icon-setting'
,
...
...
@@ -288,7 +293,6 @@
icon
:
'el-icon-setting'
,
index
:
'template-manager'
};
const
eduRole
=
{
title
:
'角色权限'
,
icon
:
'el-icon-menu'
,
...
...
@@ -301,6 +305,8 @@
}
]
}
vm
.
items
[
1
].
subs
.
push
(
itemComponent
);
vm
.
items
[
1
].
subs
.
push
(
templateManager
);
vm
.
items
[
1
].
subs
.
push
(
followSider
);
vm
.
items
.
push
(
eduRole
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录