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 @@