实训调整

This commit is contained in:
fan 2022-09-02 15:19:32 +08:00
parent b0cfbb3f35
commit 97065ca162

View File

@ -246,8 +246,10 @@ export default {
},
handleEditOperate(index, row) {
const member = this.$store.state.training.memberData[row.memberId];
assignUsersPlayRoles([{ userId: this.$store.state.user.id, memberId: member.id}], this.$route.query.group).then(resp => {
}).catch(() => { this.$message.error('调整角色失败!'); });
if (!member.userId) {
assignUsersPlayRoles([{ userId: this.$store.state.user.id, memberId: member.id}], this.$route.query.group).then(resp => {
}).catch(() => { this.$message.error('调整角色失败!'); });
}
// assignUsersPlayRoles
this.$emit('openEditOperate', { index: index, data: row });
this.doClose();