Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
f77601f8
提交
f77601f8
编写于
9月 08, 2020
作者:
guofeng.chen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改小圈选择
上级
d6d15d5e
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
35 行增加
和
23 行删除
+35
-23
edit-custom.vue
src/views/education/edit-custom.vue
+3
-1
edit-manager.vue
src/views/education/edit-manager.vue
+32
-22
未找到文件。
src/views/education/edit-custom.vue
浏览文件 @
f77601f8
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<el-step
title=
"选择学员范围"
>
3
</el-step>
<el-step
title=
"选择学员范围"
>
3
</el-step>
</el-steps>
</el-steps>
</el-col>
</el-col>
<div>
<div
style=
"white-space: nowrap"
>
<div
v-if=
"!canNext"
class=
"dis-btn"
>
下一步
</div>
<div
v-if=
"!canNext"
class=
"dis-btn"
>
下一步
</div>
<el-button
class=
"dis-btn-b"
v-if=
"active != 0 && projectStatus == 1 && isPreview != 1"
size=
"small"
@
click=
"save"
>
暂存
</el-button>
<el-button
class=
"dis-btn-b"
v-if=
"active != 0 && projectStatus == 1 && isPreview != 1"
size=
"small"
@
click=
"save"
>
暂存
</el-button>
<el-button
class=
"dis-btn-b"
v-if=
"active !== 2 && canNext"
size=
"small"
type=
"primary"
@
click=
"nextStep"
>
下一步
</el-button>
<el-button
class=
"dis-btn-b"
v-if=
"active !== 2 && canNext"
size=
"small"
type=
"primary"
@
click=
"nextStep"
>
下一步
</el-button>
...
@@ -463,6 +463,8 @@ export default {
...
@@ -463,6 +463,8 @@ export default {
// 查看时,点击下一步直接跳
// 查看时,点击下一步直接跳
if
(
vm
.
isPreview
==
1
)
{
if
(
vm
.
isPreview
==
1
)
{
vm
.
active
=
2
;
vm
.
active
=
2
;
this
.
getCircleList
();
this
.
getCircleData
();
return
;
return
;
}
}
// 调用项目信息中的下一步操作
// 调用项目信息中的下一步操作
...
...
src/views/education/edit-manager.vue
浏览文件 @
f77601f8
...
@@ -1962,19 +1962,20 @@ export default {
...
@@ -1962,19 +1962,20 @@ export default {
//暂存步骤2
//暂存步骤2
if (this.formData.scopeType == 1) {
if (this.formData.scopeType == 1) {
//小生态暂存
//小生态暂存
if (this.formEcology.ecology == "") {
// if (this.formEcology.ecology == "") {
vm.$message.info("
完成
");
// vm.$message.info("
完成
");
} else {
// } else {
let req = {};
// let req = {};
req.ecology = [];
// req.ecology = [];
req.ecology[0] = this.formEcology.ecology;
// req.ecology[0] = this.formEcology.ecology;
vm
// vm
.POST("
portal
/
scope
/
v1
/
" + this.projectId + "
/
organization
", req)
// .POST("
portal
/
scope
/
v1
/
" + this.projectId + "
/
organization
", req)
.then(res => {
// .then(res => {
//console.log('设定小生态范围',res);
// //console.log('设定小生态范围',res);
vm.$message.info(res.message);
// vm.$message.info(res.message);
});
// });
}
// }
this.sendCircleData('storage');
return;
return;
}
}
if (this.tagsRegion.length == 0) {
if (this.tagsRegion.length == 0) {
...
@@ -2124,7 +2125,7 @@ export default {
...
@@ -2124,7 +2125,7 @@ export default {
// }
// }
// });
// });
// 设定小圈范围
// 设定小圈范围
this
.
sendCircleData
();
this
.
sendCircleData
(
'next'
);
return
;
return
;
}
}
if
(
this
.
idType
==
1
)
{
if
(
this
.
idType
==
1
)
{
...
@@ -3345,13 +3346,15 @@ export default {
...
@@ -3345,13 +3346,15 @@ export default {
});
});
},
},
// 提交、修改圈子数据
// 提交、修改圈子数据
sendCircleData
()
{
sendCircleData
(
type
=
'next'
)
{
const
{
microecologyId
,
groupType
,
groupIds
}
=
this
.
formCircle
;
const
{
microecologyId
,
groupType
,
groupIds
}
=
this
.
formCircle
;
if
(
!
microecologyId
)
{
if
(
!
microecologyId
)
{
vm
.
$message
({
if
(
type
==
'next'
)
{
type
:
"info"
,
vm
.
$message
({
message
:
"请选择关联小圈"
type
:
"info"
,
});
message
:
"请选择关联小圈"
});
}
return
;
return
;
}
}
const
postData
=
{
const
postData
=
{
...
@@ -3364,9 +3367,16 @@ export default {
...
@@ -3364,9 +3367,16 @@ export default {
vm
.
POST
(
"portal/portalMicroEcology/relation/saveOrUpdate"
,
postData
).
then
(
res
=>
{
vm
.
POST
(
"portal/portalMicroEcology/relation/saveOrUpdate"
,
postData
).
then
(
res
=>
{
closeLoading
(
vm
);
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
this
.
active
++
;
if
(
type
==
'next'
)
{
this
.
stepData
=
[
false
,
false
,
true
];
this
.
active
++
;
this
.
tagDrop
();
this
.
stepData
=
[
false
,
false
,
true
];
this
.
tagDrop
();
}
else
if
(
type
==
'storage'
)
{
vm
.
$message
({
type
:
"success"
,
message
:
"暂存成功"
});
}
}
}
});
});
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录