mdm-client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/README.md +92 -0
  2. package/index.js +35 -0
  3. package/package.json +41 -0
  4. package/src/App.vue +246 -0
  5. package/src/assets/audio/moon_light.ogg +0 -0
  6. package/src/assets/font/DINPro-Medium.otf +0 -0
  7. package/src/assets/font/FZZhengHeiS-B-GB.ttf +0 -0
  8. package/src/assets/font/PingFang Regular.otf +0 -0
  9. package/src/assets/font/SourceHanSansCN-Regular.otf +0 -0
  10. package/src/assets/image/common/add_other_icon.png +0 -0
  11. package/src/assets/image/common/bottomFrame.png +0 -0
  12. package/src/assets/image/common/broadcastOn.png +0 -0
  13. package/src/assets/image/common/broadcastTask.png +0 -0
  14. package/src/assets/image/common/call.png +0 -0
  15. package/src/assets/image/common/call_user_mic_off_icon.png +0 -0
  16. package/src/assets/image/common/call_user_mic_on_icon.png +0 -0
  17. package/src/assets/image/common/cam-off.png +0 -0
  18. package/src/assets/image/common/cam-on.png +0 -0
  19. package/src/assets/image/common/cam_off_small.png +0 -0
  20. package/src/assets/image/common/camera.png +0 -0
  21. package/src/assets/image/common/cameraBtn1.png +0 -0
  22. package/src/assets/image/common/cameraBtn2.png +0 -0
  23. package/src/assets/image/common/cameraBtn3.png +0 -0
  24. package/src/assets/image/common/cameraBtn4.png +0 -0
  25. package/src/assets/image/common/cameraBtn5.png +0 -0
  26. package/src/assets/image/common/cameraBtn6.png +0 -0
  27. package/src/assets/image/common/cameraBtn7.png +0 -0
  28. package/src/assets/image/common/cameraClose.png +0 -0
  29. package/src/assets/image/common/cameraFull.png +0 -0
  30. package/src/assets/image/common/cameraOff.png +0 -0
  31. package/src/assets/image/common/cancel_icon.png +0 -0
  32. package/src/assets/image/common/card_blue.png +0 -0
  33. package/src/assets/image/common/card_grey.png +0 -0
  34. package/src/assets/image/common/chosen_icon.png +0 -0
  35. package/src/assets/image/common/chosen_icon_slided.png +0 -0
  36. package/src/assets/image/common/custom_layout_equipment_avatar.png +0 -0
  37. package/src/assets/image/common/custom_layout_user_avatar.png +0 -0
  38. package/src/assets/image/common/default_avatar.png +0 -0
  39. package/src/assets/image/common/default_avatar_mini.png +0 -0
  40. package/src/assets/image/common/delete-number.svg +3 -0
  41. package/src/assets/image/common/deviceIcon.png +0 -0
  42. package/src/assets/image/common/fourOff.png +0 -0
  43. package/src/assets/image/common/fourOn.png +0 -0
  44. package/src/assets/image/common/group.png +0 -0
  45. package/src/assets/image/common/groupManage.png +0 -0
  46. package/src/assets/image/common/histroy_meeting_icon.png +0 -0
  47. package/src/assets/image/common/icon-device.svg +12 -0
  48. package/src/assets/image/common/icon-monitor.svg +12 -0
  49. package/src/assets/image/common/icon-/345/260/217/347/250/213/345/272/217.svg +5 -0
  50. package/src/assets/image/common/icon-/345/272/224/347/255/224.svg +5 -0
  51. package/src/assets/image/common/icon-/350/247/206/351/242/221.svg +7 -0
  52. package/src/assets/image/common/input_search_icon.png +0 -0
  53. package/src/assets/image/common/launch_icon.png +0 -0
  54. package/src/assets/image/common/layout-active1.png +0 -0
  55. package/src/assets/image/common/layout-active2.png +0 -0
  56. package/src/assets/image/common/layout1.png +0 -0
  57. package/src/assets/image/common/layout2.png +0 -0
  58. package/src/assets/image/common/loading.png +0 -0
  59. package/src/assets/image/common/login/checked_icon.png +0 -0
  60. package/src/assets/image/common/login/login_bg.png +0 -0
  61. package/src/assets/image/common/login/login_form_left_icon.png +0 -0
  62. package/src/assets/image/common/login/pwd_icon.png +0 -0
  63. package/src/assets/image/common/login/user_icon.png +0 -0
  64. package/src/assets/image/common/login/verify_icon.png +0 -0
  65. package/src/assets/image/common/logo.png +0 -0
  66. package/src/assets/image/common/ltypeOff.png +0 -0
  67. package/src/assets/image/common/ltypeOn.png +0 -0
  68. package/src/assets/image/common/manager_cam_off_icon.png +0 -0
  69. package/src/assets/image/common/manager_mic_off_icon.png +0 -0
  70. package/src/assets/image/common/map-cicle-icon.svg +6 -0
  71. package/src/assets/image/common/map-icon-search-info.svg +11 -0
  72. package/src/assets/image/common/map-location.svg +37 -0
  73. package/src/assets/image/common/map.png +0 -0
  74. package/src/assets/image/common/mic-off.png +0 -0
  75. package/src/assets/image/common/mic-on.png +0 -0
  76. package/src/assets/image/common/mic_off_small.png +0 -0
  77. package/src/assets/image/common/minum_cam_off_icon.png +0 -0
  78. package/src/assets/image/common/minum_cam_on_icon.png +0 -0
  79. package/src/assets/image/common/minum_expand_icon.png +0 -0
  80. package/src/assets/image/common/minum_mic_off_icon.png +0 -0
  81. package/src/assets/image/common/minum_mic_on_icon.png +0 -0
  82. package/src/assets/image/common/minum_reset_icon.png +0 -0
  83. package/src/assets/image/common/minum_slide_icon.png +0 -0
  84. package/src/assets/image/common/more_icon.png +0 -0
  85. package/src/assets/image/common/mute.png +0 -0
  86. package/src/assets/image/common/newFolder.png +0 -0
  87. package/src/assets/image/common/newTask.png +0 -0
  88. package/src/assets/image/common/nineOff.png +0 -0
  89. package/src/assets/image/common/nineOn.png +0 -0
  90. package/src/assets/image/common/none.png +0 -0
  91. package/src/assets/image/common/offline.png +0 -0
  92. package/src/assets/image/common/oneOff.png +0 -0
  93. package/src/assets/image/common/oneOn.png +0 -0
  94. package/src/assets/image/common/online.png +0 -0
  95. package/src/assets/image/common/output_off_small.png +0 -0
  96. package/src/assets/image/common/playOff.png +0 -0
  97. package/src/assets/image/common/playOn.png +0 -0
  98. package/src/assets/image/common/playStop.png +0 -0
  99. package/src/assets/image/common/preview_icon.png +0 -0
  100. package/src/assets/image/common/preview_meet_icon.png +0 -0
  101. package/src/assets/image/common/scan-map.png +0 -0
  102. package/src/assets/image/common/screen_blue.png +0 -0
  103. package/src/assets/image/common/screen_gray.png +0 -0
  104. package/src/assets/image/common/screen_white.png +0 -0
  105. package/src/assets/image/common/select_item_check.png +0 -0
  106. package/src/assets/image/common/select_item_checked.png +0 -0
  107. package/src/assets/image/common/selector.png +0 -0
  108. package/src/assets/image/common/selectorOn.png +0 -0
  109. package/src/assets/image/common/share_icon.png +0 -0
  110. package/src/assets/image/common/signal_good.png +0 -0
  111. package/src/assets/image/common/signal_poor.png +0 -0
  112. package/src/assets/image/common/sixteenOff.png +0 -0
  113. package/src/assets/image/common/sixteenOn.png +0 -0
  114. package/src/assets/image/common/slide-bth-expand.png +0 -0
  115. package/src/assets/image/common/slide_btn.png +0 -0
  116. package/src/assets/image/common/speak.png +0 -0
  117. package/src/assets/image/common/speakOn.png +0 -0
  118. package/src/assets/image/common/speaker-off.png +0 -0
  119. package/src/assets/image/common/speaker-on.png +0 -0
  120. package/src/assets/image/common/speaking.png +0 -0
  121. package/src/assets/image/common/speed-left.svg +5 -0
  122. package/src/assets/image/common/speed-right.svg +5 -0
  123. package/src/assets/image/common/tree_checked_icon.png +0 -0
  124. package/src/assets/image/common/tree_expand_icon.png +0 -0
  125. package/src/assets/image/common/tree_slide_icon.png +0 -0
  126. package/src/assets/image/common/tree_uncheck_icon.png +0 -0
  127. package/src/assets/image/common/unchosen_icon.png +0 -0
  128. package/src/assets/image/common/up.png +0 -0
  129. package/src/assets/image/common/volume.png +0 -0
  130. package/src/assets/image/common/warning.png +0 -0
  131. package/src/assets/image/screenBlue/a1.png +0 -0
  132. package/src/assets/image/screenBlue/a2.png +0 -0
  133. package/src/assets/image/screenBlue/a3.png +0 -0
  134. package/src/assets/image/screenBlue/a4.png +0 -0
  135. package/src/assets/image/screenBlue/a5.png +0 -0
  136. package/src/assets/image/screenBlue/a6.png +0 -0
  137. package/src/assets/image/screenBlue/add.png +0 -0
  138. package/src/assets/image/screenBlue/add_group_icon.png +0 -0
  139. package/src/assets/image/screenBlue/add_to_group_icon.png +0 -0
  140. package/src/assets/image/screenBlue/arrow_icon.png +0 -0
  141. package/src/assets/image/screenBlue/audio_level_icon.png +0 -0
  142. package/src/assets/image/screenBlue/b1.png +0 -0
  143. package/src/assets/image/screenBlue/b2.png +0 -0
  144. package/src/assets/image/screenBlue/b3.png +0 -0
  145. package/src/assets/image/screenBlue/b4.png +0 -0
  146. package/src/assets/image/screenBlue/b5.png +0 -0
  147. package/src/assets/image/screenBlue/b6.png +0 -0
  148. package/src/assets/image/screenBlue/bottom_footer_bg.png +0 -0
  149. package/src/assets/image/screenBlue/call_clear_icon.png +0 -0
  150. package/src/assets/image/screenBlue/call_duration_icon.png +0 -0
  151. package/src/assets/image/screenBlue/call_fullscreen_icon.png +0 -0
  152. package/src/assets/image/screenBlue/call_mini_icon.png +0 -0
  153. package/src/assets/image/screenBlue/call_video_icon.png +0 -0
  154. package/src/assets/image/screenBlue/call_voice_icon.png +0 -0
  155. package/src/assets/image/screenBlue/cam_on_small.png +0 -0
  156. package/src/assets/image/screenBlue/close_icon.png +0 -0
  157. package/src/assets/image/screenBlue/copy-icon.png +0 -0
  158. package/src/assets/image/screenBlue/custom_layout_drag_icon.png +0 -0
  159. package/src/assets/image/screenBlue/custom_layout_grid16_active_icon.png +0 -0
  160. package/src/assets/image/screenBlue/custom_layout_grid16_icon.png +0 -0
  161. package/src/assets/image/screenBlue/custom_layout_grid4_active_icon.png +0 -0
  162. package/src/assets/image/screenBlue/custom_layout_grid4_icon.png +0 -0
  163. package/src/assets/image/screenBlue/custom_layout_grid9_active_icon.png +0 -0
  164. package/src/assets/image/screenBlue/custom_layout_grid9_icon.png +0 -0
  165. package/src/assets/image/screenBlue/custom_layout_header_icon.png +0 -0
  166. package/src/assets/image/screenBlue/custom_layout_placeholder_bg.png +0 -0
  167. package/src/assets/image/screenBlue/custom_layout_refresh_icon.png +0 -0
  168. package/src/assets/image/screenBlue/custom_layout_rightside_active_icon.png +0 -0
  169. package/src/assets/image/screenBlue/custom_layout_rightside_icon.png +0 -0
  170. package/src/assets/image/screenBlue/custom_layout_ring_active_icon.png +0 -0
  171. package/src/assets/image/screenBlue/custom_layout_ring_icon.png +0 -0
  172. package/src/assets/image/screenBlue/custom_layout_topside_active_icon.png +0 -0
  173. package/src/assets/image/screenBlue/custom_layout_topside_icon.png +0 -0
  174. package/src/assets/image/screenBlue/date_picker_icon.png +0 -0
  175. package/src/assets/image/screenBlue/dialog_check_icon.png +0 -0
  176. package/src/assets/image/screenBlue/emoji-logo.png +0 -0
  177. package/src/assets/image/screenBlue/header_alert_icon.png +0 -0
  178. package/src/assets/image/screenBlue/manager_cam_on_icon.png +0 -0
  179. package/src/assets/image/screenBlue/manager_mic_on_icon.png +0 -0
  180. package/src/assets/image/screenBlue/manager_more_icon.png +0 -0
  181. package/src/assets/image/screenBlue/meeting_board_bg.png +0 -0
  182. package/src/assets/image/screenBlue/meeting_chat_emoji_icon.png +0 -0
  183. package/src/assets/image/screenBlue/meeting_chat_icon.png +0 -0
  184. package/src/assets/image/screenBlue/meeting_chat_image_icon.png +0 -0
  185. package/src/assets/image/screenBlue/meeting_chat_logo.png +0 -0
  186. package/src/assets/image/screenBlue/meeting_copy_icon.png +0 -0
  187. package/src/assets/image/screenBlue/meeting_invite_icon.png +0 -0
  188. package/src/assets/image/screenBlue/meeting_layout_icon.png +0 -0
  189. package/src/assets/image/screenBlue/meeting_member_icon.png +0 -0
  190. package/src/assets/image/screenBlue/meeting_mode_icon.png +0 -0
  191. package/src/assets/image/screenBlue/meeting_record_icon.png +0 -0
  192. package/src/assets/image/screenBlue/meeting_setting_icon.png +0 -0
  193. package/src/assets/image/screenBlue/meeting_share_icon.png +0 -0
  194. package/src/assets/image/screenBlue/meeting_slide_small_icon.png +0 -0
  195. package/src/assets/image/screenBlue/mic_on_small.png +0 -0
  196. package/src/assets/image/screenBlue/module_bg1.png +0 -0
  197. package/src/assets/image/screenBlue/module_bg2.png +0 -0
  198. package/src/assets/image/screenBlue/monitor/circle data.png +0 -0
  199. package/src/assets/image/screenBlue/monitor/circle.png +0 -0
  200. package/src/assets/image/screenBlue/output_on_small.png +0 -0
  201. package/src/assets/image/screenBlue/page_bg.png +0 -0
  202. package/src/assets/image/screenBlue/pic-logo.png +0 -0
  203. package/src/assets/image/screenBlue/preview_date_icon.png +0 -0
  204. package/src/assets/image/screenBlue/preview_empty_icon.png +0 -0
  205. package/src/assets/image/screenBlue/preview_more_icon.png +0 -0
  206. package/src/assets/image/screenBlue/receive_hang_off_icon.png +0 -0
  207. package/src/assets/image/screenBlue/receive_hang_on_icon.png +0 -0
  208. package/src/assets/image/screenBlue/receive_video_icon.png +0 -0
  209. package/src/assets/image/screenBlue/receive_voice_icon.png +0 -0
  210. package/src/assets/image/screenBlue/send-logo.png +0 -0
  211. package/src/assets/image/screenBlue/slide_menu_bg.png +0 -0
  212. package/src/assets/image/screenBlue/top_header_bg.png +0 -0
  213. package/src/assets/image/screenBlue/yq.png +0 -0
  214. package/src/assets/json/emoji.json +222 -0
  215. package/src/assets/style/base.scss +217 -0
  216. package/src/assets/style/elForm.scss +80 -0
  217. package/src/assets/style/font.scss +16 -0
  218. package/src/assets/style/index.scss +5 -0
  219. package/src/assets/style/math.scss +11 -0
  220. package/src/assets/style/mixin.scss +69 -0
  221. package/src/components/LiveCallBoard/LiveCallBoard.vue +237 -0
  222. package/src/components/LiveInviteReceive/LiveInviteReceive.vue +150 -0
  223. package/src/components/LiveMulti/LiveMulti.vue +303 -0
  224. package/src/components/LiveMultipleMeeting/LiveMultipleMeeting.vue +4469 -0
  225. package/src/components/LiveMultipleMeeting/style/index.scss +337 -0
  226. package/src/components/LivePoint/LivePoint.vue +372 -0
  227. package/src/components/LivePointMeeting/LivePointMeeting.vue +1134 -0
  228. package/src/components/LivePointMeeting/style/index.scss +202 -0
  229. package/src/components/MeetingReadyDialog/MeetingReadyDialog.vue +583 -0
  230. package/src/components/MiniumVideoDialog/MiniumVideoDialog.vue +449 -0
  231. package/src/components/other/LayoutPlaceholder.vue +184 -0
  232. package/src/components/other/addressBook.vue +1121 -0
  233. package/src/components/other/appointDialog.vue +208 -0
  234. package/src/components/other/callBoard.vue +191 -0
  235. package/src/components/other/chatArea.vue +727 -0
  236. package/src/components/other/customGroupDialog.vue +180 -0
  237. package/src/components/other/customLayout.vue +1112 -0
  238. package/src/components/other/editGroupDialog.vue +290 -0
  239. package/src/components/other/inviteNonContactDialog.vue +160 -0
  240. package/src/components/other/layoutSwitch.vue +183 -0
  241. package/src/components/other/leaveOptionDialog.vue +90 -0
  242. package/src/components/other/memberManage.vue +502 -0
  243. package/src/components/other/moreOptionDialog.vue +291 -0
  244. package/src/components/other/screenShareBoard.vue +121 -0
  245. package/src/components/other/selectDialog.vue +279 -0
  246. package/src/components/other/selectSpecialDialog.vue +234 -0
  247. package/src/components/other/settingDialog.vue +756 -0
  248. package/src/components/other/themeDialog.vue +180 -0
  249. package/src/components/other/updateNameDialog.vue +162 -0
  250. package/src/directive/clickOutside.js +58 -0
  251. package/src/directive/drag.js +165 -0
  252. package/src/directive/scale.js +22 -0
  253. package/src/directive/throttle.js +77 -0
  254. package/src/main.js +21 -0
  255. package/src/request/index.js +27 -0
  256. package/src/utils/api.js +82 -0
  257. package/src/utils/index.js +4 -0
  258. package/src/utils/livekit/live-client-esm-old.js +1 -0
  259. package/src/utils/livekit/live-client-esm.js +1 -0
  260. package/src/utils/message.js +24 -0
  261. package/src/utils/mitt.js +4 -0
  262. package/src/utils/tool.js +154 -0
@@ -0,0 +1,337 @@
1
+ // 会议室样式
2
+ // 通用样式
3
+ .meeting {
4
+ .participant {
5
+ background: var(--meeting-participant-bg);
6
+ position: relative;
7
+ // border: 1px solid #798BA4;
8
+ border-radius: 5px;
9
+ margin: 5px;
10
+ .p-video {
11
+ position: absolute;
12
+ width: 100%;
13
+ height: 100%;
14
+ left: 0;
15
+ top: 0;
16
+ z-index: 10;
17
+ object-fit: contain;
18
+ border-radius: 5px;
19
+ }
20
+ .board {
21
+ position: absolute;
22
+ width: 100%;
23
+ height: 100%;
24
+ left: 0;
25
+ top: 0;
26
+ z-index: 30;
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ background: var(--meeting-board-bg) no-repeat center / 100% 100%;
31
+ .board-icon {
32
+ width: 20%;
33
+ height: auto;
34
+ aspect-ratio: 1/1;
35
+ background: var(--default-avatar) no-repeat center / 100% 100%;
36
+ }
37
+ }
38
+ .screen-share-suspension {
39
+ &::before {
40
+ content: "";
41
+ position: absolute;
42
+ left: 11px;
43
+ top: 10px;
44
+ width: 20px;
45
+ height: 20px;
46
+ background: var(--meeting-share-icon) no-repeat center / 100% 100%;
47
+ }
48
+ & {
49
+ position: absolute;
50
+ left: 24px;
51
+ top: 20px;
52
+ z-index: 50;
53
+ padding: 9px 13px 9px 41px;
54
+ background: rgba(28,36,47,0.6);
55
+ border-radius: 8px;
56
+ white-space: nowrap;
57
+ font-weight: 500;
58
+ font-size: 16px;
59
+ color: var(--theme-font-color);
60
+ }
61
+ }
62
+ .describe {
63
+ position: absolute;
64
+ left: 30px;
65
+ bottom: 6px;
66
+ z-index: 50;
67
+ height: 24px;
68
+ display: flex;
69
+ align-items: center;
70
+ flex-wrap: nowrap;
71
+ padding: 0 10px;
72
+ background: var(--call-audio-text-bg);
73
+ border-radius: 4px;
74
+ .microphone {
75
+ width: 11px;
76
+ height: 16px;
77
+ cursor: pointer;
78
+ margin-right: 6px;
79
+ &-active {
80
+ background: var(--call-user-mic-on-icon) no-repeat center / 100% 100%;
81
+ }
82
+ &-inactive {
83
+ background: var(--call-user-mic-off-icon) no-repeat center / 100% 100%;
84
+ }
85
+ }
86
+ .identity {
87
+ white-space: nowrap;
88
+ font-weight: 400;
89
+ font-size: 14px;
90
+ color: var(--theme-font-color);
91
+ }
92
+ }
93
+ .signal-icon {
94
+ position: absolute;
95
+ top: 10px;
96
+ left: 14px;
97
+ z-index: 50;
98
+ width: auto;
99
+ height: 5%;
100
+ min-height: 30px;
101
+ aspect-ratio: 1/1;
102
+ visibility: hidden;
103
+ &-good {
104
+ background: var(--signal-good-icon) no-repeat center / 100% 100%;
105
+ }
106
+ &-poor {
107
+ background: var(--signal-poor-icon) no-repeat center / 100% 100%;
108
+ }
109
+ }
110
+ .more-icon {
111
+ visibility: hidden;
112
+ cursor: pointer;
113
+ position: absolute;
114
+ top: 10px;
115
+ right: 14px;
116
+ z-index: 50;
117
+ aspect-ratio: 1/1;
118
+ width: auto;
119
+ height: 5%;
120
+ min-height: 30px;
121
+ background: var(--more-icon) no-repeat center / 100% 100%;
122
+ }
123
+ }
124
+ }
125
+ // 宫格布局
126
+ .grid1 {
127
+ display: flex;
128
+ justify-content: center;
129
+ align-items: center;
130
+ .participant {
131
+ width: 100%;
132
+ height: 98%;
133
+ .p-video {
134
+ object-fit: cover !important;
135
+ }
136
+ }
137
+ .describe{
138
+ transform: scale(1.3);
139
+ }
140
+ }
141
+ .grid2 {
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
145
+ flex-wrap: nowrap;
146
+ .participant {
147
+ width: calc(50% - 10px);
148
+ height: auto;
149
+ aspect-ratio: 16/9;
150
+ }
151
+ .describe{
152
+ transform: scale(1.1);
153
+ }
154
+ }
155
+ .grid3 {
156
+ display: flex;
157
+ flex-wrap: wrap;
158
+ justify-content: center;
159
+ align-content: center;
160
+ .participant {
161
+ width: calc(50% - 10px);
162
+ height: auto;
163
+ max-height: calc(50% - 10px);
164
+ aspect-ratio: 16/9;
165
+ }
166
+ .describe{
167
+ transform: scale(1.1);
168
+ }
169
+ }
170
+ .grid4 {
171
+ display: flex;
172
+ flex-wrap: wrap;
173
+ justify-content: center;
174
+ align-content: center;
175
+ .participant {
176
+ width: calc(33.33% - 10px);
177
+ height: auto;
178
+ aspect-ratio: 16/9;
179
+ }
180
+ .describe{
181
+ transform: scale(0.9);
182
+ }
183
+ }
184
+ .grid5 {
185
+ // &::-webkit-scrollbar {
186
+ // display: none;
187
+ // }
188
+ // &::-webkit-scrollbar {
189
+ // display: none;
190
+ // }
191
+ & {
192
+ display: flex;
193
+ flex-wrap: wrap;
194
+ justify-content: center;
195
+ align-content: center;
196
+ .participant {
197
+ width: calc(33.33% - 10px);
198
+ height: auto;
199
+ max-height: calc(33.33% - 10px);
200
+ aspect-ratio: 16/9;
201
+ }
202
+ .describe{
203
+ transform: scale(0.9);
204
+ }
205
+ }
206
+
207
+ }
208
+ .grid6 {
209
+ display: flex;
210
+ flex-wrap: wrap;
211
+ justify-content: center;
212
+ align-content: center;
213
+ .participant {
214
+ width: calc(25% - 10px);
215
+ height: auto;
216
+ max-height: calc(33.33% - 10px);
217
+ aspect-ratio: 16/9;
218
+ }
219
+ .describe{
220
+ transform: scale(0.75);
221
+ }
222
+ }
223
+ .grid7 {
224
+ display: flex;
225
+ flex-wrap: wrap;
226
+ justify-content: center;
227
+ align-content: center;
228
+ .participant {
229
+ width: calc(25% - 10px);
230
+ height: auto;
231
+ max-height: calc(25% - 10px);
232
+ aspect-ratio: 16/9;
233
+ }
234
+ .describe{
235
+ transform: scale(0.75);
236
+ }
237
+ }
238
+ .grid8 {
239
+ display: flex;
240
+ flex-wrap: wrap;
241
+ justify-content: center;
242
+ // align-content: center;
243
+ .participant {
244
+ width: calc(25% - 10px);
245
+ // height: calc(25% - 10px);
246
+ height: auto;
247
+ aspect-ratio: 16/9;
248
+ }
249
+ }
250
+ // 焦点布局
251
+ .rightSide {
252
+ display: flex;
253
+ align-items: flex-start;
254
+ flex-wrap: nowrap;
255
+ .layout-leftside {
256
+ flex-shrink: 0;
257
+ display: flex;
258
+ align-items: center;
259
+ width: 77.1%;
260
+ height: 100%;
261
+ padding-right: 5px;
262
+ .participant {
263
+ width: 100%;
264
+ height: auto;
265
+ aspect-ratio: 16/9;
266
+ max-height: 100%;
267
+ }
268
+ }
269
+ .layout-rightside {
270
+ flex-shrink: 0;
271
+ width: 22.9%;
272
+ height: 100%;
273
+ overflow: auto;
274
+ padding: 10px 0 0 0;
275
+ &::-webkit-scrollbar {
276
+ display: none;
277
+ }
278
+ .participant {
279
+ width: 100%;
280
+ height: auto;
281
+ aspect-ratio: 16/9;
282
+ margin: 5px 0;
283
+ .describe {
284
+ left: 2px;
285
+ bottom: 2px;
286
+ }
287
+ }
288
+ }
289
+ }
290
+ // 点调模式
291
+ .point-turn {
292
+ display: flex;
293
+ flex-direction: column;
294
+ justify-content: center;
295
+ align-items: center;
296
+ &-top {
297
+ width: 100%;
298
+ height: 25%;
299
+ display: flex;
300
+ align-items: center;
301
+ justify-content: flex-start;
302
+ flex-wrap: nowrap;
303
+ .participant {
304
+ flex-shrink: 0;
305
+ width: calc(20% - 10px);
306
+ height: calc(100% - 10px);
307
+ }
308
+ }
309
+ &-center {
310
+ width: 100%;
311
+ height: 50%;
312
+ display: flex;
313
+ align-items: center;
314
+ flex-wrap: nowrap;
315
+ .participant {
316
+ flex-shrink: 0;
317
+ width: calc(50% - 10px);
318
+ height: calc(100% - 10px);
319
+ }
320
+ }
321
+ &-bottom {
322
+ width: 100%;
323
+ height: 25%;
324
+ display: flex;
325
+ justify-content: flex-start;
326
+ align-items: center;
327
+ flex-wrap: nowrap;
328
+ .participant {
329
+ flex-shrink: 0;
330
+ width: calc(20% - 10px);
331
+ height: calc(100% - 10px);
332
+ }
333
+ }
334
+ &-other {
335
+ display: none;
336
+ }
337
+ }
@@ -0,0 +1,372 @@
1
+ <template>
2
+ <div class="live-point">
3
+ <!-- Components will be mounted to body using custom mounting -->
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import Vue from 'vue';
9
+ import { mittBus, ShowMessage } from "../../utils/index.js";
10
+ import LiveCallBoard from "../LiveCallBoard/LiveCallBoard.vue";
11
+ import LivePointMeeting from "../LivePointMeeting/LivePointMeeting.vue";
12
+ import LiveInviteReceive from "../LiveInviteReceive/LiveInviteReceive.vue";
13
+
14
+ export default {
15
+ name: "LivePoint",
16
+ components: {
17
+ LiveCallBoard,
18
+ LivePointMeeting,
19
+ LiveInviteReceive,
20
+ },
21
+ props: {
22
+ defaultCallNum: {
23
+ type: String,
24
+ default: "",
25
+ },
26
+ isInviteReceiveShow: {
27
+ type: Boolean,
28
+ default: false,
29
+ },
30
+ inviteData: {
31
+ type: Object,
32
+ default: () => ({}),
33
+ },
34
+ value: {
35
+ type: Boolean,
36
+ default: false,
37
+ },
38
+ },
39
+ data() {
40
+ return {
41
+ isMeetingDialogShow: false,
42
+ pointMeetingData: {
43
+ joinType: "join",
44
+ meetingNum: "",
45
+ meetingType: "video",
46
+ invitePhone: "",
47
+ inviteType: 0,
48
+ inviteName: "",
49
+ },
50
+ inviteWays: "phoneCall",
51
+ inviteUserData: {},
52
+ isInMeeting: false,
53
+ liveClient: null,
54
+ showMessage: null,
55
+ // DOM mounting references
56
+ callBoardInstance: null,
57
+ inviteReceiveInstance: null,
58
+ pointMeetingInstance: null,
59
+ callBoardContainer: null,
60
+ inviteReceiveContainer: null,
61
+ pointMeetingContainer: null,
62
+ };
63
+ },
64
+ computed: {
65
+ model: {
66
+ get() {
67
+ return this.value;
68
+ },
69
+ set(val) {
70
+ this.$emit("input", val);
71
+ },
72
+ },
73
+ },
74
+ mounted() {
75
+ this.showMessage = new ShowMessage();
76
+ this.handleLiveClientInitSuccess();
77
+ mittBus.on("liveClientInitSuccess", this.handleLiveClientInitSuccess);
78
+
79
+ // Initialize DOM containers for body mounting
80
+ this.createMountContainers();
81
+ },
82
+ beforeDestroy() {
83
+ mittBus.off("liveClientInitSuccess", this.handleLiveClientInitSuccess);
84
+
85
+ // Clean up mounted components
86
+ this.destroyMountedComponents();
87
+ },
88
+ methods: {
89
+ // 对外暴露方法, 发起PC会议
90
+ launchPcInvite(tempUserData, meetingType) {
91
+ this.pointMeetingData.joinType = "launch";
92
+ this.pointMeetingData.meetingType = meetingType;
93
+ this.inviteWays = "identity";
94
+ this.inviteUserData = tempUserData;
95
+ console.log("launchPcInvite", this.inviteUserData, meetingType);
96
+ this.isMeetingDialogShow = true;
97
+ },
98
+ // volte语音外呼
99
+ makeVoiceCall({ inviteName, invitePhone, inviteType = 0 } = {}) {
100
+ this.pointMeetingData.joinType = "launch";
101
+ this.pointMeetingData.meetingType = "voice";
102
+ this.pointMeetingData.invitePhone = invitePhone;
103
+ this.pointMeetingData.inviteName = inviteName;
104
+ this.pointMeetingData.inviteType = inviteType;
105
+ this.inviteWays = "phoneCall";
106
+ this.isMeetingDialogShow = true;
107
+ },
108
+ // volte视频外呼
109
+ makeVideoCall({ inviteName, invitePhone, inviteType = 0 } = {}) {
110
+ this.pointMeetingData.joinType = "launch";
111
+ this.pointMeetingData.meetingType = "video";
112
+ this.pointMeetingData.invitePhone = invitePhone;
113
+ this.pointMeetingData.inviteName = inviteName;
114
+ this.pointMeetingData.inviteType = inviteType;
115
+ this.inviteWays = "phoneCall";
116
+ this.isMeetingDialogShow = true;
117
+ },
118
+ // 通过小程序邀请
119
+ makeMiniCall({ inviteName, invitePhone, inviteType = 0 } = {}) {
120
+ this.pointMeetingData.joinType = "launch";
121
+ this.pointMeetingData.meetingType = "miniLink";
122
+ this.pointMeetingData.invitePhone = invitePhone;
123
+ this.pointMeetingData.inviteName = inviteName;
124
+ this.pointMeetingData.inviteType = inviteType;
125
+ this.inviteWays = "phoneCall";
126
+ this.isMeetingDialogShow = true;
127
+ },
128
+ inviteReceiveClose() {
129
+ this.$emit("inviteReceiveClose");
130
+ },
131
+ // 点击接收按钮
132
+ acceptInviteCall(e) {
133
+ this.liveClient
134
+ .acceptInvite(e.roomNum, e.fromIdentity)
135
+ .then((res) => {
136
+ if (res?.code == 200) {
137
+ this.pointMeetingData.joinType = "join";
138
+ this.pointMeetingData.meetingType = e.isVoice == 1 ? "voice" : "video";
139
+ this.pointMeetingData.meetingNum = e.roomNum;
140
+ this.isMeetingDialogShow = true;
141
+ this.inviteReceiveClose();
142
+ } else {
143
+ this.showMessage.message("error", res?.msg || "接受会议邀请失败,请重试");
144
+ }
145
+ })
146
+ .catch(() => {
147
+ this.showMessage.message("error", "接受会议邀请失败,请重试");
148
+ });
149
+ },
150
+ // 点击拒绝按钮
151
+ refuseInviteCall(e) {
152
+ this.liveClient
153
+ .refuseInvite(e.roomNum, e.fromIdentity)
154
+ .then((res) => {
155
+ if (res?.code == 200) {
156
+ this.inviteReceiveClose();
157
+ } else {
158
+ this.showMessage.message("error", res?.msg || "拒绝会议邀请失败,请重试");
159
+ }
160
+ })
161
+ .catch(() => {
162
+ this.showMessage.message("error", "拒绝会议邀请失败,请重试");
163
+ });
164
+ },
165
+ // 抛出小程序邀请事件给业务系统
166
+ miniLinkSend(e) {
167
+ this.$emit("miniLinkInvite", e);
168
+ },
169
+ // 点对点通话组件关闭事件监听
170
+ meetingDialogClose() {
171
+ this.isMeetingDialogShow = false;
172
+ },
173
+ handleCallBoardClose() {
174
+ this.model = false;
175
+ },
176
+ handleMeetingStarted() {
177
+ this.isInMeeting = true;
178
+ },
179
+ handleMeetingEnded() {
180
+ this.isInMeeting = false;
181
+ },
182
+ handleLiveClientInitSuccess() {
183
+ this.liveClient = window["liveClient"];
184
+ },
185
+
186
+ // Create mount containers for body mounting (replacing Teleport)
187
+ createMountContainers() {
188
+ // CallBoard container
189
+ this.callBoardContainer = document.createElement('div');
190
+ this.callBoardContainer.id = 'live-call-board-container';
191
+
192
+ // InviteReceive container
193
+ this.inviteReceiveContainer = document.createElement('div');
194
+ this.inviteReceiveContainer.id = 'live-invite-receive-container';
195
+
196
+ // PointMeeting container
197
+ this.pointMeetingContainer = document.createElement('div');
198
+ this.pointMeetingContainer.id = 'live-point-meeting-container';
199
+ },
200
+
201
+ // Mount CallBoard component to body
202
+ mountCallBoard() {
203
+ if (!this.callBoardContainer || document.getElementById('live-call-board-container')) return;
204
+
205
+ document.body.appendChild(this.callBoardContainer);
206
+
207
+ const CallBoardConstructor = Vue.extend(LiveCallBoard);
208
+ this.callBoardInstance = new CallBoardConstructor({
209
+ propsData: {
210
+ defaultCallNum: this.defaultCallNum
211
+ }
212
+ });
213
+
214
+ this.callBoardInstance.$on('voiceCall', this.makeVoiceCall);
215
+ this.callBoardInstance.$on('videoCall', this.makeVideoCall);
216
+ this.callBoardInstance.$on('miniCall', this.makeMiniCall);
217
+ this.callBoardInstance.$on('callBoardClose', this.handleCallBoardClose);
218
+
219
+ this.callBoardInstance.$mount(this.callBoardContainer);
220
+ },
221
+
222
+ // Mount InviteReceive component to body
223
+ mountInviteReceive() {
224
+ if (!this.inviteReceiveContainer || document.getElementById('live-invite-receive-container')) return;
225
+
226
+ if (!this.isInviteReceiveShow) return;
227
+
228
+ document.body.appendChild(this.inviteReceiveContainer);
229
+
230
+ const InviteReceiveConstructor = Vue.extend(LiveInviteReceive);
231
+ this.inviteReceiveInstance = new InviteReceiveConstructor({
232
+ propsData: {
233
+ inviteData: this.inviteData
234
+ }
235
+ });
236
+
237
+ this.inviteReceiveInstance.$on('receiveBoardClose', this.inviteReceiveClose);
238
+ this.inviteReceiveInstance.$on('acceptInviteCall', this.acceptInviteCall);
239
+ this.inviteReceiveInstance.$on('refuseInviteCall', this.refuseInviteCall);
240
+
241
+ this.inviteReceiveInstance.$mount(this.inviteReceiveContainer);
242
+ },
243
+
244
+ // Mount PointMeeting component to body
245
+ mountPointMeeting() {
246
+ if (!this.pointMeetingContainer || document.getElementById('live-point-meeting-container')) return;
247
+
248
+ if (!this.isMeetingDialogShow) return;
249
+
250
+ document.body.appendChild(this.pointMeetingContainer);
251
+
252
+ const PointMeetingConstructor = Vue.extend(LivePointMeeting);
253
+ this.pointMeetingInstance = new PointMeetingConstructor({
254
+ propsData: {
255
+ joinType: this.pointMeetingData.joinType,
256
+ meetingNum: this.pointMeetingData.meetingNum,
257
+ meetingType: this.pointMeetingData.meetingType,
258
+ inviteName: this.pointMeetingData.inviteName,
259
+ inviteType: this.pointMeetingData.inviteType,
260
+ invitePhone: this.pointMeetingData.invitePhone,
261
+ inviteWays: this.inviteWays,
262
+ inviteUserData: this.inviteUserData
263
+ }
264
+ });
265
+
266
+ this.pointMeetingInstance.$on('meetingDialogClose', this.meetingDialogClose);
267
+ this.pointMeetingInstance.$on('miniLinkSend', this.miniLinkSend);
268
+ this.pointMeetingInstance.$on('meetingStarted', this.handleMeetingStarted);
269
+ this.pointMeetingInstance.$on('meetingEnded', this.handleMeetingEnded);
270
+
271
+ this.pointMeetingInstance.$mount(this.pointMeetingContainer);
272
+ },
273
+
274
+ // Unmount CallBoard component
275
+ unmountCallBoard() {
276
+ if (this.callBoardInstance) {
277
+ this.callBoardInstance.$destroy();
278
+ this.callBoardInstance.$el.remove();
279
+ this.callBoardInstance = null;
280
+ }
281
+ if (this.callBoardContainer && this.callBoardContainer.parentNode) {
282
+ this.callBoardContainer.parentNode.removeChild(this.callBoardContainer);
283
+ }
284
+ },
285
+
286
+ // Unmount InviteReceive component
287
+ unmountInviteReceive() {
288
+ if (this.inviteReceiveInstance) {
289
+ this.inviteReceiveInstance.$destroy();
290
+ this.inviteReceiveInstance.$el.remove();
291
+ this.inviteReceiveInstance = null;
292
+ }
293
+ if (this.inviteReceiveContainer && this.inviteReceiveContainer.parentNode) {
294
+ this.inviteReceiveContainer.parentNode.removeChild(this.inviteReceiveContainer);
295
+ }
296
+ },
297
+
298
+ // Unmount PointMeeting component
299
+ unmountPointMeeting() {
300
+ if (this.pointMeetingInstance) {
301
+ this.pointMeetingInstance.$destroy();
302
+ this.pointMeetingInstance.$el.remove();
303
+ this.pointMeetingInstance = null;
304
+ }
305
+ if (this.pointMeetingContainer && this.pointMeetingContainer.parentNode) {
306
+ this.pointMeetingContainer.parentNode.removeChild(this.pointMeetingContainer);
307
+ }
308
+ },
309
+
310
+ // Clean up all mounted components
311
+ destroyMountedComponents() {
312
+ this.unmountCallBoard();
313
+ this.unmountInviteReceive();
314
+ this.unmountPointMeeting();
315
+ },
316
+ },
317
+
318
+ watch: {
319
+ model(newVal) {
320
+ if (newVal) {
321
+ this.$nextTick(() => {
322
+ this.mountCallBoard();
323
+ });
324
+ } else {
325
+ this.unmountCallBoard();
326
+ }
327
+ },
328
+
329
+ isInviteReceiveShow(newVal) {
330
+ if (newVal) {
331
+ this.$nextTick(() => {
332
+ this.mountInviteReceive();
333
+ });
334
+ } else {
335
+ this.unmountInviteReceive();
336
+ }
337
+ },
338
+
339
+ isMeetingDialogShow(newVal) {
340
+ if (newVal) {
341
+ this.$nextTick(() => {
342
+ this.mountPointMeeting();
343
+ });
344
+ } else {
345
+ this.unmountPointMeeting();
346
+ }
347
+ },
348
+
349
+ inviteData: {
350
+ handler(newVal) {
351
+ if (this.inviteReceiveInstance) {
352
+ this.inviteReceiveInstance.inviteData = newVal;
353
+ }
354
+ },
355
+ deep: true
356
+ },
357
+
358
+ pointMeetingData: {
359
+ handler(newVal) {
360
+ if (this.pointMeetingInstance) {
361
+ Object.keys(newVal).forEach(key => {
362
+ this.pointMeetingInstance[key] = newVal[key];
363
+ });
364
+ }
365
+ },
366
+ deep: true
367
+ }
368
+ }
369
+ };
370
+ </script>
371
+
372
+ <style lang="scss" scoped></style>