diff --git a/src/views/RongyunCommunication/RongYunBox/index.vue b/src/views/RongyunCommunication/RongYunBox/index.vue
index 963855e..6571b3e 100644
--- a/src/views/RongyunCommunication/RongYunBox/index.vue
+++ b/src/views/RongyunCommunication/RongYunBox/index.vue
@@ -68,12 +68,7 @@
:popper-append-to-body="true"
popper-class="eloption"
>
-
+
@@ -111,6 +106,8 @@
} from '@/views/RongyunCommunication/rongyunjs/rongyunApi.js';
import { findCurrentTreeObj } from '@/utils/ruoyi';
+import { RCCallErrorCode } from '@rongcloud/plugin-call';
+
const appStore = useUserStore();
const useRongyunStore = rongyunStore();
const { proxy } = getCurrentInstance();
@@ -409,24 +406,48 @@
GetallOnline();
} else {
const reason = code === RCCallErrorCode.NOT_IN_GROUP ? '当前用户未加入群组' : code;
- proxy.$modal.msgWarning(`呼叫失败,错误原因:${reason}`);
+ proxy.$modal.msgWarning(`呼叫失败,错误原因:${code}`);
removeVideoEl();
}
});
};
+let endids = ref([]);
// 邀请用户加入当前通话(仅限群组)
const inviteCall = () => {
if (Getidinvite.value && Getidinvite.value.length) {
+ console.log('点击了邀请', Getidinvite.value, inviteuserIdsList.value);
+ let ids = [];
+ let GetuserList = [];
+ Getidinvite.value.map(item => {
+ inviteuserIdsList.value.map(p => {
+ if (item == p.id) {
+ GetuserList.push(p);
+ }
+ });
+ });
+ console.log('点击了邀请', GetuserList);
+
+ GetuserList.map(item => {
+ item.userTokenList.length &&
+ item.userTokenList.map(p => {
+ if (p.isOnlion) {
+ ids.push(p.registerThridUserId);
+ }
+ });
+ });
+
+ endids.value = ids;
+
let params = {
groupId: props.ryUser.groupId,
- ids: Getidinvite.value.join(','),
+ ids: ids.join(','),
};
groupJoinUsers(params).then(res => {
console.log(res);
- console.log('点击了邀请', Getidinvite.value);
- useRongyunStore.callSession.invite(Getidinvite.value).then(({ code }) => {
+ console.log('点击了邀请', ids);
+ useRongyunStore.callSession.invite(ids).then(({ code }) => {
console.log(code);
if (code === 10000) {
proxy.$modal.msgSuccess(`邀请成功`);
@@ -489,23 +510,20 @@
// 获取所有注册用户
const GetallOnline = item => {
inviteuserIdsList.value = [];
+ console.log('被邀请人', props.ryUser);
+ // let havaUser = [];
- // let params = {
- // isOnlion: 1,
- // };
+ // props.ryUser.userIds.map(item => {
+ // havaUser.push(item.split('_')[0]);
+ // });
+
+ // console.log('被邀请人', havaUser);
+
listrcloudUnitUser().then(res => {
res.data.map(item => {
- item.userTokenList.map(p => {
- p.name = item.name;
- // 过滤数据 保留当前在线并且不在已呼叫名单上的人
- if (!props.ryUser.userIds.includes(p.registerThridUserId)) {
- if (p.isOnlion == 1 && p.registerPlatform == 'web') {
- inviteuserIdsList.value.push(p);
- } else if (p.registerPlatform == 'app') {
- inviteuserIdsList.value.push(p);
- }
- }
- });
+ if (item.isOnlion && !props.ryUser.userIds.includes(item.phone)) {
+ inviteuserIdsList.value.push(item);
+ }
});
console.log('被邀请人', inviteuserIdsList.value, props.ryUser.userIds);
});
@@ -538,8 +556,8 @@
node.innerHTML = videoTpl;
node.classList.add('video-item');
- let length = allData.userList.length;
- console.log('什么东西', allData.userId, uid, props.callType, length);
+ let length = allData.userList.length + endids.value.length;
+ console.log('什么东西xxxxx', allData.userId, uid, props.callType, length);
// 根据人数判断渲染不同的视图样式
if (allData.userId + '_web' == uid && length <= 2) {
@@ -562,6 +580,20 @@
const videoEl = document.getElementById(`${track.getUserId()}`);
track.play(videoEl);
}
+ const targetElements = document.querySelectorAll('.video-item');
+ console.log('targetElements', targetElements);
+
+ targetElements.forEach(target => {
+ target.classList.remove('video-item-4');
+ target.classList.remove('video-item-8');
+
+ if (length > 2 && length <= 4) {
+ target.classList.add('video-item-4');
+ }
+ if (length > 4 && length <= 8) {
+ target.classList.add('video-item-8');
+ }
+ });
}
};
diff --git a/src/views/RongyunCommunication/RongYunBox/index.vue b/src/views/RongyunCommunication/RongYunBox/index.vue
index 963855e..6571b3e 100644
--- a/src/views/RongyunCommunication/RongYunBox/index.vue
+++ b/src/views/RongyunCommunication/RongYunBox/index.vue
@@ -68,12 +68,7 @@
:popper-append-to-body="true"
popper-class="eloption"
>
-
+
@@ -111,6 +106,8 @@
} from '@/views/RongyunCommunication/rongyunjs/rongyunApi.js';
import { findCurrentTreeObj } from '@/utils/ruoyi';
+import { RCCallErrorCode } from '@rongcloud/plugin-call';
+
const appStore = useUserStore();
const useRongyunStore = rongyunStore();
const { proxy } = getCurrentInstance();
@@ -409,24 +406,48 @@
GetallOnline();
} else {
const reason = code === RCCallErrorCode.NOT_IN_GROUP ? '当前用户未加入群组' : code;
- proxy.$modal.msgWarning(`呼叫失败,错误原因:${reason}`);
+ proxy.$modal.msgWarning(`呼叫失败,错误原因:${code}`);
removeVideoEl();
}
});
};
+let endids = ref([]);
// 邀请用户加入当前通话(仅限群组)
const inviteCall = () => {
if (Getidinvite.value && Getidinvite.value.length) {
+ console.log('点击了邀请', Getidinvite.value, inviteuserIdsList.value);
+ let ids = [];
+ let GetuserList = [];
+ Getidinvite.value.map(item => {
+ inviteuserIdsList.value.map(p => {
+ if (item == p.id) {
+ GetuserList.push(p);
+ }
+ });
+ });
+ console.log('点击了邀请', GetuserList);
+
+ GetuserList.map(item => {
+ item.userTokenList.length &&
+ item.userTokenList.map(p => {
+ if (p.isOnlion) {
+ ids.push(p.registerThridUserId);
+ }
+ });
+ });
+
+ endids.value = ids;
+
let params = {
groupId: props.ryUser.groupId,
- ids: Getidinvite.value.join(','),
+ ids: ids.join(','),
};
groupJoinUsers(params).then(res => {
console.log(res);
- console.log('点击了邀请', Getidinvite.value);
- useRongyunStore.callSession.invite(Getidinvite.value).then(({ code }) => {
+ console.log('点击了邀请', ids);
+ useRongyunStore.callSession.invite(ids).then(({ code }) => {
console.log(code);
if (code === 10000) {
proxy.$modal.msgSuccess(`邀请成功`);
@@ -489,23 +510,20 @@
// 获取所有注册用户
const GetallOnline = item => {
inviteuserIdsList.value = [];
+ console.log('被邀请人', props.ryUser);
+ // let havaUser = [];
- // let params = {
- // isOnlion: 1,
- // };
+ // props.ryUser.userIds.map(item => {
+ // havaUser.push(item.split('_')[0]);
+ // });
+
+ // console.log('被邀请人', havaUser);
+
listrcloudUnitUser().then(res => {
res.data.map(item => {
- item.userTokenList.map(p => {
- p.name = item.name;
- // 过滤数据 保留当前在线并且不在已呼叫名单上的人
- if (!props.ryUser.userIds.includes(p.registerThridUserId)) {
- if (p.isOnlion == 1 && p.registerPlatform == 'web') {
- inviteuserIdsList.value.push(p);
- } else if (p.registerPlatform == 'app') {
- inviteuserIdsList.value.push(p);
- }
- }
- });
+ if (item.isOnlion && !props.ryUser.userIds.includes(item.phone)) {
+ inviteuserIdsList.value.push(item);
+ }
});
console.log('被邀请人', inviteuserIdsList.value, props.ryUser.userIds);
});
@@ -538,8 +556,8 @@
node.innerHTML = videoTpl;
node.classList.add('video-item');
- let length = allData.userList.length;
- console.log('什么东西', allData.userId, uid, props.callType, length);
+ let length = allData.userList.length + endids.value.length;
+ console.log('什么东西xxxxx', allData.userId, uid, props.callType, length);
// 根据人数判断渲染不同的视图样式
if (allData.userId + '_web' == uid && length <= 2) {
@@ -562,6 +580,20 @@
const videoEl = document.getElementById(`${track.getUserId()}`);
track.play(videoEl);
}
+ const targetElements = document.querySelectorAll('.video-item');
+ console.log('targetElements', targetElements);
+
+ targetElements.forEach(target => {
+ target.classList.remove('video-item-4');
+ target.classList.remove('video-item-8');
+
+ if (length > 2 && length <= 4) {
+ target.classList.add('video-item-4');
+ }
+ if (length > 4 && length <= 8) {
+ target.classList.add('video-item-8');
+ }
+ });
}
};
diff --git a/src/views/RongyunCommunication/index.vue b/src/views/RongyunCommunication/index.vue
index 310fb39..6debc56 100644
--- a/src/views/RongyunCommunication/index.vue
+++ b/src/views/RongyunCommunication/index.vue
@@ -498,6 +498,21 @@
let videoEl = document.getElementById(uid);
track.play(videoEl);
}
+
+ const targetElements = document.querySelectorAll('.video-item');
+ console.log('targetElements', targetElements);
+
+ targetElements.forEach(target => {
+ target.classList.remove('video-item-4');
+ target.classList.remove('video-item-8');
+
+ if (length > 2 && length <= 4) {
+ target.classList.add('video-item-4');
+ }
+ if (length > 4 && length <= 8) {
+ target.classList.add('video-item-8');
+ }
+ });
}
};
//关闭视频弹窗
diff --git a/src/views/RongyunCommunication/RongYunBox/index.vue b/src/views/RongyunCommunication/RongYunBox/index.vue
index 963855e..6571b3e 100644
--- a/src/views/RongyunCommunication/RongYunBox/index.vue
+++ b/src/views/RongyunCommunication/RongYunBox/index.vue
@@ -68,12 +68,7 @@
:popper-append-to-body="true"
popper-class="eloption"
>
-
+
@@ -111,6 +106,8 @@
} from '@/views/RongyunCommunication/rongyunjs/rongyunApi.js';
import { findCurrentTreeObj } from '@/utils/ruoyi';
+import { RCCallErrorCode } from '@rongcloud/plugin-call';
+
const appStore = useUserStore();
const useRongyunStore = rongyunStore();
const { proxy } = getCurrentInstance();
@@ -409,24 +406,48 @@
GetallOnline();
} else {
const reason = code === RCCallErrorCode.NOT_IN_GROUP ? '当前用户未加入群组' : code;
- proxy.$modal.msgWarning(`呼叫失败,错误原因:${reason}`);
+ proxy.$modal.msgWarning(`呼叫失败,错误原因:${code}`);
removeVideoEl();
}
});
};
+let endids = ref([]);
// 邀请用户加入当前通话(仅限群组)
const inviteCall = () => {
if (Getidinvite.value && Getidinvite.value.length) {
+ console.log('点击了邀请', Getidinvite.value, inviteuserIdsList.value);
+ let ids = [];
+ let GetuserList = [];
+ Getidinvite.value.map(item => {
+ inviteuserIdsList.value.map(p => {
+ if (item == p.id) {
+ GetuserList.push(p);
+ }
+ });
+ });
+ console.log('点击了邀请', GetuserList);
+
+ GetuserList.map(item => {
+ item.userTokenList.length &&
+ item.userTokenList.map(p => {
+ if (p.isOnlion) {
+ ids.push(p.registerThridUserId);
+ }
+ });
+ });
+
+ endids.value = ids;
+
let params = {
groupId: props.ryUser.groupId,
- ids: Getidinvite.value.join(','),
+ ids: ids.join(','),
};
groupJoinUsers(params).then(res => {
console.log(res);
- console.log('点击了邀请', Getidinvite.value);
- useRongyunStore.callSession.invite(Getidinvite.value).then(({ code }) => {
+ console.log('点击了邀请', ids);
+ useRongyunStore.callSession.invite(ids).then(({ code }) => {
console.log(code);
if (code === 10000) {
proxy.$modal.msgSuccess(`邀请成功`);
@@ -489,23 +510,20 @@
// 获取所有注册用户
const GetallOnline = item => {
inviteuserIdsList.value = [];
+ console.log('被邀请人', props.ryUser);
+ // let havaUser = [];
- // let params = {
- // isOnlion: 1,
- // };
+ // props.ryUser.userIds.map(item => {
+ // havaUser.push(item.split('_')[0]);
+ // });
+
+ // console.log('被邀请人', havaUser);
+
listrcloudUnitUser().then(res => {
res.data.map(item => {
- item.userTokenList.map(p => {
- p.name = item.name;
- // 过滤数据 保留当前在线并且不在已呼叫名单上的人
- if (!props.ryUser.userIds.includes(p.registerThridUserId)) {
- if (p.isOnlion == 1 && p.registerPlatform == 'web') {
- inviteuserIdsList.value.push(p);
- } else if (p.registerPlatform == 'app') {
- inviteuserIdsList.value.push(p);
- }
- }
- });
+ if (item.isOnlion && !props.ryUser.userIds.includes(item.phone)) {
+ inviteuserIdsList.value.push(item);
+ }
});
console.log('被邀请人', inviteuserIdsList.value, props.ryUser.userIds);
});
@@ -538,8 +556,8 @@
node.innerHTML = videoTpl;
node.classList.add('video-item');
- let length = allData.userList.length;
- console.log('什么东西', allData.userId, uid, props.callType, length);
+ let length = allData.userList.length + endids.value.length;
+ console.log('什么东西xxxxx', allData.userId, uid, props.callType, length);
// 根据人数判断渲染不同的视图样式
if (allData.userId + '_web' == uid && length <= 2) {
@@ -562,6 +580,20 @@
const videoEl = document.getElementById(`${track.getUserId()}`);
track.play(videoEl);
}
+ const targetElements = document.querySelectorAll('.video-item');
+ console.log('targetElements', targetElements);
+
+ targetElements.forEach(target => {
+ target.classList.remove('video-item-4');
+ target.classList.remove('video-item-8');
+
+ if (length > 2 && length <= 4) {
+ target.classList.add('video-item-4');
+ }
+ if (length > 4 && length <= 8) {
+ target.classList.add('video-item-8');
+ }
+ });
}
};
diff --git a/src/views/RongyunCommunication/index.vue b/src/views/RongyunCommunication/index.vue
index 310fb39..6debc56 100644
--- a/src/views/RongyunCommunication/index.vue
+++ b/src/views/RongyunCommunication/index.vue
@@ -498,6 +498,21 @@
let videoEl = document.getElementById(uid);
track.play(videoEl);
}
+
+ const targetElements = document.querySelectorAll('.video-item');
+ console.log('targetElements', targetElements);
+
+ targetElements.forEach(target => {
+ target.classList.remove('video-item-4');
+ target.classList.remove('video-item-8');
+
+ if (length > 2 && length <= 4) {
+ target.classList.add('video-item-4');
+ }
+ if (length > 4 && length <= 8) {
+ target.classList.add('video-item-8');
+ }
+ });
}
};
//关闭视频弹窗
diff --git a/src/views/RongyunCommunication/rongyuncss/index.scss b/src/views/RongyunCommunication/rongyuncss/index.scss
index ddf64d7..20c3ed8 100644
--- a/src/views/RongyunCommunication/rongyuncss/index.scss
+++ b/src/views/RongyunCommunication/rongyuncss/index.scss
@@ -323,7 +323,7 @@
li {
color: #fff;
&.is-active {
- color: #eee;
+ color: #409eff;
}
}
}
diff --git a/src/views/RongyunCommunication/RongYunBox/index.vue b/src/views/RongyunCommunication/RongYunBox/index.vue
index 963855e..6571b3e 100644
--- a/src/views/RongyunCommunication/RongYunBox/index.vue
+++ b/src/views/RongyunCommunication/RongYunBox/index.vue
@@ -68,12 +68,7 @@
:popper-append-to-body="true"
popper-class="eloption"
>
-
+
@@ -111,6 +106,8 @@
} from '@/views/RongyunCommunication/rongyunjs/rongyunApi.js';
import { findCurrentTreeObj } from '@/utils/ruoyi';
+import { RCCallErrorCode } from '@rongcloud/plugin-call';
+
const appStore = useUserStore();
const useRongyunStore = rongyunStore();
const { proxy } = getCurrentInstance();
@@ -409,24 +406,48 @@
GetallOnline();
} else {
const reason = code === RCCallErrorCode.NOT_IN_GROUP ? '当前用户未加入群组' : code;
- proxy.$modal.msgWarning(`呼叫失败,错误原因:${reason}`);
+ proxy.$modal.msgWarning(`呼叫失败,错误原因:${code}`);
removeVideoEl();
}
});
};
+let endids = ref([]);
// 邀请用户加入当前通话(仅限群组)
const inviteCall = () => {
if (Getidinvite.value && Getidinvite.value.length) {
+ console.log('点击了邀请', Getidinvite.value, inviteuserIdsList.value);
+ let ids = [];
+ let GetuserList = [];
+ Getidinvite.value.map(item => {
+ inviteuserIdsList.value.map(p => {
+ if (item == p.id) {
+ GetuserList.push(p);
+ }
+ });
+ });
+ console.log('点击了邀请', GetuserList);
+
+ GetuserList.map(item => {
+ item.userTokenList.length &&
+ item.userTokenList.map(p => {
+ if (p.isOnlion) {
+ ids.push(p.registerThridUserId);
+ }
+ });
+ });
+
+ endids.value = ids;
+
let params = {
groupId: props.ryUser.groupId,
- ids: Getidinvite.value.join(','),
+ ids: ids.join(','),
};
groupJoinUsers(params).then(res => {
console.log(res);
- console.log('点击了邀请', Getidinvite.value);
- useRongyunStore.callSession.invite(Getidinvite.value).then(({ code }) => {
+ console.log('点击了邀请', ids);
+ useRongyunStore.callSession.invite(ids).then(({ code }) => {
console.log(code);
if (code === 10000) {
proxy.$modal.msgSuccess(`邀请成功`);
@@ -489,23 +510,20 @@
// 获取所有注册用户
const GetallOnline = item => {
inviteuserIdsList.value = [];
+ console.log('被邀请人', props.ryUser);
+ // let havaUser = [];
- // let params = {
- // isOnlion: 1,
- // };
+ // props.ryUser.userIds.map(item => {
+ // havaUser.push(item.split('_')[0]);
+ // });
+
+ // console.log('被邀请人', havaUser);
+
listrcloudUnitUser().then(res => {
res.data.map(item => {
- item.userTokenList.map(p => {
- p.name = item.name;
- // 过滤数据 保留当前在线并且不在已呼叫名单上的人
- if (!props.ryUser.userIds.includes(p.registerThridUserId)) {
- if (p.isOnlion == 1 && p.registerPlatform == 'web') {
- inviteuserIdsList.value.push(p);
- } else if (p.registerPlatform == 'app') {
- inviteuserIdsList.value.push(p);
- }
- }
- });
+ if (item.isOnlion && !props.ryUser.userIds.includes(item.phone)) {
+ inviteuserIdsList.value.push(item);
+ }
});
console.log('被邀请人', inviteuserIdsList.value, props.ryUser.userIds);
});
@@ -538,8 +556,8 @@
node.innerHTML = videoTpl;
node.classList.add('video-item');
- let length = allData.userList.length;
- console.log('什么东西', allData.userId, uid, props.callType, length);
+ let length = allData.userList.length + endids.value.length;
+ console.log('什么东西xxxxx', allData.userId, uid, props.callType, length);
// 根据人数判断渲染不同的视图样式
if (allData.userId + '_web' == uid && length <= 2) {
@@ -562,6 +580,20 @@
const videoEl = document.getElementById(`${track.getUserId()}`);
track.play(videoEl);
}
+ const targetElements = document.querySelectorAll('.video-item');
+ console.log('targetElements', targetElements);
+
+ targetElements.forEach(target => {
+ target.classList.remove('video-item-4');
+ target.classList.remove('video-item-8');
+
+ if (length > 2 && length <= 4) {
+ target.classList.add('video-item-4');
+ }
+ if (length > 4 && length <= 8) {
+ target.classList.add('video-item-8');
+ }
+ });
}
};
diff --git a/src/views/RongyunCommunication/index.vue b/src/views/RongyunCommunication/index.vue
index 310fb39..6debc56 100644
--- a/src/views/RongyunCommunication/index.vue
+++ b/src/views/RongyunCommunication/index.vue
@@ -498,6 +498,21 @@
let videoEl = document.getElementById(uid);
track.play(videoEl);
}
+
+ const targetElements = document.querySelectorAll('.video-item');
+ console.log('targetElements', targetElements);
+
+ targetElements.forEach(target => {
+ target.classList.remove('video-item-4');
+ target.classList.remove('video-item-8');
+
+ if (length > 2 && length <= 4) {
+ target.classList.add('video-item-4');
+ }
+ if (length > 4 && length <= 8) {
+ target.classList.add('video-item-8');
+ }
+ });
}
};
//关闭视频弹窗
diff --git a/src/views/RongyunCommunication/rongyuncss/index.scss b/src/views/RongyunCommunication/rongyuncss/index.scss
index ddf64d7..20c3ed8 100644
--- a/src/views/RongyunCommunication/rongyuncss/index.scss
+++ b/src/views/RongyunCommunication/rongyuncss/index.scss
@@ -323,7 +323,7 @@
li {
color: #fff;
&.is-active {
- color: #eee;
+ color: #409eff;
}
}
}
diff --git a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Hhsq.vue b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Hhsq.vue
index 73b70bb..1bf499e 100644
--- a/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Hhsq.vue
+++ b/src/views/pictureOnMap/page/FloodControlAndDrainage/Jianceyujin/MonitoringWarningLeft/component/Hhsq.vue
@@ -28,11 +28,7 @@
-
+
名称
当前水位
@@ -50,7 +46,7 @@
{{ item.name }}
-
{{ item.z || "--" }}
+
{{ item.z == 0 ? '--' : item.z }}
{{ item.mormalWaterLevel }}
超控制
@@ -65,7 +61,7 @@
{{ activeObj.description }}
-