From ee591fc936bdda8462563ae4dbb02becf509ef6e Mon Sep 17 00:00:00 2001 From: RubyLiu Date: Tue, 27 Feb 2024 18:42:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AF=84=E8=AE=BA=E5=B1=95?= =?UTF-8?q?=E5=BC=80=E6=94=B6=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project-management/envManagement.ts | 4 +- .../project-management/envManagement.ts | 2 +- frontend/src/assets/style/global.less | 7 + .../business/ms-comment/comment-item.vue | 18 ++- .../business/ms-comment/comment.tsx | 92 ++++++------ .../components/business/ms-select/index.tsx | 14 +- .../src/components/pure/ms-drawer/index.vue | 6 +- .../views/api-test/components/paramTable.vue | 137 ++++++++++++++++-- .../bug-management/components/commentTab.vue | 14 +- .../environmental/components/EnvGroupBox.vue | 33 +---- .../envParams/popUp/AddHttpDrawer.vue | 6 +- .../environmental/index.vue | 2 +- .../environmental/locale/en-US.ts | 1 + .../environmental/locale/zh-CN.ts | 1 + 14 files changed, 230 insertions(+), 107 deletions(-) diff --git a/frontend/src/api/modules/project-management/envManagement.ts b/frontend/src/api/modules/project-management/envManagement.ts index 54f0ae09ec..5c0285507d 100644 --- a/frontend/src/api/modules/project-management/envManagement.ts +++ b/frontend/src/api/modules/project-management/envManagement.ts @@ -79,8 +79,8 @@ export function groupDeleteEnv(data: EnvListItem) { return MSR.post({ url: envURL.groupDeleteEnvUrl, data }); } // 获取项目组的项目 -export function groupProjectEnv() { - return MSR.get({ url: envURL.groupProjectEnvUrl }); +export function groupProjectEnv(organizationId: string) { + return MSR.get({ url: envURL.groupProjectEnvUrl + organizationId }); } /** 项目管理-环境-全局参数-更新or新增 */ diff --git a/frontend/src/api/requrls/project-management/envManagement.ts b/frontend/src/api/requrls/project-management/envManagement.ts index f61dcce57e..10d12c6119 100644 --- a/frontend/src/api/requrls/project-management/envManagement.ts +++ b/frontend/src/api/requrls/project-management/envManagement.ts @@ -17,7 +17,7 @@ export const groupDetailEnvUrl = '/project/environment/group/get/'; export const groupDeleteEnvUrl = '/project/environment/group/delete/'; export const getEnvPluginUrl = '/project/environment/scripts/'; // 获取项目组的项目 -export const groupProjectEnvUrl = '/project/environment/group/get-project'; +export const groupProjectEnvUrl = '/project/environment/group/get-project/'; // 全局参数 export const updateGlobalParamUrl = '/project/global/params/update'; export const addGlobalParamUrl = '/project/global/params/add'; diff --git a/frontend/src/assets/style/global.less b/frontend/src/assets/style/global.less index b59e85c363..b6b21d7d05 100644 --- a/frontend/src/assets/style/global.less +++ b/frontend/src/assets/style/global.less @@ -95,3 +95,10 @@ body { background: rgb(var(--primary-6)); } } + +/* 评论组件的样式 */ +.ms-comment-child-container { + padding: 16px; + border: 0.5px solid var(--color-text-input-border); /* 设置近似 0.5px 的边框 */ + border-radius: 4px; +} diff --git a/frontend/src/components/business/ms-comment/comment-item.vue b/frontend/src/components/business/ms-comment/comment-item.vue index 5cc89fe841..6ec65098e6 100644 --- a/frontend/src/components/business/ms-comment/comment-item.vue +++ b/frontend/src/components/business/ms-comment/comment-item.vue @@ -51,18 +51,18 @@