From 0978dad5cbfa14ad706d389046bc626406229f4b Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 26 May 2021 10:36:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E6=A0=B8=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/AddAssessment.vue | 3 ++- src/components/page/Project.vue | 13 +++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/components/page/AddAssessment.vue b/src/components/page/AddAssessment.vue index fe4b818..bbaaf47 100644 --- a/src/components/page/AddAssessment.vue +++ b/src/components/page/AddAssessment.vue @@ -125,6 +125,7 @@ export default { systemId: this.$config.systemId, isDetail: true, userId: this.$store.state.userLoginId, + roleId: this.$store.state.userRoleId.includes(',') ? 2 : Number(this.$store.state.userRoleId), cacheData: this.$store.state.addClass, keyword: '', searchTimer: null, @@ -227,7 +228,7 @@ export default { }).catch(res => {}); }, getClass(){ - this.$get(`${this.api.getMineClass}?userId=${this.userId}&className=${this.keyword}`).then(res => { + this.$get(`${this.api.getMineClass}?userId=${this.userId}&className=${this.keyword}&role=${this.roleId == 13 ? 2 : (this.roleId == 14 ? 3 : this.roleId)}`).then(res => { let list = res.list list.map(n => { n.id = n.classId diff --git a/src/components/page/Project.vue b/src/components/page/Project.vue index 7d61b6e..6e3bf9f 100644 --- a/src/components/page/Project.vue +++ b/src/components/page/Project.vue @@ -92,6 +92,7 @@