瀏覽代碼

feat: 申请童话接听

chenhao 2 年之前
父節點
當前提交
a58e47ab67

+ 6 - 2
src/features/invigilation/RealtimeMonitoring/RealtimeMonitoringFull.vue

@@ -242,10 +242,14 @@ export default {
 
     onOperation({ type, data }) {
       const newData = { ...data, examStudentName: data.name };
-      if (type === "video") {
+      if (["video", "answer"].includes(type)) {
         this.operationStudent["talk"] = newData;
+      } else {
+        this.operationStudent[type] = newData;
+      }
+      if (type === "answer") {
+        this.onBackCall(newData);
       }
-      this.operationStudent[type] = newData;
       const operationMap = {
         message: this.toSendTextMsg,
         voice: this.toSendAudioMsg,

+ 2 - 2
src/features/invigilation/RealtimeMonitoring/components/InvigilationStudentFull.vue

@@ -30,7 +30,7 @@
         <span
           class="icon icon-talk"
           :disabled="disabled || talkingType === 'video'"
-          @click.stop="onOperation('talk')"
+          @click.stop="onOperation('answer')"
         ></span>
       </div>
     </div>
@@ -126,7 +126,7 @@ export default {
       if (type === "sound") {
         return this.$refs.ThirdViewVideo?.videoMuted();
       }
-      if (["talk", "video"].includes(type) && this.disabled) {
+      if (["talk", "video", "answer"].includes(type) && this.disabled) {
         return;
       }
       this.$emit("operation", { type, data: this.data });