From 1fe2084d7e704b3c7807d5dba1356c0316d6d6a6 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Thu, 21 Nov 2024 10:08:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=9F=B1=E7=8A=B6=E5=9B=BE?= =?UTF-8?q?y=E5=9D=90=E6=A0=87bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/workbench/homePage/components/overview.vue | 2 +- .../views/workbench/homePage/components/overviewMember.vue | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/workbench/homePage/components/overview.vue b/frontend/src/views/workbench/homePage/components/overview.vue index 71cabf594d..1096b0ab77 100644 --- a/frontend/src/views/workbench/homePage/components/overview.vue +++ b/frontend/src/views/workbench/homePage/components/overview.vue @@ -188,7 +188,7 @@ })(countData), }; }); - options.value.yAxis[0].max = maxAxis < 100 ? 50 : maxAxis + 50; + options.value.yAxis[0].max = maxAxis < 100 ? 100 : maxAxis + 50; } async function initOverViewDetail() { diff --git a/frontend/src/views/workbench/homePage/components/overviewMember.vue b/frontend/src/views/workbench/homePage/components/overviewMember.vue index d33ffed5bb..4a426d4d44 100644 --- a/frontend/src/views/workbench/homePage/components/overviewMember.vue +++ b/frontend/src/views/workbench/homePage/components/overviewMember.vue @@ -29,7 +29,7 @@ :prefix="t('workbench.homePage.staff')" :multiple="true" :has-all-select="true" - :default-all-select="innerSelectAll" + :default-all-select="innerHandleUsers.length === 0" @change="changeMember" > @@ -146,7 +146,7 @@ })(countData), }; }); - options.value.yAxis[0].max = maxAxis < 100 ? 50 : maxAxis + 50; + options.value.yAxis[0].max = maxAxis < 100 ? 100 : maxAxis + 50; } async function initOverViewMemberDetail() { @@ -171,7 +171,6 @@ } } - const innerSelectAll = ref(false); async function getMemberOptions() { const [newProjectId] = innerProjectIds.value; const res = await workProjectMemberOptions(newProjectId); @@ -179,7 +178,6 @@ label: e.name, value: e.id, })); - innerSelectAll.value = memberIds.value.length === memberOptions.value.length; } function changeProject() {