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
提交
f4c4b2c2
提交
f4c4b2c2
编写于
4月 18, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
status4Flag
上级
37d28fb9
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
35 行增加
和
4 行删除
+35
-4
add-manager.vue
src/views/education/add-manager.vue
+35
-4
未找到文件。
src/views/education/add-manager.vue
浏览文件 @
f4c4b2c2
...
...
@@ -174,7 +174,7 @@
<el-radio-group
size=
"small"
v-model=
"formData.scopeType"
:disabled=
"
peopleLevel == 'L3' || projectStatus != 1
"
:disabled=
"
showScopeType()
"
>
<el-radio
:label=
"0"
>
使用地区范围
</el-radio>
<el-radio
:label=
"1"
>
使用小生态范围
</el-radio>
...
...
@@ -464,6 +464,7 @@
placeholder=
"选择小生态"
v-if=
"idType != 2"
@
change=
"selectChangeEcology"
:disabled=
"status4Flag == 1"
>
<el-option
v-for=
"item in ecologySelect"
...
...
@@ -800,6 +801,7 @@ export default {
},
tagsComponent
:
[],
projectStatus
:
""
,
status4Flag
:
""
,
showStorage
:
false
,
//校验工具 数据
rulesComponent
:
{
...
...
@@ -989,6 +991,7 @@ export default {
this
.
setEditData
(
editData
);
this
.
idTypeProject
=
res
.
data
.
projectData
.
idType
;
this
.
projectStatus
=
res
.
data
.
projectData
.
projectStatus
;
this
.
status4Flag
=
res
.
data
.
projectData
.
status4Flag
;
if
(
this
.
projectStatus
==
1
)
{
this
.
showStorage
=
true
;
}
...
...
@@ -1090,6 +1093,8 @@ export default {
this
.
initRange
();
this
.
getDepartment
();
}
}
else
{
vm
.
$message
.
info
(
res
.
message
);
}
});
},
...
...
@@ -1212,6 +1217,23 @@ export default {
}
}
else
if
(
this
.
active
==
1
)
{
//暂存步骤2
if
(
this
.
formData
.
scopeType
==
1
)
{
//小生态暂存
if
(
this
.
formEcology
.
ecology
==
''
)
{
vm
.
$message
.
info
(
'完成'
);
}
else
{
let
req
=
{};
req
.
ecology
=
[];
req
.
ecology
[
0
]
=
this
.
formEcology
.
ecology
;
vm
.
POST
(
"portal/scope/v1/"
+
this
.
projectId
+
"/organization"
,
req
).
then
(
res
=>
{
//console.log('设定小生态范围',res);
vm
.
$message
.
info
(
res
.
message
);
}
);
}
return
;
}
if
(
this
.
tagsRegion
.
length
==
0
)
{
vm
.
$message
({
type
:
"info"
,
...
...
@@ -1264,7 +1286,7 @@ export default {
//点击完成
complete
()
{
//type 1:暂存 2:完成
if
(
this
.
projectStatus
==
4
)
{
if
(
this
.
status4Flag
==
1
)
{
vm
.
$message
.
info
(
"完成"
);
vm
.
$router
.
push
({
path
:
"item-manager"
});
return
;
...
...
@@ -1871,7 +1893,7 @@ export default {
//删除label节点 同步树结构
handleCloseTree
(
tag
)
{
if
(
this
.
projectStatus
!=
4
)
{
if
(
this
.
status4Flag
!=
1
)
{
this
.
tagsRegion
.
splice
(
this
.
tagsRegion
.
indexOf
(
tag
),
1
);
this
.
setCheckedKeys
(
this
.
tagsRegion
);
}
...
...
@@ -1901,7 +1923,7 @@ export default {
});
},
selectableTableList
(
row
,
index
)
{
if
(
this
.
projectStatus
==
4
)
{
if
(
this
.
status4Flag
==
1
)
{
if
(
row
.
status
==
1
)
{
//console.log("scopeReq",this.scopeReq);
return
false
;
...
...
@@ -2686,6 +2708,15 @@ export default {
}
return
list
;
},
//判断项目范围选择
showScopeType
()
{
if
(
this
.
projectStatus
==
''
||
this
.
projectStatus
==
1
)
{
if
(
this
.
peopleLevel
!=
'L3'
)
{
return
false
;
}
}
return
true
;
},
//选择小生态
selectChangeEcology
(
value
)
{
this
.
formEcology
.
pageNum
=
1
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录