From bcc67be745fd4b1b9a57e0e8cd7c13cab8dfd2fd Mon Sep 17 00:00:00 2001
From: lohir <3399054449@qq.com>
Date: 星期四, 17 十月 2024 19:07:37 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/views/train/data-list/index.vue | 89 +++++++++++++++++---------------------------
1 files changed, 35 insertions(+), 54 deletions(-)
diff --git a/src/views/train/data-list/index.vue b/src/views/train/data-list/index.vue
index db2b93a..7f88253 100644
--- a/src/views/train/data-list/index.vue
+++ b/src/views/train/data-list/index.vue
@@ -14,6 +14,10 @@
<div class="info-text">{{ item.teacherName }}</div>
</div>
<div class="info-time">
+ <div class="info-label">鐘舵��:</div>
+ <div class="info-text">{{ translateStatus(item.status) }}</div>
+ </div>
+ <div class="info-time">
<div class="info-label">寮�濮嬫椂闂�:</div>
<div class="info-text">{{ item.startTime }}</div>
</div>
@@ -22,9 +26,15 @@
<div class="info-text">{{ item.endTime }}</div>
</div>
<div class="button-container">
- <el-button @click="start(item)">寮�濮嬩笂璇�</el-button>
- <el-button @click="handleUpdate(item)">缂栬緫</el-button>
- <el-button @click="remove(item)">鍒犻櫎</el-button>
+ <el-button v-if="item.status!==2" @click="start(item)" type="primary" size="small">寮�濮嬩笂璇�</el-button>
+ <el-button @click="handleUpdate(item)" type="warning" size="small">缂栬緫</el-button>
+ <el-popconfirm
+ style="margin: 0 5px"
+ title="纭畾瑕佸垹闄よ鍩硅鍚楋紵"
+ @confirm="remove(item)"
+ >
+ <el-button slot="reference" type="danger" size="small" >鍒犻櫎</el-button>
+ </el-popconfirm>
</div>
</div>
</el-card>
@@ -36,68 +46,39 @@
<script>
+import examPaperApi from "@/api/examPaper";
+
export default {
props: {
- tableData: [
- {
- id: 1,
- meetName: '鑻辫',
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacherName: '鍏宠�佸笀'
- },
- {
- id: 2,
- meetName: '璇枃',
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacherName: '娴嬭瘯娴嬭瘯'
- },
- {
- id: 3,
- meetName: '鏁板',
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacherName: '娴嬭瘯娴嬭瘯'
- },
- {
- id: 4,
- meetName: '鏈哄満鑸┖',
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacherName: '娴嬭瘯娴嬭瘯'
- },
- {
- id: 5,
- startTime: '2024-6-13 8:00',
- endTime: '2024-6-13 8:00',
- teacherName: '娴嬭瘯娴嬭瘯',
- }
- ]
+ tableData: []
},
methods: {
handleUpdate (item) {
- this.$emit('handleUpdate',item)
+ this.$emit('handleUpdate', item)
},
remove (item) {
- this.$emit('remove',item)
+ this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ垚鍛�, 鏄惁缁х画?', '鎻愮ず', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning'
+ }).then(() => {
+ this.$emit('remove', item)
+ })
},
start (item) {
- let routeUrl = this.$router.resolve({
- path: "/meet",
- query: {
- domain: 'ycl.easyblog.vip:8443/' + item.id,
- roomName: item.meetName,
- userInfoStr: JSON.stringify({
- displayName: item.teacherName
- })
- }
- })
- window.open(routeUrl.href, '_blank')
- // window.open('https://ycl.easyblog.vip:8443/test');
+ this.$emit('start', item)
+ },
+ translateStatus (status) {
+ if (status === 0) {
+ return '寰呭紑濮�'
+ } else if (status === 1) {
+ return '杩涜涓�'
+ } else {
+ return '宸茬粨鏉�'
+ }
}
}
-};
+}
</script>
<style lang="scss" scoped>
--
Gitblit v1.8.0