|
@@ -1024,6 +1024,8 @@ import {
|
|
|
getDahuaVideoServer
|
|
|
} from '@/api/dahua/dahua'
|
|
|
import DHWs from '@/dahua/lib/DHWs'
|
|
|
+import { selectConfigKey } from "@/api/system/config";
|
|
|
+import Cookies from 'js-cookie';
|
|
|
export default {
|
|
|
dicts: ['task_source'],
|
|
|
watch: {
|
|
@@ -2340,30 +2342,16 @@ export default {
|
|
|
encrypt.setPublicKey(this.pubKey)
|
|
|
return encrypt.encrypt(value)
|
|
|
},
|
|
|
- //加入华为视频会议方法
|
|
|
+ /** ----------------------------------海康摄像头预览结束------------------------------------- */
|
|
|
+ /** ----------------------------------视频会议开始------------------------------------- */
|
|
|
joinMeeting(){
|
|
|
- let eventId = this.eventId;
|
|
|
- let subject = "视频会议";
|
|
|
- let nickName;
|
|
|
- getUserInfo().then(res => {
|
|
|
- nickName = res.data.nickName;
|
|
|
- });
|
|
|
- hasConferences(eventId).then(res => {
|
|
|
- let data = res.data;
|
|
|
- /**如果没有正在开启的会议会返回空对象**/
|
|
|
- if(res.code == 200 && Object.keys(data).length === 0){
|
|
|
- createConferences(eventId,subject).then(res => {
|
|
|
- let data = res.data;
|
|
|
- if(res.code == 200){
|
|
|
- window.open("/hwMeeting/meeting.html?nickName="+encodeURI(encodeURI(nickName))+"&conferenceID="+data.conferenceID+"&password="+data.password);
|
|
|
- }
|
|
|
- });
|
|
|
- }else{
|
|
|
- window.open("/hwMeeting/meeting.html?nickName="+encodeURI(encodeURI(nickName))+"&conferenceID="+data.conferenceID+"&password="+data.password);
|
|
|
- }
|
|
|
- });
|
|
|
+ let hwMeetingUrl;
|
|
|
+ selectConfigKey('hwMeetingUrl').then(res => {
|
|
|
+ hwMeetingUrl = res.data
|
|
|
+ window.open(hwMeetingUrl+"/"+this.eventId+"/"+this.eventName+"的会议"+"/"+Cookies.get("nickName"));
|
|
|
+ })
|
|
|
}
|
|
|
- /** ----------------------------------海康摄像头预览结束------------------------------------- */
|
|
|
+ /** ----------------------------------视频会议结束------------------------------------- */
|
|
|
}
|
|
|
}
|
|
|
|