From fcb89656200d844f706736cd885b4fe6115eed8a Mon Sep 17 00:00:00 2001 From: lohir <3399054449@qq.com> Date: 星期三, 16 十月 2024 11:43:01 +0800 Subject: [PATCH] bug --- src/views/train/data-list/index.vue | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/views/train/data-list/index.vue b/src/views/train/data-list/index.vue index 389ca5d..7f88253 100644 --- a/src/views/train/data-list/index.vue +++ b/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) -- Gitblit v1.8.0