[Improvement-4740][UI] Set the default Tenant as default or the first exist tenant in save process (#4742)

This commit is contained in:
Shiwen Cheng 2021-02-14 21:28:02 +08:00 committed by GitHub
parent cbada7c16d
commit 60016fbd66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -213,10 +213,10 @@
this.timeout = dag.timeout || 0
this.checkedTimeout = this.timeout !== 0
this.$nextTick(() => {
if (dag.tenantId === -1) {
this.tenantId = this.store.state.user.userInfo.tenantId
} else {
if (dag.tenantId > -1) {
this.tenantId = dag.tenantId
} else if (this.store.state.user.userInfo.tenantId) {
this.tenantId = this.store.state.user.userInfo.tenantId
}
})
},

View File

@ -293,7 +293,7 @@
this.email = this.item.email
this.phone = this.item.phone
this.userState = this.item.state + '' || '1'
if (this.item.tenantName) {
if (this.item.tenantId) {
this.tenantId = this.item.tenantId
}
this.$nextTick(() => {
@ -311,7 +311,7 @@
this.email = this.item.email
this.phone = this.item.phone
this.userState = this.state + '' || '1'
if (this.item.tenantName) {
if (this.item.tenantId) {
this.tenantId = this.item.tenantId
}
if (this.queueList.length > 0) {