Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
9f9127c4
提交
9f9127c4
编写于
4月 17, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
弹框等权限
上级
f530b693
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
51 行增加
和
42 行删除
+51
-42
mock.js
src/utils/mock.js
+2
-2
item-manager.vue
src/views/education/item-manager.vue
+49
-40
未找到文件。
src/utils/mock.js
浏览文件 @
9f9127c4
...
...
@@ -121,7 +121,7 @@ let buttonStatusIn = [
//待审核、审批中
{
L1
:
"46"
,
L2
:
"78"
,
L3
:
"A"
},
//已上架
{
L1
:
"
5"
,
L2
:
"
5"
,
L3
:
"A"
},
{
L1
:
"
05"
,
L2
:
"0
5"
,
L3
:
"A"
},
//已下架
{
L1
:
"039"
,
L2
:
"039"
,
L3
:
"A"
},
//已拒绝/未上架
...
...
@@ -136,7 +136,7 @@ let buttonStatusOut = [
//待审核、审批中
{
L1
:
"46"
,
L2
:
"78"
,
L3
:
"A"
},
//已上架
{
L1
:
"
05"
,
L2
:
"0
5"
,
L3
:
"A"
},
{
L1
:
"
5"
,
L2
:
"
5"
,
L3
:
"A"
},
//已下架
{
L1
:
"039"
,
L2
:
"039"
,
L3
:
"A"
},
//已拒绝/未上架
...
...
src/views/education/item-manager.vue
浏览文件 @
9f9127c4
...
...
@@ -139,7 +139,7 @@
size=
"small"
>
发布
</el-button>
<el-button
@
click=
"changeStatus(scope.row,4)"
@
click=
"changeStatus
ForSP
(scope.row,4)"
v-show=
"showButton(scope.row,4)"
type=
"primary"
size=
"small"
...
...
@@ -164,7 +164,7 @@
size=
"small"
>
取消审核
</el-button>
<el-button
@
click=
"changeStatus(scope.row,6)"
@
click=
"changeStatus
ForSP
(scope.row,6)"
v-show=
"showButton(scope.row,6)"
type=
"primary"
size=
"small"
...
...
@@ -281,6 +281,22 @@
<el-button
type=
"primary"
@
click=
"hideDeleteFrom"
>
取 消
</el-button>
</span>
</el-dialog>
<!-- 修改状态 -->
<el-dialog
:title=
"changeStatusConfig.title"
:show-close=
false
:visible
.
sync=
"changeStatusVisible"
:close-on-click-modal=
"false"
width=
"600px"
center
>
<p
style=
"text-align: center;"
>
{{changeStatusConfig.message}}
</p>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"changeStatusVisible=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"changeStatusPre"
>
确 认
</el-button>
</span>
</el-dialog>
</div>
</div>
</template>
...
...
@@ -299,6 +315,14 @@ export default {
},
data
()
{
return
{
changeStatusVisible
:
false
,
currentRow
:
null
,
currentType
:
4
,
changeStatusConfig
:
{
title
:
'确认要下架该项目模板吗?'
,
message
:
'下架后,用户新建项目则无法看到该模版'
,
},
idValue
:
''
,
curmbFirst
:
"教培项目"
,
curmbSecond
:
"项目管理"
,
...
...
@@ -623,6 +647,26 @@ export default {
return
text
;
// return true / false;
},
changeStatusPre
()
{
this
.
changeStatus
(
this
.
currentRow
,
this
.
currentType
);
this
.
changeStatusVisible
=
false
;
},
//
changeStatusForSP
(
row
,
type
)
{
this
.
currentRow
=
row
;
this
.
currentType
=
type
;
if
(
status
==
4
)
{
title
=
'确认通过该项目模版审核吗?'
;
message
=
'审核通过后,用户可在工作站查看或购买该项目模版'
;
}
else
if
(
status
==
6
)
{
title
=
'确认要拒绝该项目模版吗?'
;
message
=
'拒绝后该模版将从列表中消失'
;
}
this
.
changeStatusVisible
=
true
;
},
//改变状态
changeStatus
(
row
,
type
)
{
let
projectId
=
row
.
id
;
...
...
@@ -644,49 +688,14 @@ export default {
warnType
:
1
};
vm
.
GET
(
"portal/portalCheck/remindPortalCheck"
,
req
).
then
(
res
=>
{
vm
.
$message
.
info
(
res
.
message
);
vm
.
getProjectList
();
if
(
res
.
code
==
"000000"
)
{
console
.
log
(
res
);
//vm.getProjectList();
vm
.
getProjectList
();
}
else
{
vm
.
$message
.
info
(
res
.
message
);
}
});
}
else
{
// if (type === 8) {
// //取消审批值对应2
// type = 2;
// let req = {
// portalProjectId: projectId,
// warnType: 5
// };
// vm.GET("portal/portalCheck/remindPortalCheck", req).then(res => {
// vm.$message.info(res.message);
// if (res.code == "000000") {
// console.log(res);
// vm.getProjectList();
// }
// });
// }
// if (type == 4 || type == 6) {
// //发送消息
// let warnType = "";
// if (type == 4) {
// warnType = 3;
// } else if (type == 6) {
// warnType = 4;
// }
// let req = {
// portalProjectId: projectId,
// warnType: warnType
// };
// vm.GET("portal/portalCheck/remindPortalCheck", req).then(res => {
// vm.$message.info(res.message);
// if (res.code == "000000") {
// console.log(res);
// vm.getProjectList();
// }
// });
// }
let
req
=
{
projectId
:
projectId
,
changeStatus
:
vm
.
getType
(
type
)
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录