diff --git a/frontend/src/components/business/ms-assertion/comp/ResponseBodyTab.vue b/frontend/src/components/business/ms-assertion/comp/ResponseBodyTab.vue index de87c92fb7..0339d6f46d 100644 --- a/frontend/src/components/business/ms-assertion/comp/ResponseBodyTab.vue +++ b/frontend/src/components/business/ms-assertion/comp/ResponseBodyTab.vue @@ -38,6 +38,7 @@ v-model:model-value="record.expression" class="ms-params-input" :max-length="255" + size="mini" :disabled="props.disabled" :placeholder="t('apiTestDebug.commonPlaceholder')" @input="() => handleExpressionChange(rowIndex)" @@ -133,6 +134,7 @@ :disabled="props.disabled" class="ms-params-input" :max-length="255" + size="mini" :placeholder="t('apiTestDebug.commonPlaceholder')" @input="() => handleExpressionChange(rowIndex)" @change="() => handleExpressionChange(rowIndex)" @@ -281,6 +283,7 @@ :disabled="props.disabled" class="ms-params-input" :max-length="255" + size="mini" @input="() => handleExpressionChange(rowIndex)" @change="() => handleExpressionChange(rowIndex)" > @@ -457,7 +460,6 @@ dataIndex: 'condition', slotName: 'condition', options: statusCodeOptions, - width: 120, }, { title: 'ms.assertion.matchValue', diff --git a/frontend/src/components/business/ms-assertion/index.vue b/frontend/src/components/business/ms-assertion/index.vue index 057ce25be8..bd6d2720ad 100644 --- a/frontend/src/components/business/ms-assertion/index.vue +++ b/frontend/src/components/business/ms-assertion/index.vue @@ -40,15 +40,13 @@ >
{{ index + 1 }} -
{{ item.name }}
+
{{ + item.name + }}
- - + props.modelValue, - (val) => { - if (val) { - selectValue.value = val as any; - } - }, - { immediate: true } - ); - watch( () => props.keyword, (val) => { @@ -116,6 +106,9 @@ if (props.options) { optionsList.value = props.options; } + if (props.modelValue) { + selectValue.value = props.modelValue; + } }); onMounted(() => { diff --git a/frontend/src/models/projectManagement/environmental.ts b/frontend/src/models/projectManagement/environmental.ts index 7236c7585a..bec1b3ce70 100644 --- a/frontend/src/models/projectManagement/environmental.ts +++ b/frontend/src/models/projectManagement/environmental.ts @@ -1,4 +1,4 @@ -import { ExecuteConditionProcessor } from '../apiTest/common'; +import { EnableKeyValueParam, ExecuteConditionProcessor } from '@/models/apiTest/common'; export interface EnvListItem { mock?: boolean; @@ -140,7 +140,7 @@ export interface HttpForm { description?: string; hostname: string; type: string; - headers: Record[]; + headers: EnableKeyValueParam[]; // pathMatchRule: { path: string; condition: string; diff --git a/frontend/src/views/api-test/components/condition/list.vue b/frontend/src/views/api-test/components/condition/list.vue index 6e97b75dbe..6c4ea32be4 100644 --- a/frontend/src/views/api-test/components/condition/list.vue +++ b/frontend/src/views/api-test/components/condition/list.vue @@ -113,6 +113,12 @@ return data.value.filter((item: any) => item.processorType === RequestConditionProcessor.EXTRACT).length > 0; }); + const hasSql = computed( + () => + data.value.filter((item: any) => item.processorType === RequestConditionProcessor.SQL).length > 0 && + props.showPrePostRequest + ); + const itemMoreActions: ActionsItem[] = [ { label: 'common.copy', @@ -131,7 +137,7 @@ watchEffect(() => { activeItem.value = data.value.find((item) => item.id === props.activeId) || data.value[0] || {}; emit('activeChange', activeItem.value); - if (hasPreAndPost.value || hasEXTRACT.value) { + if (hasPreAndPost.value || hasEXTRACT.value || hasSql.value) { moreActions = itemMoreActions.slice(-1); } else { moreActions = itemMoreActions; diff --git a/frontend/src/views/api-test/components/requestComposition/response/result/index.vue b/frontend/src/views/api-test/components/requestComposition/response/result/index.vue index e7d850f5b2..6a14021212 100644 --- a/frontend/src/views/api-test/components/requestComposition/response/result/index.vue +++ b/frontend/src/views/api-test/components/requestComposition/response/result/index.vue @@ -61,7 +61,16 @@
- {{ props.environmentName }} + +
{{ + props.environmentName + }}
+ +
@@ -112,7 +121,7 @@ import { reportCaseStepDetail, reportStepDetail } from '@/api/modules/api-test/report'; import { useI18n } from '@/hooks/useI18n'; - import { findNodeByKey } from '@/utils'; + import { findNodeByKey, formatDuration } from '@/utils'; import type { ReportStepDetail, ReportStepDetailItem, ScenarioItemType } from '@/models/apiTest/report'; import { ResponseComposition, ScenarioStepType } from '@/enums/apiEnum'; diff --git a/frontend/src/views/api-test/management/components/management/api/apiTable.vue b/frontend/src/views/api-test/management/components/management/api/apiTable.vue index 397fe26ff6..3f7039a01b 100644 --- a/frontend/src/views/api-test/management/components/management/api/apiTable.vue +++ b/frontend/src/views/api-test/management/components/management/api/apiTable.vue @@ -421,7 +421,7 @@ dataIndex: 'tags', isTag: true, isStringTag: true, - width: 150, + width: 400, showDrag: true, }, { diff --git a/frontend/src/views/api-test/management/components/management/case/caseTable.vue b/frontend/src/views/api-test/management/components/management/case/caseTable.vue index d212323d73..958180a462 100644 --- a/frontend/src/views/api-test/management/components/management/case/caseTable.vue +++ b/frontend/src/views/api-test/management/components/management/case/caseTable.vue @@ -482,6 +482,7 @@ isTag: true, isStringTag: true, showDrag: true, + width: 400, }, { title: 'case.lastReportStatus', diff --git a/frontend/src/views/api-test/report/component/caseReportCom.vue b/frontend/src/views/api-test/report/component/caseReportCom.vue index 63cdc46766..328bcdf5e9 100644 --- a/frontend/src/views/api-test/report/component/caseReportCom.vue +++ b/frontend/src/views/api-test/report/component/caseReportCom.vue @@ -1,74 +1,14 @@