From fa9435a2d221e1366bc19f21d5d30d3986be4f09 Mon Sep 17 00:00:00 2001 From: Canway-shiisa <90179140+Canway-shiisa@users.noreply.github.com> Date: Mon, 4 Sep 2023 19:42:49 +0800 Subject: [PATCH 1/6] =?UTF-8?q?fix=EF=BC=9A=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90=E7=94=A8=E6=88=B7-LOGO=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=9D=9E=E5=BF=85=E5=A1=AB=20(#1214)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bk-user/bkuser/apis/web/data_source/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bk-user/bkuser/apis/web/data_source/serializers.py b/src/bk-user/bkuser/apis/web/data_source/serializers.py index bfa9bf323..890ff4528 100644 --- a/src/bk-user/bkuser/apis/web/data_source/serializers.py +++ b/src/bk-user/bkuser/apis/web/data_source/serializers.py @@ -154,7 +154,7 @@ class UserUpdateInputSLZ(serializers.Serializer): email = serializers.CharField(help_text="邮箱") phone_country_code = serializers.CharField(help_text="手机国际区号") phone = serializers.CharField(help_text="手机号") - logo = serializers.CharField(help_text="用户 Logo", allow_blank=True) + logo = serializers.CharField(help_text="用户 Logo", allow_blank=True, required=False, default="") department_ids = serializers.ListField(help_text="部门ID列表", child=serializers.IntegerField()) leader_ids = serializers.ListField(help_text="上级ID列表", child=serializers.IntegerField()) From 46969ee1285f31f5b827117111271393afa1f760 Mon Sep 17 00:00:00 2001 From: neronkl <49228807+neronkl@users.noreply.github.com> Date: Mon, 4 Sep 2023 19:47:30 +0800 Subject: [PATCH 2/6] fix(organization): fix update tenant without updated_at (#1212) --- src/bk-user/bkuser/apis/web/tenant/serializers.py | 4 +++- src/bk-user/bkuser/biz/tenant.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bk-user/bkuser/apis/web/tenant/serializers.py b/src/bk-user/bkuser/apis/web/tenant/serializers.py index f4022bbda..218ae1fbd 100644 --- a/src/bk-user/bkuser/apis/web/tenant/serializers.py +++ b/src/bk-user/bkuser/apis/web/tenant/serializers.py @@ -100,7 +100,9 @@ def get_data_sources(self, obj: Tenant) -> List[Dict]: class TenantUpdateInputSLZ(serializers.Serializer): name = serializers.CharField(help_text="租户名称") - logo = serializers.CharField(help_text="租户 Logo", required=False, default=settings.DEFAULT_TENANT_LOGO) + logo = serializers.CharField( + help_text="租户 Logo", required=False, allow_blank=True, default=settings.DEFAULT_TENANT_LOGO + ) manager_ids = serializers.ListField(child=serializers.CharField(), help_text="租户用户 ID 列表", allow_empty=False) feature_flags = TenantFeatureFlagSLZ(help_text="租户特性集") diff --git a/src/bk-user/bkuser/biz/tenant.py b/src/bk-user/bkuser/biz/tenant.py index 8e704dfbc..010bc6f6e 100644 --- a/src/bk-user/bkuser/biz/tenant.py +++ b/src/bk-user/bkuser/biz/tenant.py @@ -12,6 +12,7 @@ from typing import Dict, List, Optional from django.db import transaction +from django.utils.timezone import now from pydantic import BaseModel from bkuser.apps.data_source.models import ( @@ -307,7 +308,7 @@ def update_with_managers(tenant_id: str, tenant_info: TenantEditableBaseInfo, ma with transaction.atomic(): # 更新基本信息 - Tenant.objects.filter(id=tenant_id).update(**tenant_info.model_dump()) + Tenant.objects.filter(id=tenant_id).update(updated_at=now(), **tenant_info.model_dump()) if should_deleted_manager_ids: TenantManager.objects.filter( From c024dd67d4acba400691d97973141683a6afc79e Mon Sep 17 00:00:00 2001 From: yuri0528 <72436066+yuri0528@users.noreply.github.com> Date: Mon, 4 Sep 2023 21:18:39 +0800 Subject: [PATCH 3/6] =?UTF-8?q?fix:=20=E5=89=8D=E7=AB=AF=E4=BD=93=E9=AA=8C?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=20(#1211)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/src/components/Empty.vue | 2 ++ .../layouts/MainBreadcrumbsDetails.vue | 8 +++--- .../src/views/data-source/LocalDataSource.vue | 2 +- .../data-source/local-details/EditUser.vue | 27 ++++++++++++------- .../data-source/local-details/UserInfo.vue | 24 ++++++++++------- .../data-source/local-details/ViewUser.vue | 20 +++++++------- .../views/data-source/local-details/index.vue | 2 +- .../organization/details/DetailsInfo.vue | 3 ++- .../organization/details/EditDetailsInfo.vue | 22 ++++++++------- .../views/organization/details/ViewUser.vue | 22 +++++++-------- src/pages/src/views/organization/index.vue | 20 +++++++++----- .../tenant/group-details/MemberSelector.vue | 7 +++-- .../tenant/group-details/OperationDetails.vue | 9 ++++--- .../tenant/group-details/ViewDetails.vue | 2 +- 14 files changed, 100 insertions(+), 70 deletions(-) diff --git a/src/pages/src/components/Empty.vue b/src/pages/src/components/Empty.vue index 46612cf87..b1ddc4c98 100644 --- a/src/pages/src/components/Empty.vue +++ b/src/pages/src/components/Empty.vue @@ -24,6 +24,8 @@ diff --git a/src/pages/src/views/tenant/group-details/MemberSelector.vue b/src/pages/src/views/tenant/group-details/MemberSelector.vue index f54ca0821..246591bc4 100644 --- a/src/pages/src/views/tenant/group-details/MemberSelector.vue +++ b/src/pages/src/views/tenant/group-details/MemberSelector.vue @@ -9,6 +9,7 @@ multiple multiple-mode="tag" :remote-method="remoteFilter" + enable-scroll-load :scroll-loading="scrollLoading" @blur="handleCancel" @change="handleChange" @@ -33,7 +34,7 @@