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; +}