更新
This commit is contained in:
@ -24,7 +24,7 @@ const modleType = ref('')
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const inDustRialId = getItem('inDustRialId'); // 当前用户的警号
|
const inDustRialId = getItem('inDustRialId'); // 当前用户的警号
|
||||||
const sdkBDModule = useBaseDataModule();
|
const sdkBDModule = useBaseDataModule();
|
||||||
const baseInfo = getItem('rhInfo') || {};
|
const baseInfo = ref(getItem('rhInfo') || {});
|
||||||
const showVideo = ref(false)//拖动视频
|
const showVideo = ref(false)//拖动视频
|
||||||
const showDailog = ref(false)//showDailog
|
const showDailog = ref(false)//showDailog
|
||||||
const openMeeting = ref(false) //打开会议
|
const openMeeting = ref(false) //打开会议
|
||||||
@ -97,10 +97,8 @@ const handleTime = (n=10) =>{
|
|||||||
|
|
||||||
// 创建会议
|
// 创建会议
|
||||||
const conferenceActionSDK = async (record ) => {
|
const conferenceActionSDK = async (record ) => {
|
||||||
console.log(record,'=======创建会议的参数=========');
|
let data = {
|
||||||
|
subject: record.hsbt, //主题
|
||||||
const createRes = await lemon.conference.createConference({
|
|
||||||
subject: record.glxsmc, //主题
|
|
||||||
type: 1, //会议类型 0=即时会议,1=预约会议
|
type: 1, //会议类型 0=即时会议,1=预约会议
|
||||||
emergency_flag: 0, //会议紧急标识 0 = 非紧急会议,1 = 紧急会议
|
emergency_flag: 0, //会议紧急标识 0 = 非紧急会议,1 = 紧急会议
|
||||||
duration: 60, //预计时长 (分钟)
|
duration: 60, //预计时长 (分钟)
|
||||||
@ -109,15 +107,14 @@ const conferenceActionSDK = async (record ) => {
|
|||||||
appointment: handleTime(), // start_date 和 start_time 对应的 UTC 时间
|
appointment: handleTime(), // start_date 和 start_time 对应的 UTC 时间
|
||||||
members:[
|
members:[
|
||||||
{
|
{
|
||||||
alias:baseInfo.dispatcher_name,
|
alias:baseInfo.value.dispatcher_name,
|
||||||
basedata_id:baseInfo.basedata_id,
|
basedata_id:baseInfo.value.basedata_id,
|
||||||
guid:baseInfo.user_guid,
|
guid:baseInfo.value.user_guid,
|
||||||
number:baseInfo.user_id,
|
number:baseInfo.value.user_id,
|
||||||
}
|
}
|
||||||
],//当前创建人
|
],//当前创建人
|
||||||
});
|
}
|
||||||
console.log(createRes,'=======创建会议的结果=========');
|
const createRes = await lemon.conference.createConference(data);
|
||||||
|
|
||||||
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;
|
||||||
@ -130,7 +127,6 @@ 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 = {
|
||||||
@ -151,11 +147,9 @@ 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=> {})
|
||||||
}
|
}
|
||||||
@ -172,8 +166,8 @@ 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)
|
||||||
|
baseInfo.value = 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);
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
@ -183,9 +177,6 @@ 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 == '会议'){
|
||||||
//判断是否有会议号
|
//判断是否有会议号
|
||||||
@ -195,8 +186,6 @@ 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(()=>{ })
|
||||||
@ -215,17 +204,17 @@ const Init = () => {
|
|||||||
let token = window.localStorage.getItem("rhToken");
|
let token = window.localStorage.getItem("rhToken");
|
||||||
if (!token || 'undefined' == token || token == 'null') {
|
if (!token || 'undefined' == token || token == 'null') {
|
||||||
let userInfo = {
|
let userInfo = {
|
||||||
username: inDustRialId, //用户名
|
username: 'sgxtcs', //用户名
|
||||||
|
// username: inDustRialId, //用户名
|
||||||
password: "123456",
|
password: "123456",
|
||||||
realm: "puc.com",
|
realm: "puc.com",
|
||||||
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.token;
|
||||||
token = esacpe.access_token;
|
window.localStorage.setItem("rhToken", esacpe.token);
|
||||||
window.localStorage.setItem("rhToken", esacpe.access_token);
|
|
||||||
listenerEvents()
|
listenerEvents()
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
ConnectWebsocket(token);
|
ConnectWebsocket(token);
|
||||||
}
|
}
|
||||||
@ -233,7 +222,8 @@ const Init = () => {
|
|||||||
|
|
||||||
const ConnectWebsocket = (token) => {
|
const ConnectWebsocket = (token) => {
|
||||||
lemon.login.reConnectWebsocket({
|
lemon.login.reConnectWebsocket({
|
||||||
username: inDustRialId, //用户名
|
username: 'sgxtcs', //用户名
|
||||||
|
// username: inDustRialId, //用户名
|
||||||
realm: "puc.com",
|
realm: "puc.com",
|
||||||
webpucUrl: "https://89.40.9.95:16888",
|
webpucUrl: "https://89.40.9.95:16888",
|
||||||
token: token
|
token: token
|
||||||
@ -262,7 +252,7 @@ onUnmounted(()=>{
|
|||||||
lemon.login.removeLoginStatusChangeListener(loginStatusCallbackId.value);
|
lemon.login.removeLoginStatusChangeListener(loginStatusCallbackId.value);
|
||||||
})
|
})
|
||||||
|
|
||||||
defineExpose({openInit});
|
defineExpose({openInit,Init});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@ -1,141 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-dialog width="1400px" :draggable="true" custom-class="bgData" :model-value="modelValue" append-to-body
|
|
||||||
@close="close" :show-close="false">
|
|
||||||
<template #title>
|
|
||||||
<div class="title">
|
|
||||||
<div class="titleName">测试数据</div>
|
|
||||||
<div>
|
|
||||||
<el-icon :size="25" class="titleIcon">
|
|
||||||
<BottomLeft />
|
|
||||||
</el-icon>
|
|
||||||
<el-icon :size="25" class="titleIcon">
|
|
||||||
<FullScreen />
|
|
||||||
</el-icon>
|
|
||||||
<el-icon @click="close" :size="25" class="titleIcon">
|
|
||||||
<Close />
|
|
||||||
</el-icon>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="statusBar">
|
|
||||||
<div>00:04</div>
|
|
||||||
<div>正在讲话...</div>
|
|
||||||
<div>
|
|
||||||
<el-icon :size="25" class="titleIcon">
|
|
||||||
<InfoFilled />
|
|
||||||
</el-icon>
|
|
||||||
<el-icon :size="25" class="titleIcon">
|
|
||||||
<CircleCheckFilled />
|
|
||||||
</el-icon>
|
|
||||||
<el-icon @click="close" :size="25" class="titleIcon">
|
|
||||||
<Unlock />
|
|
||||||
</el-icon>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<div class="content"></div>
|
|
||||||
<template #footer>
|
|
||||||
<Footer @close="close" />
|
|
||||||
</template>
|
|
||||||
</el-dialog>
|
|
||||||
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { ref, watch, reactive, toRaw, computed, getCurrentInstance } from "vue";
|
|
||||||
import Footer from './footer.vue'
|
|
||||||
// import useCallModule from '../sdk/call.js'
|
|
||||||
const { proxy } = getCurrentInstance();
|
|
||||||
// const Call = useCallModule()
|
|
||||||
try {
|
|
||||||
window.lemon.login.login({
|
|
||||||
username: "linzhigongan1",
|
|
||||||
password: "linzhigongan1",
|
|
||||||
realm: "puc.com",
|
|
||||||
webpucUrl: "https://192.168.0.1:16888",
|
|
||||||
}).then(res => {
|
|
||||||
console.log(res,"登录成功");
|
|
||||||
}).catch(err => {
|
|
||||||
console.log(err,"登录失败");
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
} catch (error) {
|
|
||||||
console.log('error: ', error);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
const props = defineProps({
|
|
||||||
modelValue: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false
|
|
||||||
},
|
|
||||||
titleValue: {
|
|
||||||
type: String,
|
|
||||||
default: ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
const emit = defineEmits(['update:modelValue']);
|
|
||||||
const close = () => {
|
|
||||||
emit('update:modelValue', false);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
@import "@/assets/css/layout.scss";
|
|
||||||
@import "@/assets/css/element-plus.scss";
|
|
||||||
|
|
||||||
.title {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
border-bottom: 1px solid #e4e7ed;
|
|
||||||
padding: 10px;
|
|
||||||
|
|
||||||
.titleName {
|
|
||||||
font-size: 20px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
width: 40%;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.titleIcon {
|
|
||||||
margin-left: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.statusBar {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
padding: 10px 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
padding: 0 10px;
|
|
||||||
height: 60vh;
|
|
||||||
overflow: auto;
|
|
||||||
background-color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tabBoxRadio .el-checkbox__inner {
|
|
||||||
border-radius: 50% !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tabBoxRadio .el-table__header-wrapper .el-checkbox {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bgData {
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
::v-deep .el-dialog__body {
|
|
||||||
padding: 0 !important;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
.bgData .el-dialog__header,
|
|
||||||
.el-dialog__body {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@ -42,16 +42,16 @@ const handleClick = (tab) => {
|
|||||||
console.log(tab)
|
console.log(tab)
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
try {
|
// try {
|
||||||
lemon?.basedata?.fetchSystemOrg({
|
// lemon?.basedata?.fetchSystemOrg({
|
||||||
flat: true,
|
// flat: true,
|
||||||
key_word: ""
|
// key_word: ""
|
||||||
}).then(res => {
|
// }).then(res => {
|
||||||
console.log(res);
|
// console.log(res);
|
||||||
})
|
// })
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
console.log('error: ', error);
|
// console.log('error: ', error);
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
|
|
||||||
const getJgList = () => {
|
const getJgList = () => {
|
||||||
|
|||||||
@ -1,12 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div ref="searchBox" class="mt10">
|
<div ref="searchBox" class="mt10">
|
||||||
<Search :searchArr="searchConfiger" @submit="onSearch" >
|
<Search :searchArr="searchConfiger" @submit="onSearch" >
|
||||||
<el-button size="small" type="primary" @click="addEdit('add', '')">
|
<el-button size="small" type="primary" @click="addEdit('add', '')">
|
||||||
<el-icon style="vertical-align: middle">
|
<el-icon style="vertical-align: middle">
|
||||||
<CirclePlus />
|
<CirclePlus />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span style="vertical-align: middle">新增</span>
|
<span style="vertical-align: middle">新增</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
|
<el-button size="small" type="primary" @click="handleLogin">
|
||||||
|
<span style="vertical-align: middle">登录</span>
|
||||||
|
</el-button>
|
||||||
|
|
||||||
</Search>
|
</Search>
|
||||||
</div>
|
</div>
|
||||||
@ -223,9 +227,13 @@ const handleSumbit = (item) => {
|
|||||||
const joinMeeting = (item, type) => {
|
const joinMeeting = (item, type) => {
|
||||||
item.number = item.hybh;
|
item.number = item.hybh;
|
||||||
refMeetingView.value.openInit(item, type)
|
refMeetingView.value.openInit(item, type)
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const handleLogin = () =>{
|
||||||
|
refMeetingView.value.Init();
|
||||||
|
}
|
||||||
|
|
||||||
// 反馈情况
|
// 反馈情况
|
||||||
const feedBack = (item) => {
|
const feedBack = (item) => {
|
||||||
feedbackFormRef.value.open(item.id);
|
feedbackFormRef.value.open(item.id);
|
||||||
@ -237,6 +245,7 @@ const viewFeedback = (item) => {
|
|||||||
viewFeedbackRef.value.open(item.fkList || []);
|
viewFeedbackRef.value.open(item.fkList || []);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
const delDictItem = (id) => {
|
const delDictItem = (id) => {
|
||||||
proxy.$confirm("确定要删除", "警告", { type: "warning" }).then(() => {
|
proxy.$confirm("确定要删除", "警告", { type: "warning" }).then(() => {
|
||||||
@ -252,6 +261,8 @@ const addEdit = (type, row) => {
|
|||||||
detailDiloag.value.init(type, row);
|
detailDiloag.value.init(type, row);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 表格高度计算
|
// 表格高度计算
|
||||||
const tabHeightFn = () => {
|
const tabHeightFn = () => {
|
||||||
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 210;
|
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 210;
|
||||||
|
|||||||
Reference in New Issue
Block a user