From c03b24331992f1f088de23d840ed45de1f644dd6 Mon Sep 17 00:00:00 2001 From: x_ying <2438792676@qq.com> Date: Tue, 26 Jul 2022 15:22:23 +0800 Subject: [PATCH] =?UTF-8?q?crud=E7=BB=84=E4=BB=B6=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20bug=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/yxk-admin.scss | 2 +- src/components/Crud/CRUD.operation.vue | 38 +++++++++++++++++++------- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/src/assets/styles/yxk-admin.scss b/src/assets/styles/yxk-admin.scss index 42d31aa..aac605e 100644 --- a/src/assets/styles/yxk-admin.scss +++ b/src/assets/styles/yxk-admin.scss @@ -431,7 +431,7 @@ } .el-icon-arrow-right:before{ - color: #fff; + color: #303133; } // 分页 diff --git a/src/components/Crud/CRUD.operation.vue b/src/components/Crud/CRUD.operation.vue index 79b3dc2..424ffbc 100644 --- a/src/components/Crud/CRUD.operation.vue +++ b/src/components/Crud/CRUD.operation.vue @@ -12,7 +12,7 @@ 修改 - + 删除 @@ -20,6 +20,17 @@ + + + + +
+

确定删除所选{{ crud.selections.length }}条数据吗?

+ +
+
@@ -79,7 +90,9 @@ export default { allColumnsSelectedIndeterminate: false, tableUnwatcher: null, // 忽略下次表格列变动 - ignoreNextTableColumnsChange: false + ignoreNextTableColumnsChange: false, + delVisible: false + } }, watch: { @@ -128,14 +141,15 @@ export default { this.tableColumns = columns }, toDelete(datas) { - this.$confirm(this.crud.confirmDeleteMsg ? this.crud.confirmDeleteMsg : `确认删除选中的${datas.length}条数据?`, '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消' - }).then(() => { - this.crud.delAllLoading = true - this.crud.doDelete(datas) - }).catch(() => { - }) + // this.$confirm(this.crud.confirmDeleteMsg ? this.crud.confirmDeleteMsg : `确认删除选中的${datas.length}条数据?`, '提示', { + // confirmButtonText: '确定', + // cancelButtonText: '取消' + // }).then(() => { + this.crud.delAllLoading = true + this.delVisible = false + this.crud.doDelete(datas) + // }).catch(() => { + // }) }, handleCheckAllChange(val) { if (val === false) { @@ -207,4 +221,8 @@ export default { .crud-opts .crud-opts-right span { float: left; } +.delMsg{ + color: #fff; + font-size: 16px; +}