From e15e0611f783f2e58a500dff00b155c47368035f Mon Sep 17 00:00:00 2001 From: RubyLiu Date: Tue, 30 Jan 2024 18:58:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=A8=E6=88=B7=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E4=BB=BB=E4=BD=95=E6=9D=83=E9=99=90=E8=BF=9B=E5=85=A5=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=BB=98=E8=AE=A4=E5=B1=95=E7=A4=BA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project-management/menuManagement.ts | 14 +++ .../project-management/menuManagement.ts | 6 ++ .../pure/ms-form-create/comp/jiraKey.vue | 15 +++ frontend/src/components/pure/navbar/index.vue | 3 +- frontend/src/layout/default-layout.vue | 12 ++- frontend/src/layout/no-permission-layout.vue | 92 +++++++++++++++++++ frontend/src/layout/single-logo-layout.vue | 17 ---- frontend/src/router/routes/base.ts | 3 +- frontend/src/utils/permission.ts | 2 +- .../menuManagement/components/defectSync.vue | 4 + .../menuManagement/menuManagement.vue | 2 +- .../organization/member/locale/zh-CN.ts | 2 +- .../project/components/userDrawer.vue | 1 + .../organization/project/orgProject.vue | 6 +- .../components/userDrawer.vue | 5 +- .../organizationAndProject/locale/en-US.ts | 1 + .../organizationAndProject/locale/zh-CN.ts | 1 + 17 files changed, 159 insertions(+), 27 deletions(-) create mode 100644 frontend/src/layout/no-permission-layout.vue diff --git a/frontend/src/api/modules/project-management/menuManagement.ts b/frontend/src/api/modules/project-management/menuManagement.ts index 5333c3de31..621819eb9b 100644 --- a/frontend/src/api/modules/project-management/menuManagement.ts +++ b/frontend/src/api/modules/project-management/menuManagement.ts @@ -164,3 +164,17 @@ export function postUpdateEnableFake(data: FakeTableOperationParams) { export function getDeleteFake(data: FakeTableOperationParams) { return MSR.post({ url: Url.getFakeTableDeleteUrl, data }); } + +// JIRA插件key校验 +export function validateJIRAKey(data: object, pluginId: string) { + return MSR.post({ url: `${Url.postValidateJiraKeyUrl}${pluginId}`, data }); +} +// 缺陷管理-获取同步信息 +export function getBugSyncInfo(projectId: string) { + return MSR.get({ url: `${Url.getBugSyncInfoUrl}${projectId}` }); +} + +// 用例管理-获取关联需求信息 +export function getCaseRelatedInfo(projectId: string) { + return MSR.get({ url: `${Url.getCaseRelatedInfoUrl}${projectId}` }); +} diff --git a/frontend/src/api/requrls/project-management/menuManagement.ts b/frontend/src/api/requrls/project-management/menuManagement.ts index 392b928424..37e61057f3 100644 --- a/frontend/src/api/requrls/project-management/menuManagement.ts +++ b/frontend/src/api/requrls/project-management/menuManagement.ts @@ -25,3 +25,9 @@ export const postFakeTableAddUrl = '/fake/error/add'; export const postFakeTableUpdateUrl = '/fake/error/update'; // 误报规则列表启用或禁用 export const postFakeTableEnableUrl = '/fake/error/update/enable'; +// JIRAKEY 校验 +export const postValidateJiraKeyUrl = '/project/application/validate/'; +// 缺陷管理-获取同步信息 +export const getBugSyncInfoUrl = '/project/application/bug/sync/info/'; +// 用例管理-获取关联需求信息 +export const getCaseRelatedInfoUrl = '/project/application/case/related/info/'; diff --git a/frontend/src/components/pure/ms-form-create/comp/jiraKey.vue b/frontend/src/components/pure/ms-form-create/comp/jiraKey.vue index 0e5573c752..a6e90c435c 100644 --- a/frontend/src/components/pure/ms-form-create/comp/jiraKey.vue +++ b/frontend/src/components/pure/ms-form-create/comp/jiraKey.vue @@ -4,6 +4,7 @@ :placeholder="t('project.menu.pleaseInputJiraKey')" v-bind="attrs" @change="(v: string) => emit('update:modelValue', v)" + @blur="handleBlur" />
{{ t('project.menu.howGetJiraKey') }} @@ -20,6 +21,9 @@ diff --git a/frontend/src/components/pure/navbar/index.vue b/frontend/src/components/pure/navbar/index.vue index 9bbfc750de..6a373ec960 100644 --- a/frontend/src/components/pure/navbar/index.vue +++ b/frontend/src/components/pure/navbar/index.vue @@ -34,7 +34,7 @@
-
    +
    • @@ -142,6 +142,7 @@ isPreview?: boolean; logo?: string; name?: string; + hideRight?: boolean; }>(); const appStore = useAppStore(); diff --git a/frontend/src/layout/default-layout.vue b/frontend/src/layout/default-layout.vue index 6e9af107ac..a7781d71a7 100644 --- a/frontend/src/layout/default-layout.vue +++ b/frontend/src/layout/default-layout.vue @@ -1,7 +1,12 @@