From 72d9274712ea219195561e1535d88499f68b206d Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 11 May 2021 11:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E5=90=8E=E9=9D=A2=E4=B8=A4=E4=B8=AA=E5=AD=90=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Sidebar.vue | 10 +++++----- src/components/page/AddProject.vue | 12 ++++++++++-- src/config/index.js | 15 ++++++++------- 3 files changed, 23 insertions(+), 14 deletions(-) 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 是否使用动态路由