From 1da531440cb6a0d85a11dc709119b3b507bb0e88 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Thu, 30 Dec 2021 17:40:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E6=A0=B8=E7=AE=A1=E7=90=86=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=88=90=E7=BB=A9=E5=A2=9E=E5=8A=A0=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/achievement/ass/index.vue | 30 +++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/src/pages/achievement/ass/index.vue b/src/pages/achievement/ass/index.vue index 54b85c0..882530d 100644 --- a/src/pages/achievement/ass/index.vue +++ b/src/pages/achievement/ass/index.vue @@ -90,7 +90,15 @@ export default { classId: this.$route.query.classId, projectId: this.$route.query.projectId, assessmentId:'', - classInfo: [], + classInfo: [ + { + architectureId: "", + className: "全部", + createTime: "2021-12-30 12:02:33", + id: "", + isDel: 0, + } + ], experimentalName: this.$route.query.experimentalName, className: this.$route.query.class, keyword: "", @@ -106,29 +114,39 @@ export default { }, created() { this.getData(); - this.classInfo = JSON.parse(this.$route.query.classInfo) + let classInfo = JSON.parse(this.$route.query.classInfo) + for (var i=0;i item.id === activeName2)) { - this.classId = activeName2 - this.activeName = activeName2 + this.classId = "" + this.activeName = "" }else { - this.classId = this.classInfo[0].id; - this.activeName = this.classInfo[0].id; + this.classId = ""; + this.activeName = ""; } this.id = this.$route.query.id }, methods: { handleClick(tab, event) { sessionStorage.setItem('activeName2', tab.name) + if(this.activeName == 0){ + this.activeName = '' + } this.getData() }, getData() { this.$post(`${this.api.getAssessmentDetail}?assessmentId=${+this.id}&pageNum=${this.page}&pageSize=${this.pageSize}&classId=${this.activeName}`).then(res => { if (res.status == 200){ + if(this.activeName == ''){ + this.activeName = '0' + } this.avg = res.avgScore this.total = res.peopleNum let list = res.page.records;