From 65d9be2b6bb3136d5b7635e398b3729e3376dee6 Mon Sep 17 00:00:00 2001
From: 黄何裕 <1053952480@qq.com>
Date: 星期五, 12 七月 2024 11:52:04 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/~zxq/jxkg-new-ui-student
---
src/views/train/data-list/index.vue | 65 +++++++++++++++++---------------
1 files changed, 34 insertions(+), 31 deletions(-)
diff --git a/src/views/train/data-list/index.vue b/src/views/train/data-list/index.vue
index 70d7102..977a7bc 100644
--- a/src/views/train/data-list/index.vue
+++ b/src/views/train/data-list/index.vue
@@ -4,10 +4,14 @@
<div class="list-content w-full overflow-x-hidden">
<el-row :gutter="20">
<el-col :span="6" v-for="item in props.dataList" class="mb-5">
- <el-card shadow="hover" class="list-card cursor-pointer" :body-style="{ padding: 0 }"
- @click="itemClick(item)">
+ <el-card
+ shadow="hover"
+ class="list-card cursor-pointer"
+ :body-style="{ padding: 0 }"
+ @click="itemClick(item)"
+ >
<div class="img-container w-full">
- <img src="@/assets/image/list-card-bg.jpg" class="w-full">
+ <img src="@/assets/image/list-card-bg.jpg" class="w-full" />
</div>
<div class="item-info p-3">
<div class="info-title font-bold">{{ item.meetName }}</div>
@@ -28,18 +32,15 @@
</el-col>
</el-row>
</div>
-
</el-scrollbar>
</div>
</template>
<script setup>
-import { ref } from 'vue';
-import { Timer } from '@element-plus/icons-vue';
-import { storeToRefs } from 'pinia';
-import { useRouter } from 'vue-router';
-import { useUserStore } from '@/store/index.js';
-import { classMeet } from '@/api/modules/meet.js';
+import { storeToRefs } from "pinia";
+import { useRouter } from "vue-router";
+import { useUserStore } from "@/store/index.js";
+import { classMeet } from "@/api/modules/meet.js";
const userStore = useUserStore();
const { userInfo } = storeToRefs(userStore);
@@ -47,28 +48,30 @@
const props = defineProps({
dataList: {
type: Array,
- default: () => []
- }
+ default: () => [],
+ },
});
-
-
+const userId = JSON.parse(localStorage.getItem('user')).userInfo.id
const itemClick = (item) => {
- classMeet(item.id).then(res => {
- if (window.webBridge) {
- window.webBridge.openNewWindow(JSON.stringify(item));
- } else {
- let path = router.resolve({
- path: "/meet",
- query: { meetName: item.meetName, id: item.id, userName: userInfo.value?.realName || '', userCode: userInfo.value?.phone || '' }
- });
- window.open(path.href, '_blank');
- }
- }).catch(err => {
-
- });
-
-}
-
+ classMeet(item.id)
+ .then((res) => {
+ if (window.webBridge) {
+ window.webBridge.openNewWindow(JSON.stringify(item));
+ } else {
+ let path = router.resolve({
+ path: "/meet",
+ query: {
+ meetName: item.meetName,
+ id: item.id,
+ userName: userInfo.value?.realName + "_" + userId || "",
+ userCode: userInfo.value?.phone + "_" + userId || "",
+ },
+ });
+ window.open(path.href, "_blank");
+ }
+ })
+ .catch((err) => {});
+};
</script>
<style lang="scss" scoped>
@@ -92,4 +95,4 @@
.list-card {
border-radius: 10px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.8.0