diff --git a/workstation/frontend/src/api/api.js b/workstation/frontend/src/api/api.js
index 9c617b03da..1a69cd70df 100644
--- a/workstation/frontend/src/api/api.js
+++ b/workstation/frontend/src/api/api.js
@@ -50,6 +50,10 @@ export function testCaseBatchRun(params) {
return post(CASE_URL+'batch/run', params);
}
+export function getApiCaseEnvironments(param) {
+ return post(CASE_URL + '/get/env', param);
+}
+
/*sync*/
diff --git a/workstation/frontend/src/api/project.js b/workstation/frontend/src/api/project.js
index a31170b897..6cdcf38bdb 100644
--- a/workstation/frontend/src/api/project.js
+++ b/workstation/frontend/src/api/project.js
@@ -1,5 +1,5 @@
import {get, post} from "metersphere-frontend/src/plugins/request"
-import {getCurrentProjectID} from "metersphere-frontend/src/utils/token";
+import {getCurrentProjectID, getCurrentWorkspaceId} from "metersphere-frontend/src/utils/token";
export function listAllProject() {
return get("/project/listAll")
@@ -38,3 +38,7 @@ export function getProjectConfig(projectId) {
let url = '/project_application/get/config/' + projectId;
return get(url);
}
+
+export function getAll() {
+ return get('/project/listAll/' + getCurrentWorkspaceId());
+}
diff --git a/workstation/frontend/src/business/component/ApiCaseTableList.vue b/workstation/frontend/src/business/component/ApiCaseTableList.vue
index 5ce2449580..5e8a8cc8f7 100644
--- a/workstation/frontend/src/business/component/ApiCaseTableList.vue
+++ b/workstation/frontend/src/business/component/ApiCaseTableList.vue
@@ -207,6 +207,7 @@
@@ -472,7 +473,8 @@ export default {
hasEditPermission: false,
store: {},
openUpdateRule: true,
- showColum: false
+ showColum: false,
+ runCaseIds: []
};
},
props: {
@@ -941,7 +943,10 @@ export default {
});
},
handleRunBatch() {
- this.$refs.batchRun.open();
+ this.runCaseIds = Array.from(this.selectRows).map((row) => row.id);
+ this.$nextTick(() => {
+ this.$refs.batchRun.open();
+ });
},
runBatch(config) {
let obj = {};
diff --git a/workstation/frontend/src/business/module/api/ApiCaseRunModeWithEnv.vue b/workstation/frontend/src/business/module/api/ApiCaseRunModeWithEnv.vue
index 7d292afb58..f5cda55154 100644
--- a/workstation/frontend/src/business/module/api/ApiCaseRunModeWithEnv.vue
+++ b/workstation/frontend/src/business/module/api/ApiCaseRunModeWithEnv.vue
@@ -7,18 +7,20 @@
:visible.sync="runModeVisible"
>
-
{{ $t("commons.environment") }}:
-
+
{{ $t('commons.environment') }}:
+
{{ $t("run_mode.title") }}:
@@ -78,7 +80,7 @@
+
+
+
diff --git a/workstation/frontend/src/business/module/environment/common/EditEnvironmentGroup.vue b/workstation/frontend/src/business/module/environment/common/EditEnvironmentGroup.vue
new file mode 100644
index 0000000000..5edf044a3f
--- /dev/null
+++ b/workstation/frontend/src/business/module/environment/common/EditEnvironmentGroup.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/workstation/frontend/src/business/module/environment/common/EnvGroupWithOption.vue b/workstation/frontend/src/business/module/environment/common/EnvGroupWithOption.vue
new file mode 100644
index 0000000000..d114a4c091
--- /dev/null
+++ b/workstation/frontend/src/business/module/environment/common/EnvGroupWithOption.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+ {{ $t('workspace.env_group.name') }}
+
+
+
+ {{ $t('workspace.env_group.confirm') }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/workstation/frontend/src/business/module/environment/common/EnvironmentGroupList.vue b/workstation/frontend/src/business/module/environment/common/EnvironmentGroupList.vue
new file mode 100644
index 0000000000..2fee45b241
--- /dev/null
+++ b/workstation/frontend/src/business/module/environment/common/EnvironmentGroupList.vue
@@ -0,0 +1,206 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+
+
+
+ {{ scope.row.createTime | datetimeFormat }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/workstation/frontend/src/business/module/environment/common/EnvironmentGroupRow.vue b/workstation/frontend/src/business/module/environment/common/EnvironmentGroupRow.vue
new file mode 100644
index 0000000000..2677c1e5d6
--- /dev/null
+++ b/workstation/frontend/src/business/module/environment/common/EnvironmentGroupRow.vue
@@ -0,0 +1,453 @@
+
+
+
+
+ {{ $t('commons.save') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('workspace.env_group.view_details') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.conditionType ? row.server : getUrl(row) }}
+
+
+
+
+ {{ row.conditionType ? row.conditionType : 'HTTP' }}
+
+
+
+
+ {{ row.conditionType ? '-' : getName(row) }}
+
+
+
+
+ {{ row.conditionType ? '-' : getDetails(row) }}
+
+
+
+
+ {{ row.description ? row.description : '-' }}
+
+
+
+
+ {{ row.time | datetimeFormat }}
+ -
+
+
+
+
+
+
+
+
+
+
+
+