更新
This commit is contained in:
BIN
node_modules.zip
BIN
node_modules.zip
Binary file not shown.
854
package-lock.json
generated
854
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -16,8 +16,9 @@ import { ElMessage,ElMessageBox,ElNotification } from "element-plus";
|
||||
import useBaseDataModule from '@/components/Consultation/sdk/baseData';
|
||||
import AudioAndVoice from './components/audioAndVoice.vue'
|
||||
import MeetingView from './components/meetingView.vue'
|
||||
import { defineExpose , nextTick, onMounted, onUnmounted, ref} from 'vue';
|
||||
import { defineExpose , nextTick, onMounted, onUnmounted, defineEmits, ref} from 'vue';
|
||||
import { useStore } from "vuex";
|
||||
const emit = defineEmits(['update']);
|
||||
const modleType = ref('')
|
||||
const store = useStore();
|
||||
const sdkBDModule = useBaseDataModule();
|
||||
@ -115,6 +116,7 @@ const conferenceActionSDK = async (record ) => {
|
||||
if (createRes.result === 0) {
|
||||
ElMessage.success(jsonData.value['data']['conference.book.result.ok']);
|
||||
record.number = createRes.meeting.number;
|
||||
emit('update',record);
|
||||
enterConferenceByNumber(record) //进入会议
|
||||
} else {
|
||||
ElMessage.error(jsonData.value['errorCode'][createRes?.result]);
|
||||
@ -156,8 +158,8 @@ const Init = () => {
|
||||
let token = window.localStorage.getItem("rhToken");
|
||||
if (!token) {
|
||||
let userInfo = {
|
||||
username: "linzhigongan2",
|
||||
password: "linzhigongan2",
|
||||
username: "sgxtcs",
|
||||
password: "sgxtcs",
|
||||
realm: "puc.com",
|
||||
webpucUrl: "https://89.40.9.95:16888"
|
||||
};
|
||||
@ -173,7 +175,7 @@ const Init = () => {
|
||||
|
||||
const ConnectWebsocket = (token) => {
|
||||
lemon.login.reConnectWebsocket({
|
||||
username: "linzhigongan2",
|
||||
username: "sgxtcs",
|
||||
realm: "puc.com",
|
||||
webpucUrl: "https://89.40.9.95:16888",
|
||||
token: token
|
||||
|
||||
@ -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