From 38b8109aa87f045cb6dbf135c2f77e265cecaf54 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Fri, 3 Dec 2021 10:10:55 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/achievement/ass/index.vue | 2 -- src/pages/achievement/show/index.vue | 12 ++++++------ src/pages/achievement/teach/index.vue | 4 ++-- src/pages/achievement/vir/index.vue | 4 ++-- src/pages/assessment/list/index.vue | 2 +- src/pages/system/list/staff.vue | 2 +- 6 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/pages/achievement/ass/index.vue b/src/pages/achievement/ass/index.vue index f708e6d..c8821c7 100644 --- a/src/pages/achievement/ass/index.vue +++ b/src/pages/achievement/ass/index.vue @@ -56,8 +56,6 @@ {{ experimentalName }} - - diff --git a/src/pages/achievement/show/index.vue b/src/pages/achievement/show/index.vue index 933b8d0..6f78d13 100644 --- a/src/pages/achievement/show/index.vue +++ b/src/pages/achievement/show/index.vue @@ -173,7 +173,6 @@ export default { let expData = res.userScores; let form = this.form; let score = form.score; - if (expData) { if (score) { expData.map(n => { @@ -187,16 +186,16 @@ export default { this.expData = expData; } - this.infoData.push({ workNumber: form.workNumber, experimentalClassName: form.experimentalClassName, - instructor: form.instructor, + instructor: form.teacherName, period: form.period, laboratory: form.laboratory, submitTime: form.submitTime, score: form.score, - userName: form.userName + userName: form.userName, + className:form.className, }); }).catch(res => { }); @@ -230,12 +229,13 @@ export default { this.infoData.push({ workNumber: form.workNumber, experimentalClassName: form.experimentalClassName, - instructor: form.instructor, + instructor: form.teacherName, period: form.period, laboratory: form.laboratory, submitTime: form.submitTime, score: form.score, - userName: form.userName + userName: form.userName, + className:form.className, }); }).catch(res => { }); diff --git a/src/pages/achievement/teach/index.vue b/src/pages/achievement/teach/index.vue index ee8cec7..191e0c8 100644 --- a/src/pages/achievement/teach/index.vue +++ b/src/pages/achievement/teach/index.vue @@ -163,7 +163,7 @@ export default { }, responseType: 'blob' }).then((res) => { - util.downloadFileDirect(`按数据库统计使用概况导出.xls`,new Blob([res.data])) + util.downloadFileDirect(`学生考核成绩.xls`,new Blob([res.data])) }).catch(res => {}) } else { axios.get(`${this.api.exportAssessmentInfo}?assessmentId=${this.assessmentId}&classId=${this.classId}&ids=`,{ @@ -172,7 +172,7 @@ export default { }, responseType: 'blob' }).then((res) => { - util.downloadFileDirect(`按数据库统计使用概况导出.xls`,new Blob([res.data])) + util.downloadFileDirect(`学生考核成绩.xls`,new Blob([res.data])) }).catch(res => {}) } }, diff --git a/src/pages/achievement/vir/index.vue b/src/pages/achievement/vir/index.vue index f73d1f9..36ce388 100644 --- a/src/pages/achievement/vir/index.vue +++ b/src/pages/achievement/vir/index.vue @@ -133,7 +133,7 @@ export default { }, responseType: 'blob' }).then((res) => { - util.downloadFileDirect(`按数据库统计使用概况导出.xls`,new Blob([res.data])) + util.downloadFileDirect(`学生练习成绩.xls`,new Blob([res.data])) }).catch(res => {}) // location.href = `${this.api.exportPracticeInfo}?projectId=${this.projectId}&ids=${ids.toString()}`; } else { @@ -143,7 +143,7 @@ export default { }, responseType: 'blob' }).then((res) => { - util.downloadFileDirect(`按数据库统计使用概况导出.xls`,new Blob([res.data])) + util.downloadFileDirect(`学生练习成绩.xls`,new Blob([res.data])) }).catch(res => {}) // location.href = `${this.api.exportPracticeInfo}?projectId=${this.projectId}&ids=`; } diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue index 19c885d..b923822 100644 --- a/src/pages/assessment/list/index.vue +++ b/src/pages/assessment/list/index.vue @@ -99,7 +99,7 @@ - 启动 + 启动 修改 diff --git a/src/pages/system/list/staff.vue b/src/pages/system/list/staff.vue index cbd3b01..54bc345 100644 --- a/src/pages/system/list/staff.vue +++ b/src/pages/system/list/staff.vue @@ -471,7 +471,7 @@ export default { } }, roleRemove(value) { // 处理移除角色 - let index = this.teacherForm.roleAndDeptList.findIndex(i => i.roleId === value); + let index = this.teacherForm.roleAndDeptList.findIndex(i => i.roleName === value); if (index !== -1) { this.teacherForm.roleAndDeptList.splice(index, 1); } From 30afb3857a83f89151eafcc81baac754641dcc3d Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Fri, 3 Dec 2021 14:33:36 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/project/add/index.vue | 31 ++++++++++++++++--------------- src/pages/project/list/index.vue | 10 +++++----- src/pages/system/list/staff.vue | 4 ++-- 3 files changed, 23 insertions(+), 22 deletions(-) diff --git a/src/pages/project/add/index.vue b/src/pages/project/add/index.vue index e34ffa0..54b1715 100644 --- a/src/pages/project/add/index.vue +++ b/src/pages/project/add/index.vue @@ -5,8 +5,8 @@ - 保存为草稿 - 确定并发布 + 保存为草稿 + 确定并发布 @@ -17,17 +17,17 @@ - + - + - + - + @@ -57,7 +57,7 @@ - + @@ -76,13 +76,13 @@ - 平均分配分值 - 手动分配分值 + 平均分配分值 + 手动分配分值 (待分配分值: {{ handDistributionScore }}/100分) - 判分点 - 批量删除 + 判分点 + 批量删除 - 删除 + 删除 - + @@ -128,13 +128,13 @@ 实验提示 启用 - + - + @@ -193,6 +193,7 @@ export default { data() { return { projectId: this.$route.query.projectId, + item: this.$route.query.item, systemList: [], token: util.local.get(Setting.tokenKey), isDetail: Boolean(this.$route.query.show), diff --git a/src/pages/project/list/index.vue b/src/pages/project/list/index.vue index 8adc55c..3e075f0 100644 --- a/src/pages/project/list/index.vue +++ b/src/pages/project/list/index.vue @@ -86,7 +86,8 @@ - 编辑 + 查看 + 编辑 删除 复制 - + @@ -271,9 +271,9 @@ export default { this.setSystemId(this.systemId); this.$router.push("/project/add"); }, - edit(row) { // 编辑 + edit(row,item) { // 编辑 this.setSystemId(row.systemId); - this.$router.push(`/project/add?projectId=${row.projectId}`); + this.$router.push(`/project/add?projectId=${row.projectId}&item=${item}`); }, handleSelectionChange(val) { // 处理多选 this.multipleSelection = val; diff --git a/src/pages/system/list/staff.vue b/src/pages/system/list/staff.vue index 54bc345..f95cec4 100644 --- a/src/pages/system/list/staff.vue +++ b/src/pages/system/list/staff.vue @@ -176,7 +176,7 @@ export default { }, rules: { account: [ - { validator: accountPass, trigger: 'blur' } + { required: true, validator: accountPass, trigger: 'blur' } ], userName: [ { required: true, message: "请输入用户姓名", trigger: "blur" } @@ -185,7 +185,7 @@ export default { { required: true, message: "请选择账号角色", trigger: "change" } ], workNumber: [ - { validator: workNumberPass , trigger: 'blur' } + { required: true, validator: workNumberPass , trigger: 'blur' } ], uniqueIdentification: [ // { required: true, message: '请输入唯一标识', trigger: 'blur' }, From 8af271dbd54e96d906dc849c3b61128fbf4e7018 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Fri, 3 Dec 2021 16:25:15 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8F=90=E4=BB=B7=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E6=B2=A1=E6=94=B9=E4=BB=80=E4=B9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/match/manage/index.vue | 3 ++- src/router/index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/match/manage/index.vue b/src/pages/match/manage/index.vue index 88e41d4..882eaa4 100644 --- a/src/pages/match/manage/index.vue +++ b/src/pages/match/manage/index.vue @@ -50,7 +50,8 @@ export default { }); }, beforeDestroy() { - // EventBus.$off() + // 关闭所以EventBus事件 + EventBus.$off() }, methods: { goBack() { diff --git a/src/router/index.js b/src/router/index.js index 9f78cfe..a8129e7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -267,7 +267,8 @@ router.beforeEach(function(to, from, next) { } } // 根据路由元信息设置文档标题 - window.document.title = to.meta.title ? to.meta.title : ""; + // window.document.title = to.meta.title ? to.meta.title : ""; + window.document.title = "职站教师端" next(); }); \ No newline at end of file