From ab3a88b64b5ac7db905cffe76ff679756595f63b Mon Sep 17 00:00:00 2001 From: Shiwen Cheng Date: Tue, 29 Jun 2021 17:22:12 +0800 Subject: [PATCH] [Fix-5699][UI] Fix update user error in user information (#5700) --- .../pages/security/pages/users/_source/createUser.vue | 7 ++++--- .../js/conf/home/pages/security/pages/users/index.vue | 6 ++++-- .../conf/home/pages/user/pages/account/_source/info.vue | 9 ++------- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue index eed178787b..53db31cb86 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue @@ -138,7 +138,8 @@ } }, props: { - item: Object + item: Object, + fromUserInfo: Boolean }, methods: { _ok () { @@ -294,7 +295,7 @@ this.phone = this.item.phone this.state = this.item.state this.userState = this.item.state + '' || '1' - if (this.item.tenantId === 0 || this.item.tenantId) { + if (this.fromUserInfo || this.item.tenantId) { this.tenantId = this.item.tenantId } this.$nextTick(() => { @@ -313,7 +314,7 @@ this.phone = this.item.phone this.state = this.item.state this.userState = this.state + '' || '1' - if (this.item.tenantId === 0 || this.item.tenantId) { + if (this.fromUserInfo || this.item.tenantId) { this.tenantId = this.item.tenantId } if (this.queueList.length > 0) { diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue index 220346b9c0..f0789019e3 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue @@ -60,7 +60,7 @@