|
@@ -101,6 +101,7 @@ import AudioRecordDialog from "./audioRecord/AudioRecordDialog";
|
|
|
import { debounce } from "lodash-es";
|
|
|
import IntervalMixin from "./mixins/IntervalMixin";
|
|
|
import axios from "axios";
|
|
|
+
|
|
|
const DESIGN_WIDTH = 1920;
|
|
|
const DESIGN_HEIGHT = 1080;
|
|
|
|
|
@@ -311,26 +312,30 @@ export default {
|
|
|
|
|
|
/** 通话中事件... */
|
|
|
async onTalking({ examRecordId, talking }) {
|
|
|
- if (this.operationStudent["back-call"]) {
|
|
|
+ if (this.operationStudent["back-call"]?.examRecordId) {
|
|
|
/** 回拨类型 */
|
|
|
- if (talking) {
|
|
|
- await communicationCalling({
|
|
|
- recordId: this.operationStudent["back-call"].examRecordId,
|
|
|
- source: this.operationStudent["back-call"].source,
|
|
|
- });
|
|
|
- } else {
|
|
|
- await communicationOver({
|
|
|
- recordId: this.operationStudent["back-call"].examRecordId,
|
|
|
- source: this.operationStudent["back-call"].source,
|
|
|
- });
|
|
|
- this.operationStudent["back-call"] = {};
|
|
|
+ try {
|
|
|
+ if (talking) {
|
|
|
+ await communicationCalling({
|
|
|
+ recordId: this.operationStudent["back-call"].examRecordId,
|
|
|
+ source: this.operationStudent["back-call"].source,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ await communicationOver({
|
|
|
+ recordId: this.operationStudent["back-call"].examRecordId,
|
|
|
+ source: this.operationStudent["back-call"].source,
|
|
|
+ });
|
|
|
+ this.operationStudent["back-call"] = {};
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ console.error(error);
|
|
|
}
|
|
|
this.refreshList();
|
|
|
}
|
|
|
- this.talking = {
|
|
|
+ Object.assign(this.talking, {
|
|
|
examRecordId: talking ? examRecordId : "",
|
|
|
isVideo: talking ? this.talking.isVideo : false,
|
|
|
- };
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
/** 是否预警状态 */
|