mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-01 03:37:46 +08:00
Merge pull request #4649 from chengshiwen/fix-create-user
[Fix-4648][UI] Fix TypeError: Cannot read property 'id' of undefined in createUser
This commit is contained in:
commit
8419ad798c
@ -239,7 +239,9 @@
|
||||
}
|
||||
})
|
||||
this.$nextTick(() => {
|
||||
this.tenantId = this.tenantList[0].id
|
||||
if (this.tenantList.length) {
|
||||
this.tenantId = this.tenantList[0].id
|
||||
}
|
||||
})
|
||||
resolve()
|
||||
})
|
||||
@ -291,9 +293,14 @@
|
||||
this.email = this.item.email
|
||||
this.phone = this.item.phone
|
||||
this.userState = this.item.state + '' || '1'
|
||||
this.tenantId = this.item.tenantId
|
||||
if (this.item.tenantName) {
|
||||
this.tenantId = this.item.tenantId
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.queueName = _.find(this.queueList, ['code', this.item.queue]).id || ''
|
||||
let queue = _.find(this.queueList, ['code', this.item.queue])
|
||||
if (queue) {
|
||||
this.queueName = queue.id || ''
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -304,9 +311,14 @@
|
||||
this.email = this.item.email
|
||||
this.phone = this.item.phone
|
||||
this.userState = this.state + '' || '1'
|
||||
this.tenantId = this.item.tenantId
|
||||
if (this.item.tenantName) {
|
||||
this.tenantId = this.item.tenantId
|
||||
}
|
||||
if (this.queueList.length > 0) {
|
||||
this.queueName = _.find(this.queueList, ['code', this.item.queue]).id
|
||||
let queue = _.find(this.queueList, ['code', this.item.queue])
|
||||
if (queue) {
|
||||
this.queueName = queue.id || ''
|
||||
}
|
||||
} else {
|
||||
this.queueName = ''
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user