解决测试计划性能测试相关bug
This commit is contained in:
@@ -145,6 +145,7 @@
|
||||
|
||||
<script>
|
||||
import { editTest, editAndExecuteTest, getTestCaseList, getTestDetail, executeTest } from '../../../api/performance';
|
||||
import {runTestPlanCase} from "../../../api/test/planCase";
|
||||
|
||||
export default {
|
||||
name: "PerformanceEdit",
|
||||
@@ -262,17 +263,18 @@ export default {
|
||||
},
|
||||
// 立即执行
|
||||
handleWithExecute() {
|
||||
this.loading = true;
|
||||
executeTest(this.$route.query.id).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$message({ message: '执行成功', type: 'success' })
|
||||
// this.$tab.closeOpenPage({ path: "/performance/performance" });
|
||||
} else {
|
||||
this.$message({ message: '执行失败', type: 'error' })
|
||||
}
|
||||
const myId = this.$route.query.id;
|
||||
this.$modal.confirm('是否确认立即执行性能测试?').then(function () {
|
||||
return executeTest(myId);
|
||||
}).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.$modal.msgSuccess("提交执行成功");
|
||||
} else {
|
||||
this.$message({ message: '提交执行失败', type: 'error' })
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false;
|
||||
})
|
||||
});
|
||||
},
|
||||
// 取消
|
||||
handleWithCancel() {
|
||||
|
||||
Reference in New Issue
Block a user