Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
f4c777d4
提交
f4c777d4
编写于
4月 14, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
查看与编辑的权限
上级
afd55158
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
23 行增加
和
16 行删除
+23
-16
item-manager.vue
src/views/education/item-manager.vue
+23
-16
未找到文件。
src/views/education/item-manager.vue
浏览文件 @
f4c777d4
...
...
@@ -76,7 +76,13 @@
</el-form>
<el-table
class=
"item-table"
:data=
"tableData"
style=
"width: 100%"
>
<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"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
min-width=
"100"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span
@
click=
"handleCreateProject(1)"
style=
"color:#449284;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
v-else
>
{{
scope
.
row
.
projectName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"createdName"
label=
"创建人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectLeader"
label=
"项目负责人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectTypeValue"
label=
"项目类型"
align=
"center"
></el-table-column>
...
...
@@ -390,10 +396,12 @@ export default {
created
()
{
vm
=
this
;
vm
.
idType
=
localStorage
.
getItem
(
'storageIdType'
);
let
pageSize
=
vm
.
formInline
.
pageSize
;
console
.
log
(
'idType:'
,
vm
.
idType
);
if
(
this
.
$route
.
query
.
pageNum
){
this
.
formInline
=
{...
this
.
$store
.
state
.
common
.
itemManager
}
this
.
formInline
.
pageNo
=
parseInt
(
this
.
$route
.
query
.
pageNum
)
this
.
formInline
.
pageSize
=
pageSize
;
}
this
.
$nextTick
(
function
()
{;
this
.
getProjectList
();
...
...
@@ -429,14 +437,14 @@ export default {
this
.
centerDialogVisible
=
true
;
}
},
toPage
()
{
this
.
$router
.
push
(
"edit-manager?projectType=1
"
);
toPage
(
isPreview
)
{
this
.
$router
.
push
(
"edit-manager?projectType=1
&isPreview="
+
isPreview
);
},
toCmePage
()
{
this
.
$router
.
push
(
"edit-cme?projectType=2
"
);
toCmePage
(
isPreview
)
{
this
.
$router
.
push
(
"edit-cme?projectType=2
&isPreview="
+
isPreview
);
},
toTemplatePage
()
{
this
.
$router
.
push
(
"template-open?projectType=3
"
);
toTemplatePage
(
isPreview
)
{
this
.
$router
.
push
(
"template-open?projectType=3
&isPreview="
+
isPreview
);
},
toShield
(
row
)
{
this
.
$router
.
push
(
"item-shield?projectId="
+
row
.
id
);
...
...
@@ -445,13 +453,13 @@ export default {
this
.
centerDialogVisible
=
false
;
this
.
newProjectType
=
1
;
},
handleCreateProject
()
{
handleCreateProject
(
isPreview
)
{
if
(
this
.
newProjectType
==
1
)
{
// 1 普通项目 2 CME项目
this
.
toPage
();
this
.
toPage
(
isPreview
);
}
else
if
(
this
.
newProjectType
==
2
)
{
this
.
toCmePage
();
this
.
toCmePage
(
isPreview
);
}
else
if
(
this
.
newProjectType
==
3
)
{
this
.
toTemplatePage
();
this
.
toTemplatePage
(
isPreview
);
}
},
...
...
@@ -531,8 +539,6 @@ export default {
//按钮展示情况
showButton
(
row
,
type
)
{
if
(
!
row
.
isRoleOfOuter
)
return
false
;
// debugger;
// 按钮type类型: 0-编辑
// 1-暂存 2-完成 3-上架 4-通过 5-下架 6-拒绝
// 7- 提醒审核 8(2)-取消审核 9-删除
...
...
@@ -541,8 +547,6 @@ export default {
let
level
=
row
.
level
;
let
flag
=
false
;
let
typeStr
=
parseInt
(
type
);
//console.log("状态:"+projectStatus+ "等级:" + level + " 按钮类型:" + type);
//console.log('idType',idType);
let
buttonStatus
=
""
;
if
(
idType
==
1
)
{
//内部项目
...
...
@@ -567,7 +571,10 @@ export default {
flag
=
false
;
}
}
//flag = true;
// 添加新的判断逻辑
if
(
flag
&&
type
==
0
)
{
return
(
row
.
level
==
'L1'
&&
row
.
idType
==
1
)
||
(
row
.
level
==
'L2'
&&
row
.
idType
==
2
)
}
return
flag
;
},
handleCmeOperate
(
status
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录