From 5fdccef83dd3dbb2d4acc6c6f67cee1d95208222 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Fri, 24 May 2024 16:35:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201672=20=E5=BA=93=E7=AE=A1=E5=91=98?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=AD=E6=9C=AA=E7=BB=91=E5=AE=9A=E7=9A=84?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E4=BA=A6=E5=8F=AF=E8=A7=A3=E7=BB=91=EF=BC=8C?= =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E6=9C=AA=E7=BB=91=E5=AE=9A=E6=97=B6=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E2=80=9C=E8=A7=A3=E7=BB=91=E2=80=9D=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/views/store/tools/keeper.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sgzb-ui/src/views/store/tools/keeper.vue b/sgzb-ui/src/views/store/tools/keeper.vue index 418ce5ca..7abd9142 100644 --- a/sgzb-ui/src/views/store/tools/keeper.vue +++ b/sgzb-ui/src/views/store/tools/keeper.vue @@ -130,6 +130,7 @@ size="mini" type="danger" icon="el-icon-delete" + :disabled="!scope.row.userName" @click="handleDelete(scope.row)" >解绑 @@ -359,7 +360,15 @@ export default { handleSelectionChange(selection) { this.ids = selection.map(item => item.modelId); this.single = selection.length != 1; - this.multiple = !selection.length; + if (selection.length > 0) { + selection.forEach(item => { + if (!item.userName) { + this.multiple = true + } + }); + } else { + this.multiple = true + } }, /** 新增按钮操作 */ handleSave() {