style(接口测试): 修复循环控制器调试结果序号错误问题
This commit is contained in:
parent
2e0c230100
commit
ee57386cf3
|
@ -88,9 +88,9 @@ import MsContainer from "@/business/components/common/components/MsContainer";
|
||||||
import MsMainContainer from "@/business/components/common/components/MsMainContainer";
|
import MsMainContainer from "@/business/components/common/components/MsMainContainer";
|
||||||
import MsApiReportExport from "./ApiReportExport";
|
import MsApiReportExport from "./ApiReportExport";
|
||||||
import MsApiReportViewHeader from "./ApiReportViewHeader";
|
import MsApiReportViewHeader from "./ApiReportViewHeader";
|
||||||
import {RequestFactory} from "../../definition/model/ApiTestModel";
|
import {KeyValue, RequestFactory} from "../../definition/model/ApiTestModel";
|
||||||
import {windowPrint, getCurrentProjectID, getUUID} from "@/common/js/utils";
|
import {windowPrint, getCurrentProjectID, getUUID} from "@/common/js/utils";
|
||||||
import {STEP} from "../scenario/Setting";
|
import {ELEMENT_TYPE, STEP, TYPE_TO_C} from "../scenario/Setting";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "SysnApiReportDetail",
|
name: "SysnApiReportDetail",
|
||||||
|
@ -379,6 +379,7 @@ export default {
|
||||||
onMessage(e) {
|
onMessage(e) {
|
||||||
if (e.data) {
|
if (e.data) {
|
||||||
this.runningEvaluation(e.data);
|
this.runningEvaluation(e.data);
|
||||||
|
this.sort(this.fullTreeNodes);
|
||||||
}
|
}
|
||||||
if (e.data && e.data.indexOf("MS_TEST_END") !== -1) {
|
if (e.data && e.data.indexOf("MS_TEST_END") !== -1) {
|
||||||
this.getReport();
|
this.getReport();
|
||||||
|
@ -387,6 +388,14 @@ export default {
|
||||||
this.$emit('refresh', this.debugResult);
|
this.$emit('refresh', this.debugResult);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
sort(stepArray) {
|
||||||
|
for (let i in stepArray) {
|
||||||
|
stepArray[i].index = Number(i) + 1;
|
||||||
|
if (stepArray[i].children && stepArray[i].children.length > 0) {
|
||||||
|
this.sort(stepArray[i].children);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
projectId() {
|
projectId() {
|
||||||
|
|
Loading…
Reference in New Issue