Browse Source

[Fix][UI Next][V1.0.0-Beta] Fix the bug that the tenant is 0 when editing a user. (#9739)

3.0.0/version-upgrade
songjianet 2 years ago committed by GitHub
parent
commit
9abcbbac2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-ui-next/src/service/modules/users/types.ts
  2. 2
      dolphinscheduler-ui-next/src/views/security/user-manage/components/use-user-detail.ts
  3. 1
      dolphinscheduler-ui-next/src/views/security/user-manage/types.ts
  4. 1
      dolphinscheduler-ui-next/src/views/security/user-manage/use-table.ts

2
dolphinscheduler-ui-next/src/service/modules/users/types.ts

@ -29,7 +29,7 @@ interface AlertGroupIdReq {
interface UserReq {
email: string
tenantId: number
tenantId: number | null
userName: string
userPassword: string
phone?: string

2
dolphinscheduler-ui-next/src/views/security/user-manage/components/use-user-detail.ts

@ -32,7 +32,7 @@ export function useUserDetail() {
const initialValues = {
userName: '',
userPassword: '',
tenantId: 0,
tenantId: null,
email: '',
queue: '',
phone: '',

1
dolphinscheduler-ui-next/src/views/security/user-manage/types.ts

@ -34,6 +34,7 @@ interface IRecord {
userName: string
userType: TUserType
tenantCode: string
tenantId: null | number
queueName: string
email: string
phone: string

1
dolphinscheduler-ui-next/src/views/security/user-manage/use-table.ts

@ -53,6 +53,7 @@ export function useTable() {
record.updateTime = record.updateTime
? format(parseTime(record.updateTime), 'yyyy-MM-dd HH:mm:ss')
: ''
record.tenantId = record.tenantId === 0 ? null : record.tenantId
return record
})

Loading…
Cancel
Save