From a38b2ce4cf02b6ac7069ac89517287bf78f4dfdf Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期二, 29 十月 2024 14:13:56 +0800
Subject: [PATCH] 完成个人信息头像更换

---
 src/views/train/data-list/index.vue |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/views/train/data-list/index.vue b/src/views/train/data-list/index.vue
index 8a0c81e..7f88253 100644
--- a/src/views/train/data-list/index.vue
+++ b/src/views/train/data-list/index.vue
@@ -26,9 +26,15 @@
                 <div class="info-text">{{ item.endTime }}</div>
               </div>
               <div class="button-container">
-                <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>
+                <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>
@@ -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)

--
Gitblit v1.8.0