diff --git a/src/views/examinationPaper/add.vue b/src/views/examinationPaper/add.vue index 96709bf..b014109 100644 --- a/src/views/examinationPaper/add.vue +++ b/src/views/examinationPaper/add.vue @@ -1094,7 +1094,7 @@ export default { this.stem.type = type; this.stem.index = index; this.stem.indexs = indexs; - this.stem.knowledge = obj.knowledge?.split("") || []; + this.stem.knowledge = obj.knowledge&&obj.knowledge.split(",") || []; this.stem.difficultyFactor = obj.difficultyFactor || ""; this.dialogTag = true; }, diff --git a/src/views/examinationPaper/edit.vue b/src/views/examinationPaper/edit.vue index f0b69f8..00624f2 100644 --- a/src/views/examinationPaper/edit.vue +++ b/src/views/examinationPaper/edit.vue @@ -577,12 +577,13 @@ export default { this.dialogStem = true; }, openTag(obj, type, index, indexs) { + console.log(obj) //难度,知识点 this.stem = { ...this.stem, obj }; this.stem.type = type; this.stem.index = index; this.stem.indexs = indexs; - this.stem.knowledge = obj.knowledge?.split("") || []; + this.stem.knowledge = obj.knowledge&&obj.knowledge.split(",") || []; this.stem.difficultyFactor = obj.difficultyFactor || ""; this.dialogTag = true; }, diff --git a/src/views/index/mainIndex.vue b/src/views/index/mainIndex.vue index 5f512b0..929cd2a 100644 --- a/src/views/index/mainIndex.vue +++ b/src/views/index/mainIndex.vue @@ -140,8 +140,8 @@

学生画像

- -

功能开发中。

+

共分析{{ dataInfo.imagesCount }}名学生成绩。

+

随堂问报表

diff --git a/src/views/personal/test/index.vue b/src/views/personal/test/index.vue index 628e04a..91005bf 100644 --- a/src/views/personal/test/index.vue +++ b/src/views/personal/test/index.vue @@ -91,6 +91,7 @@ { return sub != "全部" ? item != "全部" : item == "全部"; }); - this.type = - this.query.subjectNames.length > 1 - ? 1 - : this.query.subjectNames[0] == "全部" && this.subjectList.length > 2 - ? 1 - : 2; + // this.type = + // this.query.subjectNames.length > 1 + // ? 1 + // : this.query.subjectNames[0] == "全部" && this.subjectList.length > 2 + // ? 1 + // : 2; }, setDate(index) { const that = this; @@ -377,9 +368,16 @@ export default { } else { subjectNames = [...this.query.subjectNames]; } + this.type = + subjectNames.length > 1 + ? 1 + : subjectNames[0] == "全部" && this.subjectList.length > 2 + ? 1 + : 2; } else { subjectNames = [this.query.subjectNames]; } + let studentExamReport = this.role == "ROLE_PERSONAL" ? this.$request.pStudentExamReport diff --git a/src/views/standard/test/index.vue b/src/views/standard/test/index.vue index cce6be0..bdf1b15 100644 --- a/src/views/standard/test/index.vue +++ b/src/views/standard/test/index.vue @@ -105,6 +105,7 @@ \ No newline at end of file