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

菜单调整、查看权限

上级 52a8d399
......@@ -78,8 +78,9 @@
<el-table-column prop="id" label="ID编号" min-width="100" align="center"></el-table-column>
<el-table-column prop="projectName" label="项目名称" min-width="100" align="center">
<template slot-scope="scope">
<span @click="handleCreateProject(1)" style="color:rgb(2, 130, 132);cursor:pointer;" v-if="(scope.row.level == 'L1' && scope.row.idType == 1)
|| (scope.row.level == 'L2' && scope.row.idType == 2)">{{scope.row.projectName}}</span>
<span @click="previewTemplate(1)" style="color:rgb(2, 130, 132);cursor:pointer;"
v-if="scope.row.projectType == 3
&& (scope.row.level == 'L1' || scope.row.level == 'L2') ">{{scope.row.projectName}}</span>
<span v-else>{{scope.row.projectName}}</span>
</template>
</el-table-column>
......@@ -437,13 +438,13 @@ export default {
this.centerDialogVisible = true;
}
},
toPage(isPreview) {
toPage(isPreview = 0) {
this.$router.push("edit-manager?projectType=1&isPreview=" + isPreview);
},
toCmePage(isPreview) {
toCmePage(isPreview = 0) {
this.$router.push("edit-cme?projectType=2&isPreview=" + isPreview);
},
toTemplatePage(isPreview) {
toTemplatePage(isPreview = 0) {
this.$router.push("template-open?projectType=3&isPreview=" + isPreview);
},
toShield(row) {
......@@ -453,16 +454,30 @@ export default {
this.centerDialogVisible = false;
this.newProjectType = 1;
},
handleCreateProject(isPreview) {
handleCreateProject() {
if (this.newProjectType == 1) { // 1 普通项目 2 CME项目
this.toPage(isPreview);
this.toPage();
} else if (this.newProjectType == 2) {
this.toCmePage(isPreview);
this.toCmePage();
} else if(this.newProjectType == 3) {
this.toTemplatePage(isPreview);
this.toTemplatePage();
}
},
previewTemplate(isPreview) {
this.toTemplatePage(isPreview);
},
// handleCreateProject(isPreview) {
// if (this.newProjectType == 1) { // 1 普通项目 2 CME项目
// this.toPage(isPreview);
// } else if (this.newProjectType == 2) {
// this.toCmePage(isPreview);
// } else if(this.newProjectType == 3) {
// this.toTemplatePage(isPreview);
// }
// },
hanldeCmeClick(row) {
this.currentRow = row;
let status = row.projectStatus;
......
......@@ -86,9 +86,9 @@
index: 'item',
subs: [
{
title: '项目组件',
icon: 'el-icon-setting',
index: 'item-component'
title: '下载报告',
icon: 'el-icon-document',
index: 'export-download'
},
{
title: '项目管理',
......@@ -216,9 +216,10 @@
}
},
storageIdType(val,ov){
if(val == 1){
if(val == 1){
vm.setEntrySide();
} else if(val == 2) {
vm.items[1].title = '教育培训';
vm.setFollowSide();
}
},
......@@ -277,7 +278,11 @@
vm.items.push(followSider);
},
setEntrySide() {
console.log(222);
const itemComponent = {
title: '项目组件',
icon: 'el-icon-setting',
index: 'item-component'
};
const followSider = {
title: '入口管理',
icon: 'el-icon-setting',
......@@ -288,7 +293,6 @@
icon: 'el-icon-setting',
index: 'template-manager'
};
const eduRole = {
title: '角色权限',
icon: 'el-icon-menu',
......@@ -301,6 +305,8 @@
}
]
}
vm.items[1].subs.push(itemComponent);
vm.items[1].subs.push(templateManager);
vm.items[1].subs.push(followSider);
vm.items.push(eduRole);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册