From deaaad462e6fa3e69a89c39d0f12cd6106d9f876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Wed, 16 Mar 2022 10:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=9E=84=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E9=85=8D=E7=BD=AE=E5=B2=97=E4=BD=8Dbug=20518?= =?UTF-8?q?14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/mechanismManage/pages/mechanism.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/pages/config/pages/mechanismManage/pages/mechanism.vue b/src/pages/config/pages/mechanismManage/pages/mechanism.vue index ec4d5f16b..a4d4863ce 100644 --- a/src/pages/config/pages/mechanismManage/pages/mechanism.vue +++ b/src/pages/config/pages/mechanismManage/pages/mechanism.vue @@ -531,12 +531,16 @@ export default { }, selectEdit() { - this.userId = [] - this.manageData.forEach(item=>{ - this.userId.push(item.userId) - }) - this.drawerTitle = '批量配置岗位' - this.modalPost = true + if(this.manageData.length){ + this.userId = [] + this.manageData.forEach(item=>{ + this.userId.push(item.userId) + }) + this.drawerTitle = '批量配置岗位' + this.modalPost = true + }else{ + this.$message.warning('请选择需要批量配置岗位的角色') + } }, }, computed: {},