From 82509eb5800d27e3c0860990f07cbe5c57aff166 Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Fri, 6 Nov 2020 16:52:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=B8=AD=20=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=A2=9E=E5=8A=A0=E6=9C=AA=E9=80=89=E6=8B=A9=E6=9D=A1?= =?UTF-8?q?=E7=9B=AE=E6=97=B6=E6=8F=90=E9=86=92=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/resource/template/web/table.vue.tpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/resource/template/web/table.vue.tpl b/server/resource/template/web/table.vue.tpl index 02018627..d107f691 100644 --- a/server/resource/template/web/table.vue.tpl +++ b/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)