From ff3b5c2ba2a757f050cf833f1af340f384874934 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期四, 04 七月 2024 17:08:04 +0800 Subject: [PATCH] 教学资源加班级 --- src/views/train/data-list/index.vue | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/views/train/data-list/index.vue b/src/views/train/data-list/index.vue index 8ae8f7f..8a0c81e 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,7 +26,7 @@ <div class="info-text">{{ item.endTime }}</div> </div> <div class="button-container"> - <el-button @click="start(item)">寮�濮嬩笂璇�</el-button> + <el-button v-if="item.status!==2" @click="start(item)">寮�濮嬩笂璇�</el-button> <el-button @click="handleUpdate(item)">缂栬緫</el-button> <el-button @click="remove(item)">鍒犻櫎</el-button> </div> @@ -42,16 +46,25 @@ }, methods: { handleUpdate (item) { - this.$emit('handleUpdate',item) + this.$emit('handleUpdate', item) }, remove (item) { - this.$emit('remove',item) + this.$emit('remove', item) }, start (item) { - this.$emit('start',item) + 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