提交 7561843e 编写于 作者: haochangdi's avatar haochangdi

Merge branch 'dev-mvp-20200331' of...

Merge branch 'dev-mvp-20200331' of http://192.168.110.53/com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-mvp-20200331
...@@ -121,7 +121,7 @@ let buttonStatusIn = [ ...@@ -121,7 +121,7 @@ let buttonStatusIn = [
//待审核、审批中 //待审核、审批中
{ L1: "46", L2: "78", L3: "A" }, { L1: "46", L2: "78", L3: "A" },
//已上架 //已上架
{ L1: "5", L2: "5", L3: "A" }, { L1: "05", L2: "05", L3: "A" },
//已下架 //已下架
{ L1: "039", L2: "039", L3: "A" }, { L1: "039", L2: "039", L3: "A" },
//已拒绝/未上架 //已拒绝/未上架
...@@ -136,7 +136,7 @@ let buttonStatusOut = [ ...@@ -136,7 +136,7 @@ let buttonStatusOut = [
//待审核、审批中 //待审核、审批中
{ L1: "46", L2: "78", L3: "A" }, { L1: "46", L2: "78", L3: "A" },
//已上架 //已上架
{ L1: "05", L2: "05", L3: "A" }, { L1: "5", L2: "5", L3: "A" },
//已下架 //已下架
{ L1: "039", L2: "039", L3: "A" }, { L1: "039", L2: "039", L3: "A" },
//已拒绝/未上架 //已拒绝/未上架
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
size="small" size="small"
>发布</el-button> >发布</el-button>
<el-button <el-button
@click="changeStatus(scope.row,4)" @click="changeStatusForSP(scope.row,4)"
v-show="showButton(scope.row,4)" v-show="showButton(scope.row,4)"
type="primary" type="primary"
size="small" size="small"
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
size="small" size="small"
>取消审核</el-button> >取消审核</el-button>
<el-button <el-button
@click="changeStatus(scope.row,6)" @click="changeStatusForSP(scope.row,6)"
v-show="showButton(scope.row,6)" v-show="showButton(scope.row,6)"
type="primary" type="primary"
size="small" size="small"
...@@ -281,6 +281,22 @@ ...@@ -281,6 +281,22 @@
<el-button type="primary" @click="hideDeleteFrom">取 消</el-button> <el-button type="primary" @click="hideDeleteFrom">取 消</el-button>
</span> </span>
</el-dialog> </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>
</div> </div>
</template> </template>
...@@ -299,6 +315,14 @@ export default { ...@@ -299,6 +315,14 @@ export default {
}, },
data() { data() {
return { return {
changeStatusVisible: false,
currentRow: null,
currentType: 4,
changeStatusConfig: {
title: '确认通过该项目模版审核吗?',
message: '下架后,用户新建项目则无法看到该模版',
},
idValue: '', idValue: '',
curmbFirst: "教培项目", curmbFirst: "教培项目",
curmbSecond: "项目管理", curmbSecond: "项目管理",
...@@ -315,6 +339,10 @@ export default { ...@@ -315,6 +339,10 @@ export default {
cmeBtnText: '', cmeBtnText: '',
currentRow: {}, currentRow: {},
optionStatus: [ optionStatus: [
{
value: "",
label: "全部"
},
{ {
value: 1, value: 1,
label: "草稿" label: "草稿"
...@@ -537,6 +565,8 @@ export default { ...@@ -537,6 +565,8 @@ export default {
getProjectList() { getProjectList() {
let req = {}; let req = {};
req = this.formInline; req = this.formInline;
this.formInline.projectBegintime = !this.formInline.projectBegintime ? "" : this.formInline.projectBegintime;
this.formInline.projectEndtime = !this.formInline.projectEndtime ? "" : this.formInline.projectEndtime;
openLoading(vm); openLoading(vm);
vm.GET("portal/portalInfo/getProjectList", req).then(res => { vm.GET("portal/portalInfo/getProjectList", req).then(res => {
closeLoading(vm); closeLoading(vm);
...@@ -617,6 +647,26 @@ export default { ...@@ -617,6 +647,26 @@ export default {
return text; return text;
// return true / false; // return true / false;
}, },
changeStatusPre() {
this.changeStatus(this.currentRow, this.currentType);
this.changeStatusVisible = false;
},
//
changeStatusForSP(row, type) {
this.currentRow = row;
this.currentType = type;
if(type == 4) {
this.changeStatusConfig.title = '确认通过该项目审核吗?';
this.changeStatusConfig.message = '审核通过后,该项目范围内的学员可在云鹊医App进行培训学习';
} else if(type == 6) {
this.changeStatusConfig.title = '确认要拒绝该项目吗?';
this.changeStatusConfig.message = '拒绝后该项目将从列表中消失';
}
this.changeStatusVisible = true;
},
//改变状态 //改变状态
changeStatus(row, type) { changeStatus(row, type) {
let projectId = row.id; let projectId = row.id;
...@@ -638,49 +688,14 @@ export default { ...@@ -638,49 +688,14 @@ export default {
warnType: 1 warnType: 1
}; };
vm.GET("portal/portalCheck/remindPortalCheck", req).then(res => { vm.GET("portal/portalCheck/remindPortalCheck", req).then(res => {
vm.$message.info(res.message);
vm.getProjectList();
if (res.code == "000000") { if (res.code == "000000") {
console.log(res); console.log(res);
//vm.getProjectList(); vm.getProjectList();
} else {
vm.$message.info(res.message);
} }
}); });
} else { } 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 = { let req = {
projectId: projectId, projectId: projectId,
changeStatus: vm.getType(type) changeStatus: vm.getType(type)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<bread-crumb :curmbFirst="curmbFirst" :curmbSecond="curmbSecond" :curmbThird="curmbThird" :jumPathThird="jumPathThird"></bread-crumb> <bread-crumb :curmbFirst="curmbFirst" :curmbSecond="curmbSecond" :curmbThird="curmbThird" :jumPathThird="jumPathThird"></bread-crumb>
<div class="component-content screenSet" id="screenSet"> <div class="component-content screenSet" id="screenSet">
<div v-if="staticData == 1" class="item-form"> <div v-if="staticData == 1" class="item-form">
<div class="form-title">查询条件2333</div> <div class="form-title">查询条件</div>
<div class="form-p"> <div class="form-p">
<p> <p>
<span>选择地区</span> <span>选择地区</span>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册