更新
This commit is contained in:
@ -97,6 +97,8 @@ const handleTime = (n=10) =>{
|
|||||||
|
|
||||||
// 创建会议
|
// 创建会议
|
||||||
const conferenceActionSDK = async (record ) => {
|
const conferenceActionSDK = async (record ) => {
|
||||||
|
console.log(record,'=======创建会议的参数=========');
|
||||||
|
|
||||||
const createRes = await lemon.conference.createConference({
|
const createRes = await lemon.conference.createConference({
|
||||||
subject: record.glxsmc, //主题
|
subject: record.glxsmc, //主题
|
||||||
type: 1, //会议类型 0=即时会议,1=预约会议
|
type: 1, //会议类型 0=即时会议,1=预约会议
|
||||||
@ -114,6 +116,8 @@ const conferenceActionSDK = async (record ) => {
|
|||||||
}
|
}
|
||||||
],//当前创建人
|
],//当前创建人
|
||||||
});
|
});
|
||||||
|
console.log(createRes,'=======创建会议的结果=========');
|
||||||
|
|
||||||
if (createRes.result === 0) {
|
if (createRes.result === 0) {
|
||||||
ElMessage.success(jsonData.value['data']['conference.book.result.ok']);
|
ElMessage.success(jsonData.value['data']['conference.book.result.ok']);
|
||||||
record.number = createRes.meeting.number;
|
record.number = createRes.meeting.number;
|
||||||
@ -126,6 +130,7 @@ const conferenceActionSDK = async (record ) => {
|
|||||||
|
|
||||||
// 通过会议编号进入会议
|
// 通过会议编号进入会议
|
||||||
const enterConferenceByNumber = (it) =>{
|
const enterConferenceByNumber = (it) =>{
|
||||||
|
console.log(it,'=============进入会议========');
|
||||||
openMeeting.value = true;
|
openMeeting.value = true;
|
||||||
nextTick(()=>{
|
nextTick(()=>{
|
||||||
let params = {
|
let params = {
|
||||||
@ -136,7 +141,7 @@ const enterConferenceByNumber = (it) =>{
|
|||||||
"camera_status": 1
|
"camera_status": 1
|
||||||
}
|
}
|
||||||
lemon.conference.enterConferenceByNumber(params).then(res=> {
|
lemon.conference.enterConferenceByNumber(params).then(res=> {
|
||||||
console.log(res,'加入会议......');
|
console.log(res,'=======加入会议=======');
|
||||||
}).catch(err=> {
|
}).catch(err=> {
|
||||||
console.log(err,' 加入会议失败......');
|
console.log(err,' 加入会议失败......');
|
||||||
})
|
})
|
||||||
@ -146,9 +151,11 @@ const enterConferenceByNumber = (it) =>{
|
|||||||
// 获取会议
|
// 获取会议
|
||||||
const fetchConferences = (it) =>{
|
const fetchConferences = (it) =>{
|
||||||
lemon.conference.fetchConferences().then(res=> {
|
lemon.conference.fetchConferences().then(res=> {
|
||||||
|
console.log(res,'===============获取会议');
|
||||||
meetList.value = res.conferenceList;
|
meetList.value = res.conferenceList;
|
||||||
let obj = meetList.value.find(v=>v.number == it.number);
|
let obj = meetList.value.find(v=>v.number == it.number);
|
||||||
// 会议存在 ? 进入会议 : 创建会议 ;
|
// 会议存在 ? 进入会议 : 创建会议 ;
|
||||||
|
console.log(obj,'=============会议是否存在');
|
||||||
obj ? enterConferenceByNumber(it) : conferenceActionSDK(it) ;
|
obj ? enterConferenceByNumber(it) : conferenceActionSDK(it) ;
|
||||||
}).catch(err=> {})
|
}).catch(err=> {})
|
||||||
}
|
}
|
||||||
@ -165,6 +172,7 @@ const listenerEvents = () =>{
|
|||||||
|
|
||||||
const getLoginAccountInfo =() =>{
|
const getLoginAccountInfo =() =>{
|
||||||
lemon.login.getLoginAccountInfo().then(res => {
|
lemon.login.getLoginAccountInfo().then(res => {
|
||||||
|
console.log(res,'=======获取登录账号信息=========');
|
||||||
let info = JSON.stringify(res.account_info)
|
let info = JSON.stringify(res.account_info)
|
||||||
window.localStorage.setItem("rhInfo",info);
|
window.localStorage.setItem("rhInfo",info);
|
||||||
window.localStorage.setItem("user_basedata_id",res.account_info.basedata_id);
|
window.localStorage.setItem("user_basedata_id",res.account_info.basedata_id);
|
||||||
@ -175,6 +183,9 @@ const getLoginAccountInfo =() =>{
|
|||||||
|
|
||||||
// 加入会议
|
// 加入会议
|
||||||
const openInit = (it,type) =>{
|
const openInit = (it,type) =>{
|
||||||
|
console.log(it,'===========假日会议的数据===========');
|
||||||
|
console.log(type,'===========会议的类型===========');
|
||||||
|
|
||||||
modleType.value = type;
|
modleType.value = type;
|
||||||
if(type == '会议'){
|
if(type == '会议'){
|
||||||
//判断是否有会议号
|
//判断是否有会议号
|
||||||
@ -184,10 +195,11 @@ const openInit = (it,type) =>{
|
|||||||
cancelButtonText:'取消',
|
cancelButtonText:'取消',
|
||||||
type:'warning',
|
type:'warning',
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
|
console.log(it.number,'===============会议号========');
|
||||||
|
|
||||||
// 会议号存在 ? 获取会议列表里面是否包含该条会议 : 创建会议 ;
|
// 会议号存在 ? 获取会议列表里面是否包含该条会议 : 创建会议 ;
|
||||||
it.number ? fetchConferences(it) : conferenceActionSDK(it);
|
it.number ? fetchConferences(it) : conferenceActionSDK(it);
|
||||||
}).catch(()=>{ })
|
}).catch(()=>{ })
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(['对讲机','无人机'].includes(type)){
|
if(['对讲机','无人机'].includes(type)){
|
||||||
@ -209,6 +221,7 @@ const Init = () => {
|
|||||||
webpucUrl: "https://89.40.9.95:16888"
|
webpucUrl: "https://89.40.9.95:16888"
|
||||||
};
|
};
|
||||||
lemon.login.login(userInfo).then((esacpe) => {
|
lemon.login.login(userInfo).then((esacpe) => {
|
||||||
|
console.log(esacpe,'=======登录成功=========');
|
||||||
token = esacpe.access_token;
|
token = esacpe.access_token;
|
||||||
window.localStorage.setItem("rhToken", esacpe.access_token);
|
window.localStorage.setItem("rhToken", esacpe.access_token);
|
||||||
listenerEvents()
|
listenerEvents()
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
<span style="vertical-align: middle">新增</span>
|
<span style="vertical-align: middle">新增</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
</Search>
|
</Search>
|
||||||
</div>
|
</div>
|
||||||
<div class="tabBox margTop">
|
<div class="tabBox margTop">
|
||||||
|
|||||||
Reference in New Issue
Block a user