mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
fix:打开会议窗口更改
This commit is contained in:
parent
829612e720
commit
155f42dd37
@ -298,7 +298,7 @@ export default {
|
||||
}
|
||||
}
|
||||
// 会议事件
|
||||
window.__onMeetingEvent = ({act,uuid}) => {
|
||||
window.__onMeetingEvent = ({act,uuid,channelID}) => {
|
||||
switch (act) {
|
||||
// 获取用户信息
|
||||
case "getInfo":
|
||||
@ -322,13 +322,14 @@ export default {
|
||||
break;
|
||||
//加入成功
|
||||
case "success":
|
||||
// 关闭添加会议窗口
|
||||
this.$store.dispatch("closeMeetingWindow","add")
|
||||
break;
|
||||
// 邀请
|
||||
case "invent":
|
||||
// 关闭邀请会议窗口
|
||||
this.$store.dispatch("closeMeetingWindow","invitation")
|
||||
this.$store.dispatch("showMeetingWindow",{
|
||||
type: "invitation",
|
||||
meetingid: channelID
|
||||
})
|
||||
break;
|
||||
//结束会议
|
||||
case "endMeeting":
|
||||
|
||||
@ -189,18 +189,19 @@ export default {
|
||||
handler(val) {
|
||||
switch (val.type) {
|
||||
case 'add':
|
||||
this.addShow = val.show
|
||||
this.addShow = val.show;
|
||||
this.loadIng = 0;
|
||||
break;
|
||||
case 'invitation':
|
||||
this.invitationShow = val.show
|
||||
this.invitationLoad = 0;
|
||||
this.invitationShow = val.show;
|
||||
this.invitationLoad = false;
|
||||
this.invitationData.meetingid = val.meetingid;
|
||||
break;
|
||||
case 'error':
|
||||
this.addShow = val.show
|
||||
this.addShow = val.show;
|
||||
this.loadIng = 0;
|
||||
this.invitationShow = val.show
|
||||
this.invitationLoad = 0;
|
||||
this.invitationShow = val.show;
|
||||
this.invitationLoad = false;
|
||||
$A.modalError('加入会议失败');
|
||||
break;
|
||||
}
|
||||
@ -274,6 +275,7 @@ export default {
|
||||
username: data.nickname,
|
||||
video: this.addData.tracks.includes("video"),
|
||||
audio: this.addData.tracks.includes("audio"),
|
||||
channelID: data.meetingid,
|
||||
}
|
||||
});
|
||||
this.loadIng--;
|
||||
|
||||
21
resources/assets/js/store/actions.js
vendored
21
resources/assets/js/store/actions.js
vendored
@ -3403,18 +3403,33 @@ export default {
|
||||
|
||||
|
||||
/** *****************************************************************************************/
|
||||
/** *************************************** pgp *********************************************/
|
||||
/** *************************************** meeting *********************************************/
|
||||
/** *****************************************************************************************/
|
||||
|
||||
/**
|
||||
* 关闭会议窗口
|
||||
* @param state
|
||||
* @param data
|
||||
* @param type
|
||||
*/
|
||||
closeMeetingWindow({state}, type) {
|
||||
state.meetingWindow = {
|
||||
show: false,
|
||||
type: type
|
||||
type: type,
|
||||
meetingid: 0
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
* 显示会议窗口
|
||||
* @param state
|
||||
* @param type
|
||||
* @param meetingid
|
||||
*/
|
||||
showMeetingWindow({state}, {type, meetingid}) {
|
||||
state.meetingWindow = {
|
||||
show: true,
|
||||
type: type,
|
||||
meetingid: meetingid
|
||||
};
|
||||
},
|
||||
}
|
||||
|
||||
1
resources/assets/js/store/state.js
vendored
1
resources/assets/js/store/state.js
vendored
@ -199,5 +199,6 @@ export default {
|
||||
meetingWindow: {
|
||||
show: false,
|
||||
type: "",
|
||||
meetingid: 0
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user