提交 9f9127c4 编写于 作者: guangjun.yang's avatar guangjun.yang

弹框等权限

上级 f530b693
...@@ -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: "项目管理",
...@@ -623,6 +647,26 @@ export default { ...@@ -623,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(status == 4) {
title = '确认通过该项目模版审核吗?';
message = '审核通过后,用户可在工作站查看或购买该项目模版';
} else if(status == 6) {
title = '确认要拒绝该项目模版吗?';
message = '拒绝后该模版将从列表中消失';
}
this.changeStatusVisible = true;
},
//改变状态 //改变状态
changeStatus(row, type) { changeStatus(row, type) {
let projectId = row.id; let projectId = row.id;
...@@ -644,49 +688,14 @@ export default { ...@@ -644,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)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册