Compare commits
2 Commits
76df2bc42c
...
5bb7ca0515
| Author | SHA1 | Date | |
|---|---|---|---|
| 5bb7ca0515 | |||
| 00c9f1e07f |
@ -67,13 +67,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { getItem } from "@/utils/storage";
|
||||||
import { timeValidate } from '@/utils/tools'
|
import { timeValidate } from '@/utils/tools'
|
||||||
import { ref,defineEmits, onMounted } from 'vue'
|
import { ref,defineEmits, onMounted } from 'vue'
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue:Boolean,
|
modelValue:Boolean,
|
||||||
})
|
})
|
||||||
const emit = defineEmits(['update:modelValue','save'])
|
const emit = defineEmits(['update:modelValue','save'])
|
||||||
const baseInfo = localStorage.getItem('rhInfo') ? JSON.parse(localStorage.getItem('rhInfo')) : {};
|
const baseInfo = getItem('rhInfo') || {};
|
||||||
const formData = ref({
|
const formData = ref({
|
||||||
alarm:1,
|
alarm:1,
|
||||||
duration:'30',
|
duration:'30',
|
||||||
|
|||||||
@ -34,6 +34,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { getItem } from "@/utils/storage";
|
||||||
import useCallModule from '@/components/Consultation/sdk/call';
|
import useCallModule from '@/components/Consultation/sdk/call';
|
||||||
import useRecorder from '@/components/Consultation/hooks/recorder';
|
import useRecorder from '@/components/Consultation/hooks/recorder';
|
||||||
import DraggableResizableVue from "draggable-resizable-vue3";
|
import DraggableResizableVue from "draggable-resizable-vue3";
|
||||||
@ -43,7 +44,7 @@ const props = defineProps({
|
|||||||
modelValue:Boolean,
|
modelValue:Boolean,
|
||||||
})
|
})
|
||||||
const emit = defineEmits(['update:modelValue'])
|
const emit = defineEmits(['update:modelValue'])
|
||||||
const baseInfo = localStorage.getItem('rhInfo') ? JSON.parse(localStorage.getItem('rhInfo')) : {};
|
const baseInfo = getItem('rhInfo') || {};
|
||||||
let waveContainer;
|
let waveContainer;
|
||||||
let audioWave = SiriWave || undefined;
|
let audioWave = SiriWave || undefined;
|
||||||
const element = ref({
|
const element = ref({
|
||||||
|
|||||||
@ -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 = localStorage.getItem('rhInfo') ? JSON.parse(localStorage.getItem('rhInfo')) : {};
|
const baseInfo = 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) //打开会议
|
||||||
@ -155,45 +155,6 @@ const fetchConferences = (it) =>{
|
|||||||
}).catch(err=> {})
|
}).catch(err=> {})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const Init = () => {
|
|
||||||
let token = window.localStorage.getItem("rhToken");
|
|
||||||
if (!token) {
|
|
||||||
let userInfo = {
|
|
||||||
username: inDustRialId, //用户名
|
|
||||||
password: "123456",
|
|
||||||
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);
|
|
||||||
listenerEvents()
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
ConnectWebsocket(token);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const ConnectWebsocket = (token) => {
|
|
||||||
lemon.login.reConnectWebsocket({
|
|
||||||
username: inDustRialId, //用户名
|
|
||||||
realm: "puc.com",
|
|
||||||
webpucUrl: "https://89.40.9.95:16888",
|
|
||||||
token: token
|
|
||||||
}).then((resp) => {
|
|
||||||
if(resp.result != 0){
|
|
||||||
localStorage.removeItem('rhToken')
|
|
||||||
localStorage.removeItem('user_basedata_id')
|
|
||||||
let messge = jsonData.value['errorCode'][resp.result] +',请重新刷新页面'
|
|
||||||
ElMessage.error(messge);
|
|
||||||
lemon.login.logout().then(res=> {}).catch(err=> {})
|
|
||||||
}else{
|
|
||||||
listenerEvents();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
// 初始化后需要监听的方法
|
// 初始化后需要监听的方法
|
||||||
const listenerEvents = () =>{
|
const listenerEvents = () =>{
|
||||||
getLoginAccountInfo() //前账号的登录信息
|
getLoginAccountInfo() //前账号的登录信息
|
||||||
@ -241,6 +202,47 @@ const openInit = (it,type) =>{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const Init = () => {
|
||||||
|
let token = window.localStorage.getItem("rhToken");
|
||||||
|
console.log(token,'=======token');
|
||||||
|
if (!token || 'undefined' == token || token == 'null') {
|
||||||
|
console.log('融合通信登录=======token');
|
||||||
|
let userInfo = {
|
||||||
|
username: inDustRialId, //用户名
|
||||||
|
password: "123456",
|
||||||
|
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);
|
||||||
|
listenerEvents()
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
console.log('融合通信链接=======token');
|
||||||
|
ConnectWebsocket(token);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const ConnectWebsocket = (token) => {
|
||||||
|
lemon.login.reConnectWebsocket({
|
||||||
|
username: inDustRialId, //用户名
|
||||||
|
realm: "puc.com",
|
||||||
|
webpucUrl: "https://89.40.9.95:16888",
|
||||||
|
token: token
|
||||||
|
}).then((resp) => {
|
||||||
|
if(resp.result != 0){
|
||||||
|
localStorage.removeItem('rhToken')
|
||||||
|
localStorage.removeItem('user_basedata_id')
|
||||||
|
let messge = jsonData.value['errorCode'][resp.result] +',请重新刷新页面'
|
||||||
|
ElMessage.error(messge);
|
||||||
|
lemon.login.logout().then(res=> {}).catch(err=> {})
|
||||||
|
}else{
|
||||||
|
listenerEvents();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
onMounted(()=>{
|
onMounted(()=>{
|
||||||
console.log('组件挂载了');
|
console.log('组件挂载了');
|
||||||
jsonData.value = require('./components/zh_CN.json');
|
jsonData.value = require('./components/zh_CN.json');
|
||||||
|
|||||||
@ -118,8 +118,7 @@ export default {
|
|||||||
oatuhLogin(ctx, userInfo) {
|
oatuhLogin(ctx, userInfo) {
|
||||||
const { token, systemId } = userInfo;
|
const { token, systemId } = userInfo;
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
unifiedLogin({ token, systemId, ssxt: "sgxt" })
|
unifiedLogin({ token, systemId, ssxt: "sgxt" }).then((data) => {
|
||||||
.then((data) => {
|
|
||||||
if (data.deptList.length === 1) {
|
if (data.deptList.length === 1) {
|
||||||
this.commit("user/setToken", data.jwtToken);
|
this.commit("user/setToken", data.jwtToken);
|
||||||
this.commit("user/setDeptId", data.deptList);
|
this.commit("user/setDeptId", data.deptList);
|
||||||
@ -147,8 +146,7 @@ export default {
|
|||||||
// 保存登录时间
|
// 保存登录时间
|
||||||
setTimeStamp();
|
setTimeStamp();
|
||||||
resolve(data);
|
resolve(data);
|
||||||
})
|
}).catch((err) => {
|
||||||
.catch((err) => {
|
|
||||||
reject(err);
|
reject(err);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -72,10 +72,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 详情 -->
|
<!-- 详情 -->
|
||||||
<DetailForm ref="detailDiloag" @updateDate="getList" />
|
<DetailForm ref="detailDiloag" @updateDate="getList" />
|
||||||
|
|
||||||
<RoomDetail />
|
<RoomDetail />
|
||||||
|
|
||||||
<!-- 音视频会议窗口 -->
|
<!-- 音视频会议窗口 -->
|
||||||
<MeetingView ref="refMeetingView" :update="updateItem"></MeetingView>
|
<MeetingView ref="refMeetingView" @update="updateItem"></MeetingView>
|
||||||
|
|
||||||
<!-- 反馈弹窗 -->
|
<!-- 反馈弹窗 -->
|
||||||
<FeedbackForm ref="feedbackFormRef" @success="getList" />
|
<FeedbackForm ref="feedbackFormRef" @success="getList" />
|
||||||
@ -84,8 +85,12 @@
|
|||||||
<ViewFeedback ref="viewFeedbackRef" />
|
<ViewFeedback ref="viewFeedbackRef" />
|
||||||
|
|
||||||
<Information v-model="showDialog" title="发送指令" @submit="seedFqzl" @close='close'>
|
<Information v-model="showDialog" title="发送指令" @submit="seedFqzl" @close='close'>
|
||||||
<SemdFqzl ref="semdFqzlRef" :itemData="itemData" @handleClose="handleClose" identification="meeting"
|
<SemdFqzl
|
||||||
:tacitly="tacitly" />
|
ref="semdFqzlRef"
|
||||||
|
:itemData="itemData"
|
||||||
|
@handleClose="handleClose"
|
||||||
|
identification="meeting"
|
||||||
|
/>
|
||||||
</Information>
|
</Information>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@ -124,9 +129,7 @@ const itemData = ref({})
|
|||||||
const cityIntelligenceCommand = ref(isShiQingZhi())
|
const cityIntelligenceCommand = ref(isShiQingZhi())
|
||||||
/** 下发指令 */
|
/** 下发指令 */
|
||||||
const showDialog = ref(false)
|
const showDialog = ref(false)
|
||||||
const tacitly = {
|
|
||||||
// title:'ryXm'
|
|
||||||
}
|
|
||||||
|
|
||||||
const searchConfiger = ref([
|
const searchConfiger = ref([
|
||||||
{
|
{
|
||||||
@ -152,12 +155,8 @@ const pageData = reactive({
|
|||||||
pageCurrent: 1
|
pageCurrent: 1
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const jsonData = ref('')
|
|
||||||
/** 当前行数据 */
|
|
||||||
const currRow = ref({})
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
jsonData.value = require('@/components/Consultation/components/zh_CN.json');
|
|
||||||
getList();
|
getList();
|
||||||
tabHeightFn();
|
tabHeightFn();
|
||||||
});
|
});
|
||||||
@ -223,7 +222,9 @@ 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 feedBack = (item) => {
|
const feedBack = (item) => {
|
||||||
feedbackFormRef.value.open(item.id);
|
feedbackFormRef.value.open(item.id);
|
||||||
|
|||||||
@ -78,6 +78,7 @@ const idCardNoLoginLogin = (idCard, orgId) => {
|
|||||||
orgCode: orgId,
|
orgCode: orgId,
|
||||||
ssxt: "sgxt"
|
ssxt: "sgxt"
|
||||||
}).then((resIdCard) => {
|
}).then((resIdCard) => {
|
||||||
|
setItem("inDustRialId", resIdCard.inDustRialId);
|
||||||
// 登录成功后设置token和用户信息到store
|
// 登录成功后设置token和用户信息到store
|
||||||
store.commit("user/setToken", resIdCard.jwtToken);
|
store.commit("user/setToken", resIdCard.jwtToken);
|
||||||
store.commit("user/setDeptList", resIdCard.deptList);
|
store.commit("user/setDeptList", resIdCard.deptList);
|
||||||
|
|||||||
Reference in New Issue
Block a user