From 632e609a88161923c64170cbd0c41437eeca5af5 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 28 六月 2024 11:35:29 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev
---
src/views/train/data-list/index.vue | 71 +++++++++--------------------------
1 files changed, 19 insertions(+), 52 deletions(-)
diff --git a/src/views/train/data-list/index.vue b/src/views/train/data-list/index.vue
index a3e3a16..8ae8f7f 100644
--- a/src/views/train/data-list/index.vue
+++ b/src/views/train/data-list/index.vue
@@ -2,16 +2,16 @@
<div class="list-container w-full h-full">
<div class="list-content w-full overflow-x-hidden">
<el-row :gutter="20">
- <el-col :span="6" v-for="item in dataList" class="margin-col">
+ <el-col :span="6" v-for="item in tableData" class="margin-col">
<el-card shadow="hover" class="list-card cursor-pointer" :body-style="{ padding: 0 }">
<div class="img-container w-full">
<img src="@/assets/list-card-bg.jpg" class="width-img">
</div>
<div class="item-info p-3">
- <div class="info-title">{{ item.title }}</div>
- <div class="info-teacher">
+ <div class="info-title">{{ item.meetName }}</div>
+ <div class="info-teacherName">
<div class="info-label">涓昏:</div>
- <div class="info-text">{{ item.teacher }}</div>
+ <div class="info-text">{{ item.teacherName }}</div>
</div>
<div class="info-time">
<div class="info-label">寮�濮嬫椂闂�:</div>
@@ -22,7 +22,9 @@
<div class="info-text">{{ item.endTime }}</div>
</div>
<div class="button-container">
- <el-button @click="start">寮�濮嬩笂璇�</el-button>
+ <el-button @click="start(item)">寮�濮嬩笂璇�</el-button>
+ <el-button @click="handleUpdate(item)">缂栬緫</el-button>
+ <el-button @click="remove(item)">鍒犻櫎</el-button>
</div>
</div>
</el-card>
@@ -33,55 +35,20 @@
</template>
<script>
+
export default {
- data() {
- return {
- dataList: [
- {
- title: '娴嬭瘯1',
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacher: '娴嬭瘯娴嬭瘯',
- roomName: 'test'
- },
- {
- title: '娴嬭瘯1',
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacher: '娴嬭瘯娴嬭瘯',
- roomName: 'test'
- },
- {
- title: '娴嬭瘯1',
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacher: '娴嬭瘯娴嬭瘯',
- roomName: 'test'
- },
- {
- title: '娴嬭瘯1',
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacher: '娴嬭瘯娴嬭瘯',
- roomName: 'test'
- },
- {
- title: '娴嬭瘯1',
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacher: '娴嬭瘯娴嬭瘯',
- roomName: 'test'
- }
- ]
- };
+ props: {
+ tableData: []
},
methods: {
- start () {
- let routeUrl = this.$router.resolve({
- path: "/meet",
- })
- window.open(routeUrl.href, '_blank')
- // window.open('https://ycl.easyblog.vip:8443/test');
+ handleUpdate (item) {
+ this.$emit('handleUpdate',item)
+ },
+ remove (item) {
+ this.$emit('remove',item)
+ },
+ start (item) {
+ this.$emit('start',item)
}
}
};
@@ -118,7 +85,7 @@
font-weight: bold;
}
-.info-teacher {
+.info-teacherName {
display: flex;
font-size: 14px;
}
--
Gitblit v1.8.0