fix(性能测试): 修复报告列表不能进入starting的报告
This commit is contained in:
parent
816cb4780c
commit
8170ffe3a4
|
@ -93,7 +93,7 @@ import MsTablePagination from "../../common/pagination/TablePagination";
|
||||||
import MsContainer from "../../common/components/MsContainer";
|
import MsContainer from "../../common/components/MsContainer";
|
||||||
import MsMainContainer from "../../common/components/MsMainContainer";
|
import MsMainContainer from "../../common/components/MsMainContainer";
|
||||||
import MsPerformanceReportStatus from "./PerformanceReportStatus";
|
import MsPerformanceReportStatus from "./PerformanceReportStatus";
|
||||||
import {getCurrentProjectID} from "../../../../common/js/utils";
|
import {getCurrentProjectID} from "@/common/js/utils";
|
||||||
import MsTableOperatorButton from "../../common/components/MsTableOperatorButton";
|
import MsTableOperatorButton from "../../common/components/MsTableOperatorButton";
|
||||||
import ReportTriggerModeItem from "../../common/tableItem/ReportTriggerModeItem";
|
import ReportTriggerModeItem from "../../common/tableItem/ReportTriggerModeItem";
|
||||||
import {REPORT_CONFIGS} from "../../common/components/search/search-components";
|
import {REPORT_CONFIGS} from "../../common/components/search/search-components";
|
||||||
|
@ -104,7 +104,7 @@ import {_filter, _sort} from "@/common/js/tableUtils";
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "PerformanceTestReport",
|
name: "PerformanceTestReportList",
|
||||||
components: {
|
components: {
|
||||||
MsTableHeader,
|
MsTableHeader,
|
||||||
ReportTriggerModeItem,
|
ReportTriggerModeItem,
|
||||||
|
@ -186,10 +186,6 @@ export default {
|
||||||
this.multipleSelection = val;
|
this.multipleSelection = val;
|
||||||
},
|
},
|
||||||
handleEdit(report) {
|
handleEdit(report) {
|
||||||
if (report.status === "Starting") {
|
|
||||||
this.$info(this.$t('report.being_generated'))
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/performance/report/view/' + report.id
|
path: '/performance/report/view/' + report.id
|
||||||
})
|
})
|
|
@ -4,7 +4,7 @@ const PerformanceTest = () => import('@/business/components/performance/Performa
|
||||||
const PerformanceTestHome = () => import('@/business/components/performance/home/PerformanceTestHome')
|
const PerformanceTestHome = () => import('@/business/components/performance/home/PerformanceTestHome')
|
||||||
const EditPerformanceTest = () => import('@/business/components/performance/test/EditPerformanceTest')
|
const EditPerformanceTest = () => import('@/business/components/performance/test/EditPerformanceTest')
|
||||||
const PerformanceTestList = () => import('@/business/components/performance/test/PerformanceTestList')
|
const PerformanceTestList = () => import('@/business/components/performance/test/PerformanceTestList')
|
||||||
const PerformanceTestReport = () => import('@/business/components/performance/report/PerformanceTestReport')
|
const PerformanceTestReportList = () => import('@/business/components/performance/report/PerformanceTestReportList')
|
||||||
const PerformanceChart = () => import('@/business/components/performance/report/components/PerformanceChart')
|
const PerformanceChart = () => import('@/business/components/performance/report/components/PerformanceChart')
|
||||||
const PerformanceReportView = () => import('@/business/components/performance/report/PerformanceReportView')
|
const PerformanceReportView = () => import('@/business/components/performance/report/PerformanceReportView')
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ export default {
|
||||||
{
|
{
|
||||||
path: "report/:type",
|
path: "report/:type",
|
||||||
name: "perReport",
|
name: "perReport",
|
||||||
component: PerformanceTestReport
|
component: PerformanceTestReportList
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "chart",
|
path: "chart",
|
||||||
|
|
Loading…
Reference in New Issue