From bcd1530cbc0326c5f1996bd7256abb95a2d83e94 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Thu, 1 Feb 2024 23:00:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=92=E4=BB=B6bug&=E6=A8=A1=E6=9D=BFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/modules/bug-management/index.ts | 2 +- .../modules/case-management/featureCase.ts | 2 +- frontend/src/api/modules/setting/template.ts | 12 ++--- .../requrls/case-management/featureCase.ts | 2 +- .../project-management/messageManagement.ts | 2 +- frontend/src/api/requrls/setting/template.ts | 26 +++++----- .../business/ms-assertion/comp/ScriptTab.vue | 1 + .../business/ms-batch-modal/index.vue | 1 + .../business/ms-breadcrumb/index.vue | 1 + .../ms-common-script/ms-addScriptDrawer.vue | 1 + .../ms-common-script/ms-script-menu.vue | 2 +- .../business/ms-common-script/utils.ts | 4 +- .../src/components/business/ms-menu/index.vue | 33 +++++++++---- .../business/ms-user-group-comp/userTable.vue | 27 +++++++---- .../components/pure/ms-code-editor/index.vue | 7 +-- .../pure/ms-export-drawer/index.vue | 2 +- .../src/components/pure/ms-upload/index.vue | 18 ++++++- .../components/pure/ms-upload/locale/en-US.ts | 1 + .../components/pure/ms-upload/locale/zh-CN.ts | 1 + frontend/src/components/pure/navbar/index.vue | 2 +- frontend/src/config/pathMap.ts | 2 +- frontend/src/enums/templateEnum.ts | 6 +-- frontend/src/locale/zh-CN/index.ts | 6 +-- .../src/models/projectManagement/message.ts | 30 ++++++------ frontend/src/models/setting/template.ts | 6 +-- .../routes/modules/projectManagement.ts | 7 ++- frontend/src/router/routes/modules/setting.ts | 15 +++--- frontend/src/utils/index.ts | 13 +++++ .../debug/components/debug/response.vue | 2 +- .../bug-management/components/bugCaseTab.vue | 26 ++++++---- .../components/caseTemplateDetail.vue | 2 +- .../caseManagementFeature/index.vue | 2 +- .../caseManagementFeature/locale/zh-CN.ts | 8 ++-- .../case-management/caseReview/caseDetail.vue | 2 +- .../src/views/login/components/login-form.vue | 8 ++-- .../project-management/commonScript/utils.ts | 4 +- .../fileManagement/components/rightBox.vue | 4 +- .../components/messageList.vue | 16 +++---- .../components/robotList.vue | 9 +--- .../messageManagement/locale/zh-CN.ts | 10 ++-- .../projectAndPermission/locale/zh-CN.ts | 2 +- .../projectAndPermission/member/index.vue | 47 +++++++++++-------- .../userGroup/userDrawer.vue | 27 +++++++---- .../template/components/proTemplateDetail.vue | 5 +- .../components/projectFieldSetting.vue | 2 +- .../components/templateManagement.vue | 6 +-- .../components/workFlowTableIndex.vue | 2 +- .../project-management/template/index.vue | 2 +- .../setting/organization/member/index.vue | 29 ++++++++---- .../organization/member/locale/zh-CN.ts | 2 +- .../project/components/userDrawer.vue | 26 ++++++---- .../serviceIntegration/locale/zh-CN.ts | 6 +-- .../components/addFieldToTemplateDrawer.vue | 2 +- .../template/components/editFieldDrawer.vue | 1 + .../template/components/fieldSetting.ts | 36 +++++++------- .../template/components/fieldSetting.vue | 4 +- .../template/components/ordFieldSetting.vue | 2 +- .../template/components/templateDetail.vue | 2 +- .../template/components/templateItem.vue | 2 +- .../components/templateManagement.vue | 5 +- .../components/templateManagementTable.vue | 2 +- .../setting/organization/template/index.vue | 4 +- .../organization/template/locale/zh-CN.ts | 34 +++++++------- .../config/components/memoryCleanup.vue | 14 ++++-- .../src/views/setting/system/config/index.vue | 8 +++- .../pluginManager/components/pluginTable.vue | 6 ++- .../components/scriptDetailDrawer.vue | 25 ++++++---- .../components/updatePluginModal.vue | 22 +++++++-- .../pluginManager/components/uploadModel.vue | 22 +++++++-- .../components/uploadSuccessModal.vue | 8 +++- .../system/pluginManager/locale/en-US.ts | 2 +- .../system/pluginManager/locale/zh-CN.ts | 8 ++-- .../system/resourcePool/locale/zh-CN.ts | 8 ++-- .../src/views/setting/system/user/index.vue | 12 ++++- 74 files changed, 438 insertions(+), 272 deletions(-) diff --git a/frontend/src/api/modules/bug-management/index.ts b/frontend/src/api/modules/bug-management/index.ts index 698569f56c..c73af3e6f6 100644 --- a/frontend/src/api/modules/bug-management/index.ts +++ b/frontend/src/api/modules/bug-management/index.ts @@ -65,7 +65,7 @@ export function getTemplateById(data: TableQueryParams) { export function getExportConfig(projectId: string) { return MSR.get({ url: `${bugURL.getExportConfigUrl}${projectId}` }); } -// 获取模版详情 +// 获取模板详情 export function getTemplateDetailInfo(data: { id: string; projectId: string }) { return MSR.post({ url: `${bugURL.getTemplateDetailUrl}`, data }); } diff --git a/frontend/src/api/modules/case-management/featureCase.ts b/frontend/src/api/modules/case-management/featureCase.ts index 995a4d1a93..acf3d67c6b 100644 --- a/frontend/src/api/modules/case-management/featureCase.ts +++ b/frontend/src/api/modules/case-management/featureCase.ts @@ -134,7 +134,7 @@ export function getCaseList(data: TableQueryParams) { export function deleteCaseRequest(data: DeleteCaseType) { return MSR.post({ url: `${DeleteCaseUrl}`, data }); } -// 获取默认模版自定义字段 +// 获取默认模板自定义字段 export function getCaseDefaultFields(projectId: string) { return MSR.get({ url: `${GetDefaultTemplateFieldsUrl}/${projectId}` }); } diff --git a/frontend/src/api/modules/setting/template.ts b/frontend/src/api/modules/setting/template.ts index 762cfef782..673c827305 100644 --- a/frontend/src/api/modules/setting/template.ts +++ b/frontend/src/api/modules/setting/template.ts @@ -52,13 +52,13 @@ import type { } from '@/models/setting/template'; /** * - * 模版(组织) + * 模板(组织) */ -// 获取模版列表(组织) +// 获取模板列表(组织) export function getOrganizeTemplateList(params: TableQueryParams) { return MSR.get({ url: `${GetOrganizeTemplateUrl}/${params.organizationId}/${params.scene}` }); } -// 获取模版详情(组织) +// 获取模板详情(组织) export function getOrganizeTemplateInfo(id: string) { return MSR.get({ url: `${GetOrganizeTemplateDetailUrl}/${id}` }); } @@ -176,13 +176,13 @@ export function getProjectFieldDetail(id: string) { } /** * - * 模版(项目) + * 模板(项目) */ -// 获取模版列表(项目) +// 获取模板列表(项目) export function getProjectTemplateList(params: TableQueryParams) { return MSR.get({ url: `${GetProjectTemplateUrl}/${params.projectId}/${params.scene}` }); } -// 获取模版详情(项目) +// 获取模板详情(项目) export function getProjectTemplateInfo(id: string) { return MSR.get({ url: `${GetProjectTemplateDetailUrl}/${id}` }); } diff --git a/frontend/src/api/requrls/case-management/featureCase.ts b/frontend/src/api/requrls/case-management/featureCase.ts index 29981a8ea4..cbcbf7de1f 100644 --- a/frontend/src/api/requrls/case-management/featureCase.ts +++ b/frontend/src/api/requrls/case-management/featureCase.ts @@ -39,7 +39,7 @@ export const MoveCaseModuleTreeUrl = '/functional/case/module/move'; export const GetTrashCaseModuleTreeUrl = '/functional/case/module/trash/tree'; // 删除模块 export const DeleteCaseModuleTreeUrl = '/functional/case/module/delete'; -// 获取默认模版自定义字段 +// 获取默认模板自定义字段 export const GetDefaultTemplateFieldsUrl = '/functional/case/default/template/field'; // 回收站 diff --git a/frontend/src/api/requrls/project-management/messageManagement.ts b/frontend/src/api/requrls/project-management/messageManagement.ts index 0be004fa0d..e8b08f6e8a 100644 --- a/frontend/src/api/requrls/project-management/messageManagement.ts +++ b/frontend/src/api/requrls/project-management/messageManagement.ts @@ -7,5 +7,5 @@ export const DeleteRobotUrl = '/project/robot/delete'; // 删除机器人 export const SaveMessageUrl = '/notice/message/task/save'; // 保存消息配置 export const GetMessageUrl = '/notice/message/task/get'; // 获取消息配置列表 export const GetMessageUserListUrl = '/notice/message/task/get/user'; // 获取消息配置-用户列表 -export const GetMessageFieldsUrl = '/notice/template/get/fields'; // 获取消息配置-模版字段 +export const GetMessageFieldsUrl = '/notice/template/get/fields'; // 获取消息配置-模板字段 export const GetMessageDetailUrl = '/notice/message/template/detail'; // 获取消息配置详情 diff --git a/frontend/src/api/requrls/setting/template.ts b/frontend/src/api/requrls/setting/template.ts index 58741a4b5f..c77c225a22 100644 --- a/frontend/src/api/requrls/setting/template.ts +++ b/frontend/src/api/requrls/setting/template.ts @@ -1,35 +1,35 @@ // 项目---模板 -// 获取模版列表 +// 获取模板列表 export const GetProjectTemplateUrl = '/project/template/list'; -// 设置模版 +// 设置模板 export const SetProjectTemplateUrl = '/project/template/set-default'; -// 创建模版 +// 创建模板 export const CreateProjectTemplateUrl = '/project/template/add'; -// 更新模版 +// 更新模板 export const UpdateProjectTemplateUrl = '/project/template/update'; -// 获取模版详情 +// 获取模板详情 export const GetProjectTemplateDetailUrl = '/project/template/get'; -// 删除模版 +// 删除模板 export const DeleteProjectTemplateUrl = '/project/template/delete'; // 是否启用项目模板 export const getProjectTemplateStateUrl = '/project/template/enable/config'; // 组织--- 模板 -// 获取模版列表 +// 获取模板列表 export const GetOrganizeTemplateUrl = '/organization/template/list'; -// 设置模版 +// 设置模板 export const SetOrganizeTemplateUrl = '/organization/template/set-default'; -// 创建模版 +// 创建模板 export const CreateOrganizeTemplateUrl = '/organization/template/add'; -// 更新模版 +// 更新模板 export const UpdateOrganizeTemplateUrl = '/organization/template/update'; -// 获取模版详情 +// 获取模板详情 export const GetOrganizeTemplateDetailUrl = '/organization/template/get'; -// 删除模版 +// 删除模板 export const DeleteOrganizeTemplateUrl = '/organization/template/delete'; -// 关闭组织模板,开启项目模版 +// 关闭组织模板,开启项目模板 export const EnableOrOffTemplateUrl = '/organization/template/disable'; // 获取所有模板状态 export const getOrdTemplateStateUrl = '/organization/template/enable/config'; diff --git a/frontend/src/components/business/ms-assertion/comp/ScriptTab.vue b/frontend/src/components/business/ms-assertion/comp/ScriptTab.vue index fed240514f..a3c8927675 100644 --- a/frontend/src/components/business/ms-assertion/comp/ScriptTab.vue +++ b/frontend/src/components/business/ms-assertion/comp/ScriptTab.vue @@ -128,6 +128,7 @@