Browse Source

[Feature][UI Next] Delete edit profile state. (#7966)

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
53e0124410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      dolphinscheduler-ui-next/src/views/profile/index.tsx
  2. 2
      dolphinscheduler-ui-next/src/views/profile/use-form.ts
  3. 2
      dolphinscheduler-ui-next/src/views/profile/use-update.ts

10
dolphinscheduler-ui-next/src/views/profile/index.tsx

@ -107,16 +107,6 @@ const profile = defineComponent({
placeholder={t('profile.phone_tips')}
/>
</NFormItem>
<NFormItem label={t('profile.state')} path='state'>
<NRadioGroup v-model={[this.profileForm.state, 'value']}>
{[
{ value: 1, label: t('profile.enable') },
{ value: 0, label: t('profile.disable') },
].map((item) => {
return <NRadio value={item.value}>{item.label}</NRadio>
})}
</NRadioGroup>
</NFormItem>
</NForm>
),
}}

2
dolphinscheduler-ui-next/src/views/profile/use-form.ts

@ -32,7 +32,6 @@ export function useForm() {
username: userInfo.userName,
email: userInfo.email,
phone: userInfo.phone,
state: userInfo.state,
},
rules: {
username: {
@ -63,7 +62,6 @@ export function useForm() {
username: userInfo.userName,
email: userInfo.email,
phone: userInfo.phone,
state: userInfo.state,
}
})

2
dolphinscheduler-ui-next/src/views/profile/use-update.ts

@ -33,7 +33,7 @@ export function useUpdate(state: any) {
tenantId: userInfo.tenantId,
email: state.profileForm.email,
phone: state.profileForm.phone,
state: state.profileForm.state,
state: userInfo.state,
queue: userInfo.queue,
})
}

Loading…
Cancel
Save