fix(性能测试): 性能测试场景CSV变更后进行同步时表格内的CSV文件也同步更改

--bug=1026339 --user=宋天阳 [性能测试]github#24464场景修改csv
文件后,性能里点击同步场景设置最新变更,页面csv 文件未刷新过来 https://www.tapd.cn/55049933/s/1377685
This commit is contained in:
song-tianyang 2023-05-31 17:50:34 +08:00 committed by fit2-zhao
parent 1730b1ec0e
commit 78f4b371b8
1 changed files with 7 additions and 16 deletions

View File

@ -203,23 +203,16 @@ import PerformancePressureConfig from "./components/PerformancePressureConfig";
import PerformanceAdvancedConfig from "./components/PerformanceAdvancedConfig"; import PerformanceAdvancedConfig from "./components/PerformanceAdvancedConfig";
import MsContainer from "metersphere-frontend/src/components/MsContainer"; import MsContainer from "metersphere-frontend/src/components/MsContainer";
import MsMainContainer from "metersphere-frontend/src/components/MsMainContainer"; import MsMainContainer from "metersphere-frontend/src/components/MsMainContainer";
import { import {getCurrentProjectID, getCurrentUser, getCurrentWorkspaceId,} from "metersphere-frontend/src/utils/token";
getCurrentProjectID, import {hasLicense, hasPermission,} from "metersphere-frontend/src/utils/permission";
getCurrentUser,
getCurrentWorkspaceId,
} from "metersphere-frontend/src/utils/token";
import {
hasLicense,
hasPermission,
} from "metersphere-frontend/src/utils/permission";
import ScheduleConfig from "./components/ScheduleConfig"; import ScheduleConfig from "./components/ScheduleConfig";
import MsChangeHistory from "metersphere-frontend/src/components/history/ChangeHistory"; import MsChangeHistory from "metersphere-frontend/src/components/history/ChangeHistory";
import MsTableOperatorButton from "metersphere-frontend/src/components/MsTableOperatorButton"; import MsTableOperatorButton from "metersphere-frontend/src/components/MsTableOperatorButton";
import MsTipButton from "metersphere-frontend/src/components/MsTipButton"; import MsTipButton from "metersphere-frontend/src/components/MsTipButton";
import MxVersionHistory from "metersphere-frontend/src/components/version/MxVersionHistory"; import MxVersionHistory from "metersphere-frontend/src/components/version/MxVersionHistory";
import DiffVersion from "./DiffVersion"; import DiffVersion from "./DiffVersion";
import { PROJECT_ID } from "metersphere-frontend/src/utils/constants"; import {PROJECT_ID} from "metersphere-frontend/src/utils/constants";
import { getProjectUsers } from "metersphere-frontend/src/api/user"; import {getProjectUsers} from "metersphere-frontend/src/api/user";
import { import {
deleteCurrentVersionTest, deleteCurrentVersionTest,
getFollows, getFollows,
@ -232,10 +225,7 @@ import {
saveTest, saveTest,
syncScenario, syncScenario,
} from "@/api/performance"; } from "@/api/performance";
import { import {getDefaultVersion, setLatestVersionById,} from "metersphere-frontend/src/api/version";
getDefaultVersion,
setLatestVersionById,
} from "metersphere-frontend/src/api/version";
export default { export default {
name: "EditPerformanceTest", name: "EditPerformanceTest",
@ -443,6 +433,7 @@ export default {
this.projectEnvMap = null; this.projectEnvMap = null;
} }
} }
this.$refs.pressureConfig.getJmxContent();
this.getDefaultFollow(testId); this.getDefaultFollow(testId);
} }
}); });
@ -682,7 +673,7 @@ export default {
}); });
let csvFiles = []; let csvFiles = [];
for (const f of csvSet) { for (const f of csvSet) {
csvFiles.push({ name: f, csvSplit: false, csvHasHeader: true }); csvFiles.push({name: f, csvSplit: false, csvHasHeader: true});
} }
this.$set(handler, "threadGroups", threadGroups); this.$set(handler, "threadGroups", threadGroups);