|
@@ -87,7 +87,7 @@
|
|
|
<div class="icon1"></div>
|
|
|
<div class="text">会议号入会</div>
|
|
|
</div>
|
|
|
- <div class="btn" @click="handleStartCall">
|
|
|
+ <div class="btn" @click="handleOpenCall">
|
|
|
<div class="icon2"></div>
|
|
|
<div class="text">电话呼叫</div>
|
|
|
</div>
|
|
@@ -131,6 +131,20 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</Dialog>
|
|
|
+
|
|
|
+ <Dialog v-if="showOpenMeeting" custom-show type="xs" height="660px" title="电话呼叫" @confirm="handleStartCall" @close="closeOpenDialog">
|
|
|
+ <el-form ref="form2Ref" :model="openMeetingForm" :rules="rules2">
|
|
|
+
|
|
|
+ <el-form-item label="账号" label-width="200px" prop="username">
|
|
|
+ <el-input v-model="openMeetingForm.username" class="custom-input2" clearable placeholder="请输入设备账号" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="密码" label-width="200px" prop="userpass">
|
|
|
+ <el-input v-model="openMeetingForm.userpass" type="password" class="custom-input2" clearable placeholder="请输入设备密码" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </Dialog>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -281,6 +295,9 @@ const handleOpenMeeting = () => {
|
|
|
const closeOpenDialog = () => {
|
|
|
showOpenMeeting.value = false;
|
|
|
};
|
|
|
+const handleOpenCall = () => {
|
|
|
+ showOpenMeeting.value = true;
|
|
|
+};
|
|
|
|
|
|
// 会议号入会
|
|
|
const handleJoinMeeting = () => {
|
|
@@ -313,35 +330,44 @@ const handleJoinMeeting = () => {
|
|
|
|
|
|
// 电话呼叫
|
|
|
const handleStartCall = () => {
|
|
|
- let dev_list = [];
|
|
|
- userList.value.forEach((item) => {
|
|
|
- if (item.checked && item.mobile != '') {
|
|
|
- dev_list.push({ id: item.mobile, avtype: 'a' }); // a 音频 v 视频 默认 av
|
|
|
- }
|
|
|
- });
|
|
|
- if (dev_list.length == 0) {
|
|
|
- proxy?.$modal.msgError('请勾选人员');
|
|
|
- return false;
|
|
|
- }
|
|
|
- const screenWidth = window.screen.width * window.devicePixelRatio;
|
|
|
- const screenHeight = window.screen.height * window.devicePixelRatio;
|
|
|
- const data = {
|
|
|
- userid: 'mmyj0009', // 空表示后台获取当前用户对应融合通信dev_id
|
|
|
- password: '',
|
|
|
- windowpos: { 'x': 0, 'y': 0, 'width': screenWidth, 'height': screenHeight, 'top': true },
|
|
|
- members: {
|
|
|
- num: dev_list.length + 2, // 配置多少个座位,一般就是邀请人多少个就多少个
|
|
|
- 'dev-list': dev_list
|
|
|
+ form2Ref.value?.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ let dev_list = [];
|
|
|
+ userList.value.forEach((item) => {
|
|
|
+ if (item.checked && item.mobile != '') {
|
|
|
+ dev_list.push({ id: item.mobile, avtype: 'a' }); // a 音频 v 视频 默认 av
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (dev_list.length == 0) {
|
|
|
+ proxy?.$modal.msgError('请勾选人员');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ const screenWidth = window.screen.width * window.devicePixelRatio;
|
|
|
+ const screenHeight = window.screen.height * window.devicePixelRatio;
|
|
|
+ const data = {
|
|
|
+ userid: openMeetingForm.username, // 空表示后台获取当前用户对应融合通信dev_id
|
|
|
+ password: openMeetingForm.userpass,
|
|
|
+ windowpos: { 'x': 0, 'y': 0, 'width': screenWidth, 'height': screenHeight, 'top': true },
|
|
|
+ members: {
|
|
|
+ num: dev_list.length + 2, // 配置多少个座位,一般就是邀请人多少个就多少个
|
|
|
+ 'dev-list': dev_list
|
|
|
+ }
|
|
|
+ };
|
|
|
+ getStartMiniParam(data).then((res) => {
|
|
|
+ // 创建一个a标签元素
|
|
|
+ const a = document.createElement('a');
|
|
|
+ // 设置a标签的href属性
|
|
|
+ a.href = res.data;
|
|
|
+ // 触发点击事件
|
|
|
+ a.click();
|
|
|
+
|
|
|
+ // 保存账号和密码
|
|
|
+ localStorage.setItem('meeting_username', openMeetingForm.username)
|
|
|
+ localStorage.setItem('meeting_userpass', openMeetingForm.userpass)
|
|
|
+ });
|
|
|
+ closeOpenDialog();
|
|
|
}
|
|
|
- };
|
|
|
- getStartMiniParam(data).then((res) => {
|
|
|
- // 创建一个a标签元素
|
|
|
- const a = document.createElement('a');
|
|
|
- // 设置a标签的href属性
|
|
|
- a.href = res.data;
|
|
|
- // 触发点击事件
|
|
|
- a.click();
|
|
|
- });
|
|
|
+ })
|
|
|
};
|
|
|
|
|
|
// 发起会议
|