From 0cfbda7eee457d63ea186dad7c7d0f93a201ccfa Mon Sep 17 00:00:00 2001 From: yuhan Date: Mon, 21 Sep 2020 19:32:08 +0800 Subject: [PATCH] fix: edit user --- src/models/oneid.ts | 1 + src/oneid-app/admin/group/user/EditUser.less | 5 ++ src/oneid-app/admin/group/user/EditUser.ts | 50 ++++++++++++++++++-- src/services/oneid.ts | 12 +++++ 4 files changed, 64 insertions(+), 4 deletions(-) diff --git a/src/models/oneid.ts b/src/models/oneid.ts index a09b39a9..49a054be 100644 --- a/src/models/oneid.ts +++ b/src/models/oneid.ts @@ -158,6 +158,7 @@ export class User { password: this.password, require_reset_password: this.requireResetPassword, has_password: this.hasPassword, + is_extern_user: this.isExternUser, } if (!data.posix_user) { delete data.posix_user diff --git a/src/oneid-app/admin/group/user/EditUser.less b/src/oneid-app/admin/group/user/EditUser.less index 735d07dc..78aa4ce1 100644 --- a/src/oneid-app/admin/group/user/EditUser.less +++ b/src/oneid-app/admin/group/user/EditUser.less @@ -4,6 +4,11 @@ .ui-edit-user { .ui-form-drawer(); + .title { + display: flex; + justify-content: space-between; + } + .international-mobile { .ivu-select-selection { width: 88px; diff --git a/src/oneid-app/admin/group/user/EditUser.ts b/src/oneid-app/admin/group/user/EditUser.ts index fe2f5018..1dfc382d 100644 --- a/src/oneid-app/admin/group/user/EditUser.ts +++ b/src/oneid-app/admin/group/user/EditUser.ts @@ -31,7 +31,10 @@ interface InternationalMobile { :transfer="true" className="ui-edit-user" > -
{{ isNew ? "添加账号" : "编辑账号" }}
+
+ {{ isNew ? "添加账号" : "编辑账号" }} + +
+ +
{{customUser}}
+