style(性能测试): 性能测试报告加载测试配置时增加loading
This commit is contained in:
parent
fb2b95ae31
commit
a0ffb3a685
|
@ -112,7 +112,7 @@
|
||||||
<monitor-card :report="report"/>
|
<monitor-card :report="report"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :label="$t('report.test_config')">
|
<el-tab-pane :label="$t('report.test_config')">
|
||||||
<ms-test-configuration :test="test" :report-id="reportId"/>
|
<ms-test-configuration v-if="active===6 || active === '6'" :test="test" :report-id="reportId"/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
|
@ -157,7 +157,15 @@ import MonitorCard from "./components/MonitorCard";
|
||||||
import MsTestConfiguration from "./components/TestConfiguration";
|
import MsTestConfiguration from "./components/TestConfiguration";
|
||||||
import {generateShareInfoWithExpired, getShareRedirectUrl} from "@/api/share";
|
import {generateShareInfoWithExpired, getShareRedirectUrl} from "@/api/share";
|
||||||
import ProjectEnvironmentDialog from "./components/ProjectEnvironmentDialog";
|
import ProjectEnvironmentDialog from "./components/ProjectEnvironmentDialog";
|
||||||
import {downloadZip, getProjectApplication, getReport, getReportTime, getTestProInfo, initReportSocket, stopTest} from "@/api/report";
|
import {
|
||||||
|
downloadZip,
|
||||||
|
getProjectApplication,
|
||||||
|
getReport,
|
||||||
|
getReportTime,
|
||||||
|
getTestProInfo,
|
||||||
|
initReportSocket,
|
||||||
|
stopTest
|
||||||
|
} from "@/api/report";
|
||||||
import {getTest, runTest} from "@/api/performance";
|
import {getTest, runTest} from "@/api/performance";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-loading="result.loading" v-if="loadIsOver" class="pressure-config-container">
|
<div v-loading="result.loading" class="pressure-config-container">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col>
|
<el-col>
|
||||||
<el-form :inline="true" :disabled="isReadOnly">
|
<el-form :inline="true" :disabled="isReadOnly">
|
||||||
|
@ -320,7 +320,6 @@ export default {
|
||||||
step: 0,
|
step: 0,
|
||||||
rpsLimit: 0,
|
rpsLimit: 0,
|
||||||
rpsLimitEnable: false,
|
rpsLimitEnable: false,
|
||||||
loadIsOver: true,
|
|
||||||
options: {},
|
options: {},
|
||||||
resourcePool: null,
|
resourcePool: null,
|
||||||
setPoolNull: false,
|
setPoolNull: false,
|
||||||
|
@ -413,7 +412,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getLoadConfig() {
|
getLoadConfig() {
|
||||||
this.loadIsOver = false;
|
this.result.loading = true;
|
||||||
getLoadConfig(this.testId, this.reportId, this.isShare)
|
getLoadConfig(this.testId, this.reportId, this.isShare)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
let data = JSON.parse(response.data);
|
let data = JSON.parse(response.data);
|
||||||
|
@ -514,7 +513,7 @@ export default {
|
||||||
this.resourcePoolChange();
|
this.resourcePoolChange();
|
||||||
this.calculateTotalChart();
|
this.calculateTotalChart();
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loadIsOver = true;
|
this.result.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getJmxContent() {
|
getJmxContent() {
|
||||||
|
|
Loading…
Reference in New Issue