From 62ce36e2ba6b71894d8c73b6aa1ca6cadf21d989 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Tue, 13 Aug 2024 18:45:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=94=A8=E4=BE=8B=E8=84=91=E5=9B=BE=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E4=B8=89=E6=96=B9=E5=A4=84=E7=90=86=E4=BA=BA?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE&=E7=94=A8=E4=BE=8B=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=AF=B9=E6=AF=94=E6=8A=BD=E5=B1=89table=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../management/api/preview/detail.vue | 8 ++++++ .../components/management/case/diffItem.vue | 14 ++++++++++ .../management/case/differentDrawer.vue | 26 ++++++++++++++++--- .../tabContent/tabBug/addDefectDrawer.vue | 22 +++++++++------- 4 files changed, 57 insertions(+), 13 deletions(-) diff --git a/frontend/src/views/api-test/management/components/management/api/preview/detail.vue b/frontend/src/views/api-test/management/components/management/api/preview/detail.vue index 4c5e187d07..01ed67a0e3 100644 --- a/frontend/src/views/api-test/management/components/management/api/preview/detail.vue +++ b/frontend/src/views/api-test/management/components/management/api/preview/detail.vue @@ -49,6 +49,7 @@ :columns="headerColumns" :data="previewDetail.headers?.filter((e) => e.key !== '') || []" :selectable="false" + :scroll="{ x: '100%' }" /> @@ -575,6 +582,7 @@ dataIndex: 'description', inputType: 'text', showTooltip: true, + width: 300, }, ]; const headerShowType = ref('table'); diff --git a/frontend/src/views/api-test/management/components/management/case/diffItem.vue b/frontend/src/views/api-test/management/components/management/case/diffItem.vue index ce6aa6b8fa..34634fb71f 100644 --- a/frontend/src/views/api-test/management/components/management/case/diffItem.vue +++ b/frontend/src/views/api-test/management/components/management/case/diffItem.vue @@ -9,6 +9,7 @@ :data="previewDetail?.headers?.filter((e) => e.key !== '') || []" :selectable="false" :diff-mode="props.mode" + :scroll="{ x: '100%' }" />
-
[{{ apiDetailInfo?.num }}] {{ apiDetailInfo?.name }}
+
+ +
[{{ apiDetailInfo?.num }}] {{ apiDetailInfo?.name }}
+
+
+
-
-
[{{ caseDetail?.num }}] {{ caseDetail?.name }}
+
+
+ +
[{{ caseDetail?.num }}] {{ caseDetail?.name }}
+
+
@@ -499,7 +516,8 @@ padding: 0 16px; min-height: calc(100vh - 110px); .diff-normal { - @apply flex; + gap: 24px; + @apply grid grid-cols-2; .diff-item { @apply flex-1; .title-type { diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/addDefectDrawer.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/addDefectDrawer.vue index 231aad0582..04841ceaf4 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/addDefectDrawer.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/addDefectDrawer.vue @@ -61,6 +61,7 @@ import { createOrUpdateBug, editorUploadFile, + getCustomOptionHeader, getTemplateDetailInfo, getTemplateOption, } from '@/api/modules/bug-management/index'; @@ -69,7 +70,6 @@ import { useAppStore } from '@/store'; import { TemplateOption } from '@/models/common'; - import type { CustomField, FieldOptions } from '@/models/setting/template'; const appStore = useAppStore(); @@ -151,20 +151,23 @@ } const handleUserOptions = ref([]); + + async function getThreePartiesOptions() { + const res = await getCustomOptionHeader(appStore.currentProjectId); + + handleUserOptions.value = res.handleUserOption.map((e) => { + return { + value: e.value, + label: e.text, + }; + }); + } async function initBugTemplate() { try { templateOptions.value = await getTemplateOption(appStore.currentProjectId); form.value.templateId = templateOptions.value.find((item) => item.enableDefault)?.id as string; defaultTemplateId.value = templateOptions.value.find((item) => item.enableDefault)?.id as string; const result = await getTemplateDetailInfo({ id: form.value.templateId, projectId: appStore.currentProjectId }); - handleUserOptions.value = result.customFields - .find((customField: CustomField) => customField.fieldKey === 'handleUser') - .options.map((item: FieldOptions) => { - return { - value: item.value, - label: item.text, - }; - }); templateCustomFields.value = result.customFields.map((item: any) => { return { id: item.fieldId, @@ -191,6 +194,7 @@ (val) => { if (val) { initBugTemplate(); + getThreePartiesOptions(); } } );