From 0ad5eb7e646511c314626b6f3dd44a2490410f6d Mon Sep 17 00:00:00 2001 From: baiqi Date: Mon, 27 May 2024 17:49:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=85=A8=E5=B1=80):=20=20=20=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=AE=A1=E7=90=86/=E6=B5=8B=E8=AF=95=E8=AE=A1?= =?UTF-8?q?=E5=88=92/=E8=84=91=E5=9B=BE=E9=83=A8=E5=88=86=20bug=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/modules/message/index.ts | 3 +-- .../ms-minders/featureCaseMinder/basInfo.vue | 11 +++++++-- .../ms-minders/featureCaseMinder/index.vue | 14 +++++++++-- .../ms-personal-drawer/components/setPsw.vue | 2 ++ .../pure/ms-minder-editor/main/mainEditor.vue | 24 +++++++++++++++---- .../ms-minder-editor/menu/edit/editDel.vue | 21 +++++++++++++--- .../components/pure/ms-minder-editor/props.ts | 5 ++-- .../ms-minder-editor/script/runtime/hotbox.ts | 14 +++++------ .../pure/ms-time-selector/MsTimeSelector.vue | 2 +- frontend/src/enums/minderEnum.ts | 7 ++++++ .../modules/components/minder-editor/index.ts | 19 +++++++++++---- .../modules/components/minder-editor/types.ts | 10 +++++--- frontend/src/store/modules/user/index.ts | 8 ++++--- .../src/views/login/components/login-form.vue | 2 +- frontend/src/views/login/locale/en-US.ts | 2 +- frontend/src/views/login/locale/zh-CN.ts | 2 +- .../testPlan/createAndEditPlanDrawer.vue | 20 +++++++++++----- 17 files changed, 122 insertions(+), 44 deletions(-) create mode 100644 frontend/src/enums/minderEnum.ts diff --git a/frontend/src/api/modules/message/index.ts b/frontend/src/api/modules/message/index.ts index 56dd7d6d73..b606307398 100644 --- a/frontend/src/api/modules/message/index.ts +++ b/frontend/src/api/modules/message/index.ts @@ -1,5 +1,4 @@ import MSR from '@/api/http/index'; -import * as bugURL from '@/api/requrls/bug-management'; import { CommonList, TableQueryParams } from '@/models/common'; @@ -91,5 +90,5 @@ export function getMessageReadAll(resourceType?: string) { } export function getMessageUnReadCount(projectId: string) { - return MSR.get({ url: '/notification/un-read', params: projectId }); + return MSR.get({ url: '/notification/un-read', params: projectId }, { ignoreCancelToken: true }); } diff --git a/frontend/src/components/business/ms-minders/featureCaseMinder/basInfo.vue b/frontend/src/components/business/ms-minders/featureCaseMinder/basInfo.vue index 7309d4acd2..55edf3fc23 100644 --- a/frontend/src/components/business/ms-minders/featureCaseMinder/basInfo.vue +++ b/frontend/src/components/business/ms-minders/featureCaseMinder/basInfo.vue @@ -36,7 +36,7 @@ > {{ t('common.save') }} - {{ t('common.cancel') }} + {{ t('common.cancel') }} @@ -47,6 +47,7 @@ import MsFormCreate from '@/components/pure/ms-form-create/ms-form-create.vue'; import { FormItem, FormRuleItem } from '@/components/pure/ms-form-create/types'; import { MinderJsonNode } from '@/components/pure/ms-minder-editor/props'; + import MsTagsInput from '@/components/pure/ms-tags-input/index.vue'; import { getCaseDefaultFields, updateCaseRequest } from '@/api/modules/case-management/featureCase'; import { useI18n } from '@/hooks/useI18n'; @@ -61,6 +62,9 @@ activeCase: Record; loading: boolean; }>(); + const emit = defineEmits<{ + (e: 'cancel'): void; + }>(); const appStore = useAppStore(); const userStore = useUserStore(); @@ -149,7 +153,7 @@ fileList: [], }); const selectedNode: MinderJsonNode = window.minder.getSelectedNode(); - if (selectedNode.data) { + if (selectedNode?.data) { selectedNode.data.text = baseInfoForm.value.name; } Message.success(t('common.saveSuccess')); @@ -164,6 +168,9 @@ } }); } + function handleCancel() { + emit('cancel'); + } watch( () => props.activeCase.id, diff --git a/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue b/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue index 86209ff53b..a9f5123ea8 100644 --- a/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue +++ b/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue @@ -17,7 +17,12 @@ @save="handleMinderSave" >