From 0e13426235b2607f3adad089e897acc45aee575b Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Fri, 5 Jun 2026 17:59:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E9=97=B4=E5=8F=B7=E7=94=9F=E6=88=90?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=98=AFmeetingType=20=E6=95=B0=E5=AD=97?= =?UTF-8?q?=E8=BD=AC=E5=AD=97=E7=AC=A6=E4=B8=B2=20id=20=E8=A1=A5=E9=BD=903?= =?UTF-8?q?=20=E4=BD=8D=E3=80=81=E5=89=8D=E9=9D=A2=E8=A1=A5=200=EF=BC=8C?= =?UTF-8?q?=E4=BE=8B=EF=BC=9A5=20=E2=86=92=20'005'=E3=80=8112=20=E2=86=92?= =?UTF-8?q?=20'012'=E3=80=81123=E2=86=92'123'=20=E6=8B=BC=E6=8E=A5?= =?UTF-8?q?=EF=BC=9AmeetingType=20+=203=E4=BD=8D=E8=A1=A5=E9=9B=B6id=20+?= =?UTF-8?q?=20=E5=85=A8=E5=B1=80MEETING=5FPREFIX=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/videoCommunication/index.vue | 26 +++- .../videoCommunication/qualityControl.vue | 123 ++++++++++++------ 2 files changed, 107 insertions(+), 42 deletions(-) diff --git a/src/views/videoCommunication/index.vue b/src/views/videoCommunication/index.vue index 6d78c06..e19e2d8 100644 --- a/src/views/videoCommunication/index.vue +++ b/src/views/videoCommunication/index.vue @@ -179,7 +179,7 @@ import { getConsultationList, getConsultationMeetingInfo, } from "@/api/videoCommunication"; - +import { mapGetters } from "vuex"; export default { name: "VideoPage", data() { @@ -198,6 +198,7 @@ export default { color: "blue", routeName: "RealTimeConsultation", routePath: "/videoCommunication/realTimeConsultation", + type: 1, }, { title: "带教培训", @@ -205,6 +206,7 @@ export default { color: "yellow", routeName: "Training", routePath: "/videoCommunication/training", + type: 9, }, { title: "在线质控", @@ -212,6 +214,7 @@ export default { color: "grayblue", routeName: "QualityControl", routePath: "/videoCommunication/qualityControl", + type: 6, }, { title: "病例研讨", @@ -219,6 +222,7 @@ export default { color: "greenblue", routeName: "CaseStudy", routePath: "/videoCommunication/caseStudy", + type: 3, }, ], list: [], @@ -226,6 +230,9 @@ export default { meetingDetail: {}, }; }, + computed: { + ...mapGetters(["userInfo", "config"]), + }, mounted() { this.getList(); }, @@ -271,12 +278,23 @@ export default { this.loading = false; }); }, - + generateRoomId(meetingType, id) { + // 1. id固定3位,不足左侧补0 + const idStr = String(id).padStart(3, "0"); + // 拼接 = 会议类型 + 3位id + 前缀 + const roomId = meetingType + idStr + this.config.MEETING_PREFIX; + return roomId; + }, // 处理会议模式点击 handleModeClick(mode) { - this.$router.push({ name: mode.routeName }); + this.$router.push({ + name: mode.routeName, + query: { + name: this.userInfo.group, + roomId_id: this.generateRoomId(mode.type, this.userInfo.id), + }, + }); }, - // 会议记录列表 getList() { this.loading = true; diff --git a/src/views/videoCommunication/qualityControl.vue b/src/views/videoCommunication/qualityControl.vue index 60999c8..1b491b4 100644 --- a/src/views/videoCommunication/qualityControl.vue +++ b/src/views/videoCommunication/qualityControl.vue @@ -1,6 +1,5 @@