diff --git a/src/assets/images/example.jpg b/src/assets/images/example.jpg new file mode 100644 index 0000000..996cf9e --- /dev/null +++ b/src/assets/images/example.jpg diff --git a/src/views/basic/setUp/student.vue b/src/views/basic/setUp/student.vue index 03a96dd..b0ed6f5 100644 --- a/src/views/basic/setUp/student.vue +++ b/src/views/basic/setUp/student.vue @@ -352,6 +352,7 @@ export default { console.log(hasName); if (hasName) { this.$message.warning("学生姓名已存在"); + this.loading = false; return; } const { data, status, info } = await this.$request.addStudent({ @@ -369,6 +370,7 @@ export default { this.$message.error(info); } } else { + this.loading = false; this.$message.error("数据有误,请检查!"); } }); diff --git a/src/views/basic/setUp/teacher.vue b/src/views/basic/setUp/teacher.vue index 3fb436d..2dca26c 100644 --- a/src/views/basic/setUp/teacher.vue +++ b/src/views/basic/setUp/teacher.vue @@ -252,6 +252,21 @@ export default { gradeClassList: [], gradeSubListClass: [], teacherList: [], + RoleList: [ + //角色 + { + value: 6, + label: "班主任", + }, + { + value: 7, + label: "任课老师", + }, + { + value: 8, + label: "备课组长", + }, + ], teacherRoleList: [ //角色 { @@ -324,6 +339,12 @@ export default { this.query.type = 0 this.query.teacherName = "" this.query.phone = "" + if (this.query.classType === 0) { + this.teacherRoleList = [...this.RoleList] + } else { + this.teacherRoleList = this.RoleList.slice(1, 3) + } + this._QueryData(6); await this._QueryDataGrade(); }, @@ -669,6 +690,7 @@ export default { query.phone = this.query.phone; query.type = this.query.type; } else if (type == 4) { + this.query.classType = 0; this.query.teacherName = ""; this.query.phone = ""; this.query.gradeClassSub = []; diff --git a/src/views/examinationPaper/index.vue b/src/views/examinationPaper/index.vue index b76cd46..af9906c 100644 --- a/src/views/examinationPaper/index.vue +++ b/src/views/examinationPaper/index.vue @@ -134,8 +134,13 @@
-

第一步:导出菁优网试卷或 - 模板下载 。 +

第一步:导出菁优网试卷, + + + + + 导出选项示例。 +

第二步:上传完成编辑好的试卷。

@@ -150,6 +155,7 @@