bug
lohir
2024-10-16 fcb89656200d844f706736cd885b4fe6115eed8a
bug
1个文件已修改
18 ■■■■ 已修改文件
src/views/train/data-list/index.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/train/data-list/index.vue
@@ -28,7 +28,13 @@
              <div class="button-container">
                <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-button @click="remove(item)" type="danger" 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>
@@ -40,6 +46,8 @@
<script>
import examPaperApi from "@/api/examPaper";
export default {
  props: {
    tableData: []
@@ -49,7 +57,13 @@
      this.$emit('handleUpdate', item)
    },
    remove (item) {
      this.$emit('remove', item)
      this.$confirm('此操作将永久删除该成员, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$emit('remove', item)
      })
    },
    start (item) {
      this.$emit('start', item)