| | |
| | | _this.subjectFilter = _this.subjects; |
| | | }); |
| | | if (id && parseInt(id) !== 0) { |
| | | this.selectAllBoolean = false; |
| | | _this.formLoading = true; |
| | | await examPaperApi.selfselect(id).then(re => { |
| | | const { userIds, userNames } = re.response; |
| | |
| | | this.student.multipleSelection = val; |
| | | }, |
| | | selectAll () { |
| | | this.preSelectAll(); |
| | | this.selectAllBoolean = false; |
| | | let param = { ...this.student }; |
| | | param.pageSize = 999999; |
| | |
| | | }); |
| | | this.student.multipleSelection = []; |
| | | this.studentDialog = false; |
| | | }, |
| | | preSelectAll() { |
| | | this.selectAllBoolean = true; |
| | | this.$refs.multipleTable.clearSelection(); |
| | | this.form.userIds = this.student.multipleSelection.map((item) => item.id); |
| | | this.form.examineeList = this.student.multipleSelection.map((item) => { |
| | | return { |
| | | id: item.id, |
| | | realName: item.realName |
| | | }; |
| | | }); |
| | | this.student.multipleSelection = []; |
| | | }, |
| | | getTags() { |
| | | userApi.tagList(null).then(data => { |
| | |
| | | console.log(this.form.subjectSource); |
| | | console.log(this.form.questionTypeVMS); |
| | | // this.form.paperType = 7 |
| | | this.form.titleItems = []; |
| | | this.form.titleItems = [{ |
| | | name: '', |
| | | questionItems: [] |
| | | }]; |
| | | } else { |
| | | this.form.subjectSource = {}; |
| | | this.subjectIdList = []; |