|
@@ -18,13 +18,10 @@
|
|
|
<div class="communication-wait" v-show="isWaiting">
|
|
|
<p class="communication-wait-tips">等待接听…</p>
|
|
|
<div class="communication-wait-avatar">
|
|
|
- <img
|
|
|
- :src="detailInfo.basePhotoPath"
|
|
|
- :alt="detailInfo.examStudentName"
|
|
|
- />
|
|
|
+ <img :src="data.basePhotoPath" :alt="data.examStudentName" />
|
|
|
</div>
|
|
|
<p class="communication-wait-username">
|
|
|
- {{ detailInfo.examStudentName }}
|
|
|
+ {{ data.examStudentName }}
|
|
|
</p>
|
|
|
<div class="communication-wait-action" @mousedown.stop>
|
|
|
<el-button round type="danger" @click="hangup">取消通话</el-button>
|
|
@@ -34,7 +31,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { invigilateDetail, getUserMonitorKey } from "@/api/invigilation";
|
|
|
+import { getUserMonitorKey } from "@/api/invigilation";
|
|
|
import {
|
|
|
checkSystemRequirements,
|
|
|
createClient,
|
|
@@ -59,10 +56,14 @@ export default {
|
|
|
recordId: {
|
|
|
type: String,
|
|
|
},
|
|
|
+ data: {
|
|
|
+ type: Object,
|
|
|
+ default: () => ({}),
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- detailInfo: {},
|
|
|
+ // detailInfo: {},
|
|
|
dialogVisible: false,
|
|
|
isWaiting: false,
|
|
|
isHandUp: false,
|
|
@@ -80,13 +81,13 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async initData() {
|
|
|
- await this.getInvigilateDetail().catch(() => {});
|
|
|
+ // await this.getInvigilateDetail().catch(() => {});
|
|
|
this.holding = false;
|
|
|
},
|
|
|
- async getInvigilateDetail() {
|
|
|
- const res = await invigilateDetail(this.recordId);
|
|
|
- this.detailInfo = res.data.data;
|
|
|
- },
|
|
|
+ // async getInvigilateDetail() {
|
|
|
+ // const res = await invigilateDetail(this.recordId);
|
|
|
+ // this.detailInfo = res.data.data;
|
|
|
+ // },
|
|
|
async initClient(recordId) {
|
|
|
const res = await getUserMonitorKey(recordId);
|
|
|
this.userMonitor = res.data.data;
|