diff --git a/framework/sdk-parent/frontend/src/components/search/search-components.js b/framework/sdk-parent/frontend/src/components/search/search-components.js
index 3fe124cf2d..063923e4e5 100644
--- a/framework/sdk-parent/frontend/src/components/search/search-components.js
+++ b/framework/sdk-parent/frontend/src/components/search/search-components.js
@@ -273,6 +273,24 @@ export const API_SCENARIO_RESULT = {
multiple: true
}
}
+// 场景执行结果
+export const UI_SCENARIO_RESULT = {
+ key: "lastResult",
+ name: 'MsTableSearchSelect',
+ label: 'test_track.plan_view.execute_result',
+ operator: {
+ options: [OPERATORS.IN, OPERATORS.NOT_IN]
+ },
+ options: [
+ {text: 'Pending', value: 'PENDING'},
+ {text: 'Success', value: 'SUCCESS'},
+ {text: 'Error', value: 'ERROR'},
+ ],
+ props: { // 尾部控件的props,一般为element ui控件的props
+ multiple: true
+ }
+}
+
// 请求类型
export const API_METHOD = {
key: "method",
@@ -858,6 +876,7 @@ export const TEST_PLAN_RELEVANCE_FUNC_CONFIGS = [NAME, TAGS, CREATE_TIME, UPDATE
export const TEST_PLAN_RELEVANCE_API_DEFINITION_CONFIGS = [NAME, API_METHOD, API_PATH, TAGS, UPDATE_TIME, CREATE_TIME, CREATOR];
export const TEST_PLAN_RELEVANCE_API_CASE_CONFIGS = [NAME, PRIORITY, TAGS, UPDATE_TIME, CREATOR, API_PATH];
export const TEST_PLAN_RELEVANCE_API_SCENARIO_CONFIGS = [NAME, PRIORITY, TAGS, API_SCENARIO_RESULT, CREATE_TIME, UPDATE_TIME, CREATOR];
+export const TEST_PLAN_RELEVANCE_UI_SCENARIO_CONFIGS = [NAME, PRIORITY, TAGS, UI_SCENARIO_RESULT, CREATE_TIME, UPDATE_TIME, CREATOR];
export const TEST_PLAN_RELEVANCE_LOAD_CASE = [NAME, STATUS, CREATE_TIME, UPDATE_TIME, CREATOR];
// 测试用例关联测试
diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/TestPlanUiReport.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/TestPlanUiReport.vue
index bba467e1e6..4d78e4484a 100644
--- a/test-track/frontend/src/business/plan/view/comonents/report/detail/TestPlanUiReport.vue
+++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/TestPlanUiReport.vue
@@ -11,7 +11,7 @@
@@ -21,7 +21,7 @@
diff --git a/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue b/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue
index f451784404..cfb2872b66 100644
--- a/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue
+++ b/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue
@@ -55,10 +55,10 @@
-
+
{{ $t('api_test.automation.success') }}
-
+
{{ $t('api_test.automation.fail') }}
@@ -79,7 +79,7 @@ import MsTag from "metersphere-frontend/src/components/MsTag";
import TestPlanScenarioListHeader from "../api/TestPlanScenarioListHeader";
import PriorityTableItem from "@/business/common/tableItems/planview/PriorityTableItem";
import MsTableAdvSearchBar from "metersphere-frontend/src/components/search/MsTableAdvSearchBar";
-import {TEST_PLAN_RELEVANCE_API_SCENARIO_CONFIGS} from "metersphere-frontend/src/components/search/search-components";
+import {TEST_PLAN_RELEVANCE_UI_SCENARIO_CONFIGS} from "metersphere-frontend/src/components/search/search-components";
import {ENV_TYPE} from "metersphere-frontend/src/utils/constants";
import MsTable from "metersphere-frontend/src/components/table/MsTable";
import {getOwnerProjects, getVersionFilters} from "@/business/utils/sdk-utils";
@@ -113,7 +113,7 @@ export default {
loading: false,
showConfigButtonWithOutPermission: false,
condition: {
- components: TEST_PLAN_RELEVANCE_API_SCENARIO_CONFIGS
+ components: TEST_PLAN_RELEVANCE_UI_SCENARIO_CONFIGS
},
currentScenario: {},
schedule: {},
diff --git a/test-track/frontend/src/business/plan/view/comonents/ui/TestPlanUiScenarioList.vue b/test-track/frontend/src/business/plan/view/comonents/ui/TestPlanUiScenarioList.vue
index 4837eacc9d..92fcba594c 100644
--- a/test-track/frontend/src/business/plan/view/comonents/ui/TestPlanUiScenarioList.vue
+++ b/test-track/frontend/src/business/plan/view/comonents/ui/TestPlanUiScenarioList.vue
@@ -148,7 +148,7 @@
:label="$t('api_test.automation.last_result')">
-
+
@@ -189,7 +189,7 @@ import MsTag from "metersphere-frontend/src/components/MsTag";
import {getCurrentProjectID, getCurrentWorkspaceId} from "metersphere-frontend/src/utils/token";
import {hasLicense} from "metersphere-frontend/src/utils/permission";
import {getUUID, strMapToObj} from "metersphere-frontend/src/utils";
-import TestPlanScenarioListHeader from "../api/TestPlanScenarioListHeader";
+import TestPlanScenarioListHeader from "../ui/TestPlanUiScenarioListHeader";
import MsPlanRunMode from "@/business/plan/common/PlanRunModeWithEnv";
import {
initCondition,