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() {