|
@@ -167,8 +167,8 @@
|
|
>
|
|
>
|
|
<h2>监考直播</h2>
|
|
<h2>监考直播</h2>
|
|
<el-form-item label="是否开启考生端监考直播">
|
|
<el-form-item label="是否开启考生端监考直播">
|
|
- <el-radio v-model="form.monitorProxy" :label="1">是</el-radio>
|
|
|
|
- <el-radio v-model="form.monitorProxy" :label="0">否</el-radio>
|
|
|
|
|
|
+ <el-radio v-model="form.monitorProxy" :label="true">是</el-radio>
|
|
|
|
+ <el-radio v-model="form.monitorProxy" :label="false">否</el-radio>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-if="form.monitorProxy" label="是否需要视频转录">
|
|
<el-form-item v-if="form.monitorProxy" label="是否需要视频转录">
|
|
<el-radio v-model="form.monitorRecord" :label="1">是</el-radio>
|
|
<el-radio v-model="form.monitorRecord" :label="1">是</el-radio>
|
|
@@ -246,6 +246,9 @@ export default {
|
|
this.form.monitorVideoSource = [];
|
|
this.form.monitorVideoSource = [];
|
|
this.form.monitorRecord = 0;
|
|
this.form.monitorRecord = 0;
|
|
}
|
|
}
|
|
|
|
+ if (this.form.monitorVideoSource === null) {
|
|
|
|
+ this.form.monitorVideoSource = [];
|
|
|
|
+ }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -254,6 +257,7 @@ export default {
|
|
const res = await getExamDetail({ id: this.examId });
|
|
const res = await getExamDetail({ id: this.examId });
|
|
this.form = { ...this.form, ...res.data.data.records };
|
|
this.form = { ...this.form, ...res.data.data.records };
|
|
this.form.startEndTimeProxy = [this.form.startTime, this.form.endTime];
|
|
this.form.startEndTimeProxy = [this.form.startTime, this.form.endTime];
|
|
|
|
+ this.form.monitorProxy = !!this.form.monitorVideoSource;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
@@ -288,7 +292,7 @@ export default {
|
|
inProcessLivenessVerify: 0,
|
|
inProcessLivenessVerify: 0,
|
|
inProcessLivenessFixedRange: [],
|
|
inProcessLivenessFixedRange: [],
|
|
inProcessLivenessJudgePolicy: "ALL",
|
|
inProcessLivenessJudgePolicy: "ALL",
|
|
- monitorProxy: 0,
|
|
|
|
|
|
+ monitorProxy: false,
|
|
monitorRecord: 0,
|
|
monitorRecord: 0,
|
|
monitorVideoSource: [],
|
|
monitorVideoSource: [],
|
|
ipAllow: "",
|
|
ipAllow: "",
|
|
@@ -296,8 +300,9 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- save() {
|
|
|
|
- saveExam(this.form);
|
|
|
|
|
|
+ async save() {
|
|
|
|
+ await saveExam(this.form);
|
|
|
|
+ this.$notify({ title: "保存成功", type: "success" });
|
|
},
|
|
},
|
|
cancel() {},
|
|
cancel() {},
|
|
},
|
|
},
|