From 15fc7e84ae82676fb8eeee01a20a8919479c23cc Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Mon, 29 Jan 2024 15:08:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86&?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=94=A8=E4=BE=8Bbug=E5=92=8C=E8=A1=A5=E5=85=85=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=92=8C=E7=B3=BB=E7=BB=9F=E5=8C=85=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.vue | 8 +- .../modules/case-management/featureCase.ts | 13 ++ frontend/src/api/modules/system.ts | 7 +- .../requrls/case-management/featureCase.ts | 4 + frontend/src/api/requrls/system.ts | 1 + .../components/business/ms-top-menu/index.vue | 2 +- .../components/pure/ms-table/base-table.vue | 5 +- frontend/src/enums/tableEnum.ts | 1 + .../src/models/caseManagement/featureCase.ts | 13 ++ frontend/src/store/modules/app/index.ts | 13 +- frontend/src/store/modules/app/types.ts | 1 + frontend/src/store/modules/user/index.ts | 6 + .../components/caseDetail.vue | 32 +++-- .../components/caseDetailDrawer.vue | 4 +- .../components/caseTable.vue | 59 ++++++--- .../components/recycleCaseTable.vue | 124 ++++++++---------- .../components/tabContent/settingDrawer.vue | 32 +++-- .../tabContent/tabBug/tabDefect.vue | 6 +- .../components/tabContent/tabCaseReview.vue | 2 +- .../tabContent/tabChangeHistory.vue | 33 +++-- .../tabDemand/associatedDemandTable.vue | 6 +- .../tabContent/tabDemand/demand.vue | 38 ++++-- .../tabDependency/preAndPostCaseDrawer.vue | 2 +- .../caseManagementFeature/components/utils.ts | 46 ++++--- .../case-management/caseReview/caseDetail.vue | 2 +- .../src/views/login/components/login-form.vue | 11 +- .../organization/serviceIntegration/index.vue | 6 +- .../config/components/memoryCleanup.vue | 4 +- .../pluginManager/components/pluginTable.vue | 11 +- .../src/views/setting/system/user/index.vue | 3 + 30 files changed, 314 insertions(+), 181 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 12f9de1ee0..b449c9cc7c 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -52,8 +52,12 @@ onBeforeMount(async () => { try { - appStore.initSystemVersion(); // 初始化系统版本 - licenseStore.getValidateLicense(); // 初始化校验license + await appStore.initSystemPackage(); // 初始化系统包版本 + await appStore.initSystemVersion(); // 初始化系统版本 + // 企业版才校验license + if (appStore.packageType === 'enterprise') { + licenseStore.getValidateLicense(); + } if (licenseStore.hasLicense()) { appStore.initPageConfig(); // 初始化页面配置 } diff --git a/frontend/src/api/modules/case-management/featureCase.ts b/frontend/src/api/modules/case-management/featureCase.ts index a2bddeac94..995a4d1a93 100644 --- a/frontend/src/api/modules/case-management/featureCase.ts +++ b/frontend/src/api/modules/case-management/featureCase.ts @@ -41,6 +41,7 @@ import { GetCaseListUrl, GetCaseModulesCountUrl, GetCaseModuleTreeUrl, + getChangeHistoryListUrl, GetCommentListUrl, GetDebugDrawerPageUrl, GetDefaultTemplateFieldsUrl, @@ -54,6 +55,7 @@ import { GetReviewCommentListUrl, GetReviewerListUrl, GetSearchCustomFieldsUrl, + GetThirdDemandUrl, getTransferTreeUrl, GetTrashCaseModuleTreeUrl, importExcelCaseUrl, @@ -79,6 +81,7 @@ import type { BatchMoveOrCopyType, CaseManagementTable, CaseModuleQueryParams, + ChangeHistoryItem, CreateOrUpdateDemand, CreateOrUpdateModule, DeleteCaseType, @@ -230,6 +233,11 @@ export function cancelAssociationDemand(id: string) { return MSR.get({ url: `${CancelAssociationDemandUrl}/${id}` }); } +// 获取三方关联需求列表 +export function getThirdDemandList(data: TableQueryParams) { + return MSR.post({ url: GetThirdDemandUrl, data }); +} + // 附件 // 上传文件并关联用例 @@ -408,4 +416,9 @@ export function dragSort(data: DragCase) { return MSR.post({ url: dragSortUrl, data }); } +// 获取已关联缺陷列表 +export function getChangeHistoryList(data: TableQueryParams) { + return MSR.post>({ url: getChangeHistoryListUrl, data }); +} + export default {}; diff --git a/frontend/src/api/modules/system.ts b/frontend/src/api/modules/system.ts index 4757745096..0fd5fd06a5 100644 --- a/frontend/src/api/modules/system.ts +++ b/frontend/src/api/modules/system.ts @@ -1,6 +1,6 @@ // 系统全局类的接口 import MSR from '@/api/http/index'; -import { GetVersionUrl, OrgOptionsUrl, SwitchOrgUrl } from '@/api/requrls/system'; +import { GetVersionUrl, OrgOptionsUrl, PackageTypeUrl, SwitchOrgUrl } from '@/api/requrls/system'; // 获取系统版本 export function getSystemVersion() { @@ -16,3 +16,8 @@ export function getOrgOptions() { export function switchUserOrg(organizationId: string, userId: string) { return MSR.post({ url: SwitchOrgUrl, data: { organizationId, userId } }, { ignoreCancelToken: true }); } + +// 获取当前系统的版本 +export function getPackageType() { + return MSR.get<'community' | 'enterprise'>({ url: PackageTypeUrl }, { ignoreCancelToken: true }); +} diff --git a/frontend/src/api/requrls/case-management/featureCase.ts b/frontend/src/api/requrls/case-management/featureCase.ts index 4265b75e79..29981a8ea4 100644 --- a/frontend/src/api/requrls/case-management/featureCase.ts +++ b/frontend/src/api/requrls/case-management/featureCase.ts @@ -71,6 +71,8 @@ export const UpdateDemandUrl = '/functional/case/demand/update'; export const BatchAssociationDemandUrl = '/functional/case/demand/batch/relevance'; // 取消关联 export const CancelAssociationDemandUrl = '/functional/case/demand/cancel'; +// 获取三方关联需求的接口 +export const GetThirdDemandUrl = '/functional/case/demand/third/list/page'; // 附件管理 // 上传文件并关联用例 @@ -145,3 +147,5 @@ export const exportExcelCheckUrl = '/functional/case/pre-check/excel'; export const importExcelCaseUrl = '/functional/case/import/excel'; // 用例拖拽排序 export const dragSortUrl = '/functional/case/edit/pos'; +// 获取变更历史 +export const getChangeHistoryListUrl = '/functional/case/operation-history'; diff --git a/frontend/src/api/requrls/system.ts b/frontend/src/api/requrls/system.ts index 540d4bd21b..5073cd6aea 100644 --- a/frontend/src/api/requrls/system.ts +++ b/frontend/src/api/requrls/system.ts @@ -3,3 +3,4 @@ export const GetVersionUrl = '/system/version/current'; export const OrgOptionsUrl = '/system/organization/switch-option'; export const SwitchOrgUrl = '/system/organization/switch'; +export const PackageTypeUrl = '/system/version/package-type'; diff --git a/frontend/src/components/business/ms-top-menu/index.vue b/frontend/src/components/business/ms-top-menu/index.vue index e43623acf7..e79a7994ea 100644 --- a/frontend/src/components/business/ms-top-menu/index.vue +++ b/frontend/src/components/business/ms-top-menu/index.vue @@ -89,7 +89,7 @@ ?.filter((item: any) => permission.accessRouter(item) && item.meta?.isTopMenu) .filter((item: any) => { if (item.name === RouteEnum.SETTING_SYSTEM_AUTHORIZED_MANAGEMENT) { - return licenseStore.hasLicense(); + return appStore.packageType === 'enterprise'; } return true; }); diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index ae56df511e..d0b77add50 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -12,6 +12,7 @@ :span-all="props.spanAll" @expand="(rowKey, record) => emit('expand', record)" @sorter-change="(dataIndex: string,direction: string) => handleSortChange(dataIndex, direction)" + @cell-click="(record: TableData,column: TableColumnData,ev: Event) => emit('cell-click',record, column,ev)" >