refactor(系统设置): 重命名获取环境的方法名

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-11-07 18:56:57 +08:00 committed by xiaomeinvG
parent cb609764d9
commit 79754ee36a
5 changed files with 7 additions and 8 deletions

View File

@ -27,7 +27,7 @@
<script>
import EnvironmentGroup from "@/business/commons/EnvironmentGroupList";
import {environmentGetALl, getEnvironmentMapByGroupId} from "metersphere-frontend/src/api/environment";
import {environmentGetALL, getEnvironmentMapByGroupId} from "metersphere-frontend/src/api/environment";
export default {
name: "EnvGroup",
@ -67,7 +67,7 @@ export default {
this.envGroupId = this.groupId;
},
init() {
environmentGetALl().then(res => {
environmentGetALL().then(res => {
let data = res.data;
this.groups = data ? data : [];
})

View File

@ -48,7 +48,7 @@ export function addGroupEnvironment(params) {
return post('/environment/group/add', params);
}
export function environmentGetALl() {
export function environmentGetALL() {
return post('/environment/group/get/all', {});
}

View File

@ -1843,7 +1843,6 @@ public class TestPlanService {
this.setPlanCaseEnv(testPlanId, runModeConfig);
} else if (StringUtils.equals(testplanRunRequest.getEnvironmentType(), "GROUP") && StringUtils.isNotBlank(testplanRunRequest.getEnvironmentGroupId())) {
runModeConfig.setEnvironmentGroupId(testplanRunRequest.getEnvironmentGroupId());
runModeConfig.setEnvMap(testplanRunRequest.getEnvMap());
this.setPlanCaseEnv(testPlanId, runModeConfig);
}
}

View File

@ -27,7 +27,7 @@
<script>
import EnvironmentGroup from "./EnvironmentGroupList";
import {environmentGetALl, getEnvironmentMapByGroupId} from "metersphere-frontend/src/api/environment";
import {environmentGetALL, getEnvironmentMapByGroupId} from "metersphere-frontend/src/api/environment";
export default {
name: "EnvGroup",
@ -67,7 +67,7 @@ export default {
this.envGroupId = this.groupId;
},
init() {
environmentGetALl().then(res => {
environmentGetALL().then(res => {
let data = res.data;
this.groups = data ? data : [];
})

View File

@ -56,7 +56,7 @@
<script>
import {ENV_TYPE} from "metersphere-frontend/src/utils/constants";
import {environmentGetALl} from "metersphere-frontend/src/api/environment";
import {environmentGetALL} from "metersphere-frontend/src/api/environment";
import MsTag from "metersphere-frontend/src/components/MsTag";
import EnvironmentGroup from "@/business/plan/env/EnvironmentGroupList";
import {getEnvironmentByProjectId} from "@/api/remote/api/api-environment";
@ -114,7 +114,7 @@ export default {
this.visible = true;
},
getgroups(){
environmentGetALl().then(res => {
environmentGetALL().then(res => {
let data = res.data;
this.groups = data ? data : [];
})