diff --git a/frontend/config/vite.config.dev.ts b/frontend/config/vite.config.dev.ts
index f93feff307..e7ddff02fc 100644
--- a/frontend/config/vite.config.dev.ts
+++ b/frontend/config/vite.config.dev.ts
@@ -13,38 +13,38 @@ export default mergeConfig(
},
proxy: {
'/ws': {
- target: 'https://qadevtest.fit2cloud.com/',
+ target: 'http://172.16.200.18:8081/',
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/front\/ws/, ''),
ws: true,
},
'/front': {
- target: 'https://qadevtest.fit2cloud.com/',
+ target: 'http://172.16.200.18:8081/',
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/front/, ''),
},
'/file': {
- target: 'https://qadevtest.fit2cloud.com/',
+ target: 'http://172.16.200.18:8081/',
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/front\/file/, ''),
},
'/attachment': {
- target: 'https://qadevtest.fit2cloud.com/',
+ target: 'http://172.16.200.18:8081/',
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/front\/attachment/, ''),
},
'/bug/attachment': {
- target: 'https://qadevtest.fit2cloud.com/',
+ target: 'http://172.16.200.18:8081/',
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/front\/bug\/attachment/, ''),
},
'/plugin/image': {
- target: 'https://qadevtest.fit2cloud.com/',
+ target: 'http://172.16.200.18:8081/',
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/front\/plugin\/image/, ''),
},
'/base-display': {
- target: 'https://qadevtest.fit2cloud.com/',
+ target: 'http://172.16.200.18:8081/',
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/front\/base-display/, ''),
},
diff --git a/frontend/src/views/api-test/management/components/moduleTree.vue b/frontend/src/views/api-test/management/components/moduleTree.vue
index 6b1a709a1b..5abf1938c9 100644
--- a/frontend/src/views/api-test/management/components/moduleTree.vue
+++ b/frontend/src/views/api-test/management/components/moduleTree.vue
@@ -69,34 +69,22 @@
-
-
-
-
-
-
- {{
- t('apiTestManagement.newApi')
- }}
- {{
- t('apiTestManagement.addSubModule')
- }}
-
-
-
-
-
-
+
+
+
+
+
@@ -283,9 +271,6 @@
case 'import':
emit('import');
break;
- case 'addModule':
- document.querySelector('#addModulePopSpan')?.dispatchEvent(new Event('click'));
- break;
default:
break;
}
diff --git a/frontend/src/views/api-test/scenario/components/executeHistory.vue b/frontend/src/views/api-test/scenario/components/executeHistory.vue
index 2ecf4f0c06..e901d0d4c4 100644
--- a/frontend/src/views/api-test/scenario/components/executeHistory.vue
+++ b/frontend/src/views/api-test/scenario/components/executeHistory.vue
@@ -97,6 +97,8 @@
+
+
@@ -108,6 +110,7 @@
import MsBaseTable from '@/components/pure/ms-table/base-table.vue';
import { MsTableColumn } from '@/components/pure/ms-table/type';
import useTable from '@/components/pure/ms-table/useTable';
+ import caseAndScenarioReportDrawer from '@/views/api-test/components/caseAndScenarioReportDrawer.vue';
import ExecuteStatus from '@/views/api-test/scenario/components/executeStatus.vue';
import { getExecuteHistory } from '@/api/modules/api-test/scenario';
@@ -241,7 +244,12 @@
loadExecuteHistoryList();
}
- function showResult(record: ExecuteHistoryItem) {}
+ const showScenarioReportVisible = ref(false);
+ const reportId = ref('');
+ function showResult(record: ExecuteHistoryItem) {
+ reportId.value = record.id;
+ showScenarioReportVisible.value = true;
+ }
onBeforeMount(() => {
loadExecuteHistoryList();
diff --git a/frontend/src/views/api-test/scenario/components/scenarioModuleTree.vue b/frontend/src/views/api-test/scenario/components/scenarioModuleTree.vue
index a6e1a012d7..edb3fd51b5 100644
--- a/frontend/src/views/api-test/scenario/components/scenarioModuleTree.vue
+++ b/frontend/src/views/api-test/scenario/components/scenarioModuleTree.vue
@@ -30,30 +30,22 @@
-
-
-
-
-
-
- {{ t('apiScenario.createScenario') }}
- {{ t('apiScenario.createSubModule') }}
-
-
-
-
-
-
+
+
+
+
+
@@ -184,22 +176,6 @@
const { t } = useI18n();
const { openModal } = useModal();
- function handleSelect(value: string | number | Record | undefined) {
- switch (value) {
- case 'newScenario':
- emit('newScenario');
- break;
- case 'import':
- emit('import');
- break;
- case 'addModule':
- document.querySelector('#addModulePopSpan')?.dispatchEvent(new Event('click'));
- break;
- default:
- break;
- }
- }
-
const virtualListProps = computed(() => {
if (props.readOnly) {
return {