Browse Source

no message

libushang 5 tháng trước cách đây
mục cha
commit
713566985e
1 tập tin đã thay đổi với 10 bổ sung4 xóa
  1. 10 4
      src/views/emergencyCommandMap/LeftSection/Communication.vue

+ 10 - 4
src/views/emergencyCommandMap/LeftSection/Communication.vue

@@ -145,7 +145,7 @@ const getCheckedClass = () => {
 const handleNodeClick = (item) => {
   // if (item.isLeaf) {
   //   debugger
-    getAvconDeptList(item.id).then((res) => {
+    getAvconDeptList(item.id, {}).then((res) => {
       res.data.forEach((item) => {
         item.checked = false;
       });
@@ -245,11 +245,17 @@ const handleStartCall = () => {
 };
 // 发起会议
 const handleStartMeeting = () => {
+  const screenWidth = window.screen.width * window.devicePixelRatio;
+  const screenHeight = window.screen.height * window.devicePixelRatio;
   const data = {
-    userid: 'mmyj0006@mm.zw.yj',
-    password: '123',
+    userid: 'mmyj0006@mm.zw.yj', // 空表示后台获取当前用户对应融合通信dev_id
+    password: '123',             // 空表示后台获取
     roomid: '',
-    'dev-list': [{ id: 'hh@mm.zw.yj', avtype: 'av' }]
+    windowpos: { "x": 0, "y": 0, "width": screenWidth, "height": screenHeight, "top": true },
+    members: {
+      num: 6, // 配置多少个座位,一般就是邀请人多少个就多少个
+      'dev-list': [{ id: 'mmyj0010@mm.zw.yj', avtype: 'av' }]  // 0010是李步尚
+    }
   };
   getStartMiniParan(data).then((res) => {
     // 创建一个a标签元素