|
@@ -217,7 +217,8 @@ import {
|
|
|
StudentExitLiveRoom,
|
|
|
StartGroup,
|
|
|
GetGroupStatus,
|
|
|
- DealStudentConnection
|
|
|
+ DealStudentConnection,
|
|
|
+ GetStudentInfo_Connection
|
|
|
} from '@/api/live';
|
|
|
import { app } from '@/store/mutation-types';
|
|
|
import SelectMaterial from '@/components/live/SelectMaterial.vue';
|
|
@@ -236,6 +237,7 @@ export default {
|
|
|
task_id: this.$route.query.task_id,
|
|
|
// 连麦
|
|
|
connect: false,
|
|
|
+ // 连线学员信息
|
|
|
connectStudent: {},
|
|
|
// 等待接通
|
|
|
callLoading: false,
|
|
@@ -267,7 +269,8 @@ export default {
|
|
|
cs_item_name: '',
|
|
|
course_name: '',
|
|
|
teacher_name: '',
|
|
|
- student_count: 0
|
|
|
+ student_count: 0,
|
|
|
+ student_connection_info: {}
|
|
|
},
|
|
|
loadedNumber: 0,
|
|
|
speakData: {},
|
|
@@ -314,12 +317,7 @@ export default {
|
|
|
return '#38d514';
|
|
|
},
|
|
|
connectUid() {
|
|
|
- let connect = this.student_list.find(item => item.connection_status !== 0);
|
|
|
- let room_user_id = connect ? connect.room_user_id : '';
|
|
|
-
|
|
|
- return 'room_user_id' in this.connectStudent
|
|
|
- ? this.connectStudent.room_user_id
|
|
|
- : room_user_id;
|
|
|
+ return 'room_user_id' in this.connectStudent ? this.connectStudent.room_user_id : '';
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -407,7 +405,8 @@ export default {
|
|
|
cs_item_name,
|
|
|
course_name,
|
|
|
teacher_name,
|
|
|
- student_count
|
|
|
+ student_count,
|
|
|
+ student_connection_info
|
|
|
}) => {
|
|
|
this.roomInfo = {
|
|
|
room_id,
|
|
@@ -416,8 +415,17 @@ export default {
|
|
|
cs_item_name,
|
|
|
course_name,
|
|
|
teacher_name,
|
|
|
- student_count
|
|
|
+ student_count,
|
|
|
+ student_connection_info
|
|
|
};
|
|
|
+ this.connectStudent = student_connection_info;
|
|
|
+ this.roomInfo.video_mode = student_connection_info.connection_mode;
|
|
|
+ if (student_connection_info.connection_status === 1) {
|
|
|
+ this.callLoading = true;
|
|
|
+ }
|
|
|
+ if (student_connection_info.connection_status === 2) {
|
|
|
+ this.connect = true;
|
|
|
+ }
|
|
|
}
|
|
|
);
|
|
|
},
|
|
@@ -433,6 +441,12 @@ export default {
|
|
|
common.startLive();
|
|
|
},
|
|
|
|
|
|
+ getStudentInfo_Connection() {
|
|
|
+ return GetStudentInfo_Connection({ task_id: this.task_id }).then(
|
|
|
+ ({ room_user_id }) => room_user_id
|
|
|
+ );
|
|
|
+ },
|
|
|
+
|
|
|
getLiveStat() {
|
|
|
common.getLiveStat({
|
|
|
success: data => {
|
|
@@ -538,6 +552,7 @@ export default {
|
|
|
this.dealStudentConnection(connectUid, 0, this.connectStudent.connection_mode);
|
|
|
|
|
|
this.callLoading = false;
|
|
|
+ this.connect = false;
|
|
|
common.updateMcResult('', 0);
|
|
|
this.$message.success('下麦成功');
|
|
|
this.connectStudent = {};
|