更新
This commit is contained in:
@ -68,7 +68,7 @@
|
||||
<ConferenceRoom v-model="conferenceRoomVisible" titleValue="会议详情" />
|
||||
|
||||
<!-- 音视频会议窗口 -->
|
||||
<MeetingView ref="refMeetingView"></MeetingView>
|
||||
<MeetingView ref="refMeetingView" :update="updateItem"></MeetingView>
|
||||
|
||||
</template>
|
||||
|
||||
@ -119,71 +119,15 @@
|
||||
const jsonData = ref('')
|
||||
onMounted(() => {
|
||||
jsonData.value = require('@/components/Consultation/components/zh_CN.json');
|
||||
nextTick(()=>{
|
||||
Init();
|
||||
})
|
||||
getList();
|
||||
tabHeightFn();
|
||||
});
|
||||
|
||||
const Init = () => {
|
||||
let token = window.localStorage.getItem("rhToken");
|
||||
if (!token) {
|
||||
let userInfo = {
|
||||
username: "linzhigongan2",
|
||||
password: "linzhigongan2",
|
||||
realm: "puc.com",
|
||||
webpucUrl: "https://89.40.9.95:16888"
|
||||
};
|
||||
lemon.login.login(userInfo).then((esacpe) => {
|
||||
token = esacpe.token;
|
||||
window.localStorage.setItem("rhToken", esacpe.token);
|
||||
getLoginAccountInfo();
|
||||
fetchConferences()
|
||||
// 注册会议管理相关事件
|
||||
useConfernceEvent()
|
||||
});
|
||||
} else {
|
||||
ConnectWebsocket(token);
|
||||
|
||||
const updateItem = (item) => {
|
||||
qcckPost(item,'/mosty-gsxt/wshs/update').then(res=>{
|
||||
getList();
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
const ConnectWebsocket = (token) => {
|
||||
lemon.login.reConnectWebsocket({
|
||||
username: "linzhigongan2",
|
||||
realm: "puc.com",
|
||||
webpucUrl: "https://89.40.9.95:16888",
|
||||
token: token
|
||||
}).then((resp) => {
|
||||
if(resp.result != 0){
|
||||
ElMessage.error(jsonData.value['errorCode'][resp.result]);
|
||||
exsit()
|
||||
}else{
|
||||
getLoginAccountInfo()
|
||||
fetchConferences()
|
||||
// 注册会议管理相关事件
|
||||
useConfernceEvent()
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const getLoginAccountInfo =() =>{
|
||||
lemon.login.getLoginAccountInfo().then(res => {
|
||||
let info = JSON.stringify(res.account_info)
|
||||
window.localStorage.setItem("rhInfo",info);
|
||||
window.localStorage.setItem("user_basedata_id",res.account_info.basedata_id);
|
||||
}).catch(err => {
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
const exsit = () =>{
|
||||
lemon.login.logout().then(res=> {
|
||||
|
||||
}).catch(err=> {
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// 搜索
|
||||
const onSearch = (val) => {
|
||||
|
||||
Reference in New Issue
Block a user