|
@@ -87,6 +87,10 @@ export default {
|
|
|
return {};
|
|
|
},
|
|
|
},
|
|
|
+ enableVideoSource: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
talking: {
|
|
|
type: Object,
|
|
|
default: () => ({ examRecordId: "", isVideo: false }),
|
|
@@ -126,12 +130,18 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
onOperation(type) {
|
|
|
+ if (!this.enableVideoSource && !["message", "voice"].includes(type)) {
|
|
|
+ return this.$notify({
|
|
|
+ type: "error",
|
|
|
+ message: "当前未开启直播监考",
|
|
|
+ });
|
|
|
+ }
|
|
|
if (type === "sound") {
|
|
|
return this.$refs.ThirdViewVideo?.videoMuted();
|
|
|
}
|
|
|
if (
|
|
|
["talk", "video", "answer"].includes(type) &&
|
|
|
- (this.disabled || this.talkingType === type)
|
|
|
+ (this.disabled || !!this.talkingType)
|
|
|
) {
|
|
|
return;
|
|
|
}
|