|
@@ -16,7 +16,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-form-item label="考场">
|
|
<el-form-item label="考场">
|
|
<ExamRoomSelect
|
|
<ExamRoomSelect
|
|
- :examId="examId"
|
|
|
|
|
|
+ :examId="user.examId"
|
|
v-model="form.roomCode"
|
|
v-model="form.roomCode"
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
></ExamRoomSelect>
|
|
></ExamRoomSelect>
|
|
@@ -45,7 +45,6 @@ import { saveInvigilator } from "@/api/examwork-invigilate";
|
|
export default {
|
|
export default {
|
|
name: "InvigilateManagementDialog",
|
|
name: "InvigilateManagementDialog",
|
|
props: {
|
|
props: {
|
|
- examId: String,
|
|
|
|
user: Object,
|
|
user: Object,
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -80,7 +79,7 @@ export default {
|
|
let data = this.form;
|
|
let data = this.form;
|
|
try {
|
|
try {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- await saveInvigilator({ examId: this.examId, ...data });
|
|
|
|
|
|
+ await saveInvigilator({ examId: this.user.examId, ...data });
|
|
this.$emit("reload");
|
|
this.$emit("reload");
|
|
this.$notify({ title: "保存成功", type: "success" });
|
|
this.$notify({ title: "保存成功", type: "success" });
|
|
this.closeDialog();
|
|
this.closeDialog();
|