|
@@ -26,11 +26,11 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item prop="examRecordId" label="证件号/姓名:">
|
|
|
|
|
|
+ <el-form-item prop="examStudentId" label="证件号/姓名:">
|
|
<multiple-select-student
|
|
<multiple-select-student
|
|
- data-key="examRecordId"
|
|
|
|
|
|
+ data-key="examStudentId"
|
|
:data-list="dataList"
|
|
:data-list="dataList"
|
|
- :seleted-ids="modalForm.examRecordId"
|
|
|
|
|
|
+ :seleted-ids="modalForm.examStudentId"
|
|
:show-add="true"
|
|
:show-add="true"
|
|
@selected="idsChange"
|
|
@selected="idsChange"
|
|
ref="MultipleSelectStudent"
|
|
ref="MultipleSelectStudent"
|
|
@@ -75,7 +75,7 @@ import { REEXAM_TYPE, REEXAM_REASON } from "@/constant/constants";
|
|
import MultipleSelectStudent from "../common/MultipleSelectStudent";
|
|
import MultipleSelectStudent from "../common/MultipleSelectStudent";
|
|
|
|
|
|
const initModalForm = {
|
|
const initModalForm = {
|
|
- examRecordId: [],
|
|
|
|
|
|
+ examStudentId: [],
|
|
model: 0,
|
|
model: 0,
|
|
reason: null,
|
|
reason: null,
|
|
remark: "",
|
|
remark: "",
|
|
@@ -121,7 +121,7 @@ export default {
|
|
trigger: "change",
|
|
trigger: "change",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
- examRecordId: [
|
|
|
|
|
|
+ examStudentId: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
validator: recordIdValidator,
|
|
validator: recordIdValidator,
|
|
@@ -141,8 +141,8 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
visibleChange() {
|
|
visibleChange() {
|
|
this.modalForm = { ...initModalForm };
|
|
this.modalForm = { ...initModalForm };
|
|
- this.modalForm.examRecordId = this.students.map(
|
|
|
|
- (item) => item.examRecordId
|
|
|
|
|
|
+ this.modalForm.examStudentId = this.students.map(
|
|
|
|
+ (item) => item.examStudentId
|
|
);
|
|
);
|
|
this.dataReady = true;
|
|
this.dataReady = true;
|
|
},
|
|
},
|
|
@@ -156,7 +156,7 @@ export default {
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
},
|
|
},
|
|
idsChange(ids) {
|
|
idsChange(ids) {
|
|
- this.modalForm.examRecordId = ids;
|
|
|
|
|
|
+ this.modalForm.examStudentId = ids;
|
|
},
|
|
},
|
|
async confirm() {
|
|
async confirm() {
|
|
const valid = await this.$refs.modalFormComp.validate().catch(() => {});
|
|
const valid = await this.$refs.modalFormComp.validate().catch(() => {});
|