Browse Source

自动化代码中 批量删除功能增加未选择条目时提醒功能

pixel 4 years ago
parent
commit
82509eb580
1 changed files with 7 additions and 0 deletions
  1. 7 0
      server/resource/template/web/table.vue.tpl

+ 7 - 0
server/resource/template/web/table.vue.tpl

@@ -210,6 +210,13 @@ export default {
       },
       async onDelete() {
         const ids = []
+        if(this.multipleSelection.length == 0){
+          this.$message({
+            type: 'warning',
+            message: '请选择要删除的数据'
+          })
+          return
+        }
         this.multipleSelection &&
           this.multipleSelection.map(item => {
             ids.push(item.ID)