From ff8accf631ee85c1acb902876798057003e857ee Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 17 May 2021 18:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E7=AD=89=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Sidebar.vue | 2 +- src/components/page/AddAssessment.vue | 1 + src/components/page/AddMatch.vue | 1 + src/components/page/Dashboard.vue | 7 +++++-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index 54074d7..a35dc88 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -106,7 +106,7 @@ export default { ], menus: [], actives: { - dashboard: ['classinfo'], + dashboard: ['classinfo','classExperimentAss'], assessment: ['addAssessment'], achievement: ['experiment','experimentVir','experimentTeach','experimentAss','addexperiment','showExperiment'], project: ['addproject','program','programOptions'], diff --git a/src/components/page/AddAssessment.vue b/src/components/page/AddAssessment.vue index 255cbab..808d00b 100644 --- a/src/components/page/AddAssessment.vue +++ b/src/components/page/AddAssessment.vue @@ -220,6 +220,7 @@ export default { data.pageNo = this.pageNo data.pageSize = this.pageSize data.projectName = '' + data.projectPermissions = 2 this.$get(this.api.queryAllManagements,data).then(res => { this.projectData = res.pageInfo.list this.totals = res.pageInfo.total diff --git a/src/components/page/AddMatch.vue b/src/components/page/AddMatch.vue index a98e2cd..90050fa 100644 --- a/src/components/page/AddMatch.vue +++ b/src/components/page/AddMatch.vue @@ -215,6 +215,7 @@ export default { data.pageNo = this.pageNo data.pageSize = this.pageSize data.projectName = '' + data.projectPermissions = 1 this.$get(this.api.queryAllManagements,data).then(res => { this.projectData = res.pageInfo.list this.totals = res.pageInfo.total diff --git a/src/components/page/Dashboard.vue b/src/components/page/Dashboard.vue index 4bad007..8df1074 100644 --- a/src/components/page/Dashboard.vue +++ b/src/components/page/Dashboard.vue @@ -91,7 +91,7 @@ - + @@ -296,7 +296,7 @@ export default { }) .then(() => { this.$del(this.api.deleteClass,{ classId: item.classId }).then(res => { - this.classList.splice(index,1) + this.classList.splice(index,1) this.$message.success('删除成功!'); this.getData() }).catch(res => {}) @@ -328,6 +328,9 @@ export default { } }) }, + closeDia(){ + this.$refs.classForm.clearValidate() + }, toEdit(item){ this.$router.push({ path: '/classinfo',