From 623b42332ee5bee56490db124743cf1694edc395 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Sat, 8 Oct 2022 16:58:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trainingManage/editDetails.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/trainingManage/editDetails.vue b/src/views/trainingManage/editDetails.vue index f20ac4ab3..e038e2f8d 100644 --- a/src/views/trainingManage/editDetails.vue +++ b/src/views/trainingManage/editDetails.vue @@ -288,6 +288,10 @@ export default { this.doClose(); }, handleEditOperate(index, row) { + if (!row.memberId) { + this.$message.info('请先选择角色!'); + return; + } const member = this.$store.state.training.memberData[row.memberId]; if (!member.userId) { assignUsersPlayRoles([{ userId: this.$store.state.user.id, memberId: member.id}], this.$route.query.group).then(resp => {