From 55c96df6161722b3194abf5211b0ab0e822e02e9 Mon Sep 17 00:00:00 2001
From: dayou <853094838@qq.com>
Date: Mon, 2 Dec 2024 18:28:33 +0800
Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=88=86?=
=?UTF-8?q?=E7=BB=84=E6=80=BB=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/survey/controllers/surveyGroup.controller.ts | 2 ++
server/src/modules/survey/services/surveyMeta.service.ts | 5 +++--
web/src/management/pages/list/components/ModifyDialog.vue | 2 +-
web/src/management/utils/workSpace.ts | 2 +-
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/server/src/modules/survey/controllers/surveyGroup.controller.ts b/server/src/modules/survey/controllers/surveyGroup.controller.ts
index 4852f82e..bb150c6d 100644
--- a/server/src/modules/survey/controllers/surveyGroup.controller.ts
+++ b/server/src/modules/survey/controllers/surveyGroup.controller.ts
@@ -85,6 +85,7 @@ export class SurveyGroupController {
const surveyTotalList = await Promise.all(
groupIdList.map((item) => {
return this.surveyMetaService.countSurveyMetaByGroupId({
+ userId,
groupId: item,
});
}),
@@ -95,6 +96,7 @@ export class SurveyGroupController {
return pre;
}, {});
const notTotal = await this.surveyMetaService.countSurveyMetaByGroupId({
+ userId,
groupId: null,
});
return {
diff --git a/server/src/modules/survey/services/surveyMeta.service.ts b/server/src/modules/survey/services/surveyMeta.service.ts
index dbbb4d4b..c18f4cdb 100644
--- a/server/src/modules/survey/services/surveyMeta.service.ts
+++ b/server/src/modules/survey/services/surveyMeta.service.ts
@@ -173,7 +173,7 @@ export class SurveyMetaService {
}
if (groupId && groupId !== 'all') {
query.groupId =
- groupId === 'nogrouped'
+ groupId === 'unclassified'
? {
$exists: true,
$eq: null,
@@ -248,8 +248,9 @@ export class SurveyMetaService {
});
return total;
}
- async countSurveyMetaByGroupId({ groupId }) {
+ async countSurveyMetaByGroupId({ groupId, userId = undefined }) {
const total = await this.surveyRepository.count({
+ ownerId: userId,
groupId,
$or: [
{ workspaceId: { $exists: false } },
diff --git a/web/src/management/pages/list/components/ModifyDialog.vue b/web/src/management/pages/list/components/ModifyDialog.vue
index 6940cd80..d5305001 100644
--- a/web/src/management/pages/list/components/ModifyDialog.vue
+++ b/web/src/management/pages/list/components/ModifyDialog.vue
@@ -21,7 +21,7 @@
-
+
Date: Mon, 2 Dec 2024 18:48:28 +0800
Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BC=A0all?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/src/management/stores/surveyList.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/src/management/stores/surveyList.ts b/web/src/management/stores/surveyList.ts
index fcd885ef..f6128953 100644
--- a/web/src/management/stores/surveyList.ts
+++ b/web/src/management/stores/surveyList.ts
@@ -151,7 +151,7 @@ export const useSurveyListStore = defineStore('surveyList', () => {
filter: filterString,
order: orderString,
workspaceId: workSpaceStore.workSpaceId,
- groupId: workSpaceStore.groupId === GroupState.All ? '' : workSpaceStore.groupId
+ groupId: workSpaceStore.groupId
}
const res: any = await getSurveyListReq(params)
From ca9a60bb55248469a93c85bb9bb72550580422f2 Mon Sep 17 00:00:00 2001
From: dayou <853094838@qq.com>
Date: Mon, 2 Dec 2024 21:16:52 +0800
Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=97=AE=E5=8D=B7?=
=?UTF-8?q?=E5=88=86=E7=BB=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/src/management/pages/list/components/SliderBar.vue | 6 +++---
web/src/management/pages/list/index.vue | 2 --
web/src/management/styles/common.scss | 3 +++
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/web/src/management/pages/list/components/SliderBar.vue b/web/src/management/pages/list/components/SliderBar.vue
index ed1d13f5..46138259 100644
--- a/web/src/management/pages/list/components/SliderBar.vue
+++ b/web/src/management/pages/list/components/SliderBar.vue
@@ -55,9 +55,9 @@ const props = withDefaults(
const active = computed({
get: () => {
- return props.activeValue
-},
-set: () => {}
+ return props.activeValue
+ },
+ set: () => {}
})
const emit = defineEmits(['select'])
diff --git a/web/src/management/pages/list/index.vue b/web/src/management/pages/list/index.vue
index 6ed71124..7185e9a9 100644
--- a/web/src/management/pages/list/index.vue
+++ b/web/src/management/pages/list/index.vue
@@ -199,9 +199,7 @@ const fetchSurveyList = async (params?: any) => {
}
onMounted(() => {
- fetchGroupList()
fetchSpaceList()
- fetchSurveyList()
})
const modifyType = ref('add')
diff --git a/web/src/management/styles/common.scss b/web/src/management/styles/common.scss
index ca8e0e70..db021fe4 100644
--- a/web/src/management/styles/common.scss
+++ b/web/src/management/styles/common.scss
@@ -6,3 +6,6 @@
}
}
}
+.el-message-box__status{
+ font-size: 24px;
+}
\ No newline at end of file