diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index ebb7ceb..ffef019 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -83,11 +83,11 @@ export default { index: 'student', title: '学生管理' }, - { - icon: 'el-icon-office-building', - index: 'backstage', - title: '业务后台' - }, + // { + // icon: 'el-icon-office-building', + // index: 'backstage', + // title: '业务后台' + // }, { icon: 'el-icon-setting', index: 'system', diff --git a/src/components/page/AddProject.vue b/src/components/page/AddProject.vue index c536079..002043b 100644 --- a/src/components/page/AddProject.vue +++ b/src/components/page/AddProject.vue @@ -310,7 +310,7 @@ data (){ return { host: location.host.includes('liuwanr.cn') ? 'http://www.liuwanr.cn/' : 'http://www.occupationlab.com/', - id: '', + id: this.$route.query.id, systemList: this.$config.systemList, token: this.$store.state.token, systemId: this.$store.state.systemId, @@ -467,10 +467,18 @@ this.searchTimer = setTimeout(() => { this.dialog1() },500) + }, + projectPermission(val){ + if(!this.id){ + if(val){ + this.flag02 = false + }else{ + this.flag02 = true + } + } } }, mounted(){ - this.id = this.$route.query.id this.recoveryData() }, beforeDestroy(){ diff --git a/src/config/index.js b/src/config/index.js index 789af59..5fe3e92 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -59,13 +59,14 @@ export default { },{ id: 8, label: '大数据分析实验教学系统' - },{ - id: 9, - label: 'Python数据清洗教学实验系统' - },{ - id: 10, - label: 'Python数据采集(爬虫)教学实验系统' - } + }, + // { + // id: 9, + // label: 'Python数据清洗教学实验系统' + // },{ + // id: 10, + // label: 'Python数据采集(爬虫)教学实验系统' + // } ], /** * @description 是否使用动态路由