From ca17b3eb1df3a83299e570924ec399f9fbbac0fb Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 8 Mar 2022 17:20:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E8=AE=B0=E5=BD=953=E4=B8=AA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=90=88=E5=B9=B6=E6=88=90=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=EF=BC=8C=E5=88=86=E6=95=B0=E7=BB=9F=E8=AE=A1=E6=94=B9=E6=88=90?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/achievement/ass/index.vue | 368 -------------------------- src/pages/achievement/list/index.vue | 12 +- src/pages/achievement/show/index.vue | 1 - src/pages/achievement/teach/index.vue | 94 ++++--- src/pages/achievement/vir/index.vue | 266 ------------------- src/pages/assessment/list/index.vue | 2 +- 6 files changed, 67 insertions(+), 676 deletions(-) delete mode 100644 src/pages/achievement/ass/index.vue delete mode 100644 src/pages/achievement/vir/index.vue diff --git a/src/pages/achievement/ass/index.vue b/src/pages/achievement/ass/index.vue deleted file mode 100644 index 7bf586f..0000000 --- a/src/pages/achievement/ass/index.vue +++ /dev/null @@ -1,368 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/achievement/list/index.vue b/src/pages/achievement/list/index.vue index 099d458..c5f5cd3 100644 --- a/src/pages/achievement/list/index.vue +++ b/src/pages/achievement/list/index.vue @@ -246,15 +246,9 @@ export default { if ((row.isAdmin === 1 && (row.isDel === 1 || row.courseDel === 1)) || (row.isAdmin === 0 && row.isDel === 1)) return true return false }, - entry(row) { // 成绩管理 - if (this.projectPermissions === 1) { - let list = row.classList.map(i => { - return { id: i.id.toString(), name: i.className }; - }); - this.$router.push(`teach?assessmentId=${row.assessmentId}&projectName=${row.projectName}&permissions=${row.permissions}&classList=${JSON.stringify(list)}`); - } else { - this.$router.push(`vir?projectId=${row.projectId}&projectName=${row.projectName}&permissions=${row.permissions}`); - } + // 进入实验记录 + entry(row) { + this.$router.push(`teach?id=${row.assessmentId || row.projectId}&projectName=${row.projectName}&permissions=${row.permissions}`) }, handleDelete(row) { // 删除 this.$confirm("该项目下的所有成绩报告将会删除,是否继续?", "提示", { diff --git a/src/pages/achievement/show/index.vue b/src/pages/achievement/show/index.vue index 1ba512e..f89492a 100644 --- a/src/pages/achievement/show/index.vue +++ b/src/pages/achievement/show/index.vue @@ -135,7 +135,6 @@ export default { data() { return { reportId: this.$route.query.reportId, - projectId: this.$route.query.projectId, title: "实验报告", form: { className: "", diff --git a/src/pages/achievement/teach/index.vue b/src/pages/achievement/teach/index.vue index 61a5469..b0998d8 100644 --- a/src/pages/achievement/teach/index.vue +++ b/src/pages/achievement/teach/index.vue @@ -44,24 +44,25 @@ - + - + - - - - + + + + + - + - - \ No newline at end of file diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue index 670a869..4fb3730 100644 --- a/src/pages/assessment/list/index.vue +++ b/src/pages/assessment/list/index.vue @@ -344,7 +344,7 @@ export default { this.$router.push(`add?id=${row.id}`); }, show(row) { - this.$router.push(`/achievement/ass?id=${row.id}&classId=${row.classId}&projectId=${row.projectId}&classInfo=${JSON.stringify(row.classInfo)}&experimentalName=${row.experimentalName}&class=${row.experimentalClassName}`); + this.$router.push(`/achievement/teach?id=${row.id}&projectName=${row.projectName}&permissions=1`) }, start(row) { this.$post(`${this.api.enableAssessment}?id=${row.id}`).then(res => {