未验证 提交 60016fbd 编写于 作者: S Shiwen Cheng 提交者: GitHub

[Improvement-4740][UI] Set the default Tenant as default or the first exist...

[Improvement-4740][UI] Set the default Tenant as default or the first exist tenant in save process (#4742)
上级 cbada7c1
...@@ -213,10 +213,10 @@ ...@@ -213,10 +213,10 @@
this.timeout = dag.timeout || 0 this.timeout = dag.timeout || 0
this.checkedTimeout = this.timeout !== 0 this.checkedTimeout = this.timeout !== 0
this.$nextTick(() => { this.$nextTick(() => {
if (dag.tenantId === -1) { if (dag.tenantId > -1) {
this.tenantId = this.store.state.user.userInfo.tenantId
} else {
this.tenantId = dag.tenantId this.tenantId = dag.tenantId
} else if (this.store.state.user.userInfo.tenantId) {
this.tenantId = this.store.state.user.userInfo.tenantId
} }
}) })
}, },
......
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
this.email = this.item.email this.email = this.item.email
this.phone = this.item.phone this.phone = this.item.phone
this.userState = this.item.state + '' || '1' this.userState = this.item.state + '' || '1'
if (this.item.tenantName) { if (this.item.tenantId) {
this.tenantId = this.item.tenantId this.tenantId = this.item.tenantId
} }
this.$nextTick(() => { this.$nextTick(() => {
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
this.email = this.item.email this.email = this.item.email
this.phone = this.item.phone this.phone = this.item.phone
this.userState = this.state + '' || '1' this.userState = this.state + '' || '1'
if (this.item.tenantName) { if (this.item.tenantId) {
this.tenantId = this.item.tenantId this.tenantId = this.item.tenantId
} }
if (this.queueList.length > 0) { if (this.queueList.length > 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册