fix(测试计划): 修复报告统计结果错误
This commit is contained in:
parent
2cdf1e6730
commit
4b41e9df0c
|
@ -119,7 +119,7 @@
|
||||||
this.functionalCharData = [];
|
this.functionalCharData = [];
|
||||||
if (this.executeResult.functionalResult) {
|
if (this.executeResult.functionalResult) {
|
||||||
this.executeResult.functionalResult.forEach(item => {
|
this.executeResult.functionalResult.forEach(item => {
|
||||||
let data = this.dataMap.get(item.status);
|
let data = this.copyData(item.status);
|
||||||
data.value = item.count;
|
data.value = item.count;
|
||||||
this.functionalCharData.push(data);
|
this.functionalCharData.push(data);
|
||||||
});
|
});
|
||||||
|
@ -129,7 +129,7 @@
|
||||||
this.apiCharData = [];
|
this.apiCharData = [];
|
||||||
if (this.executeResult.apiResult) {
|
if (this.executeResult.apiResult) {
|
||||||
this.executeResult.apiResult.forEach(item => {
|
this.executeResult.apiResult.forEach(item => {
|
||||||
let data = this.dataMap.get(item.status);
|
let data = this.copyData(item.status);
|
||||||
data.value = item.count;
|
data.value = item.count;
|
||||||
this.apiCharData.push(data);
|
this.apiCharData.push(data);
|
||||||
});
|
});
|
||||||
|
@ -139,7 +139,7 @@
|
||||||
this.scenarioCharData = [];
|
this.scenarioCharData = [];
|
||||||
if (this.executeResult.apiResult) {
|
if (this.executeResult.apiResult) {
|
||||||
this.executeResult.scenarioResult.forEach(item => {
|
this.executeResult.scenarioResult.forEach(item => {
|
||||||
let data = this.dataMap.get(item.status);
|
let data = this.copyData(item.status);
|
||||||
data.value = item.count;
|
data.value = item.count;
|
||||||
this.scenarioCharData.push(data);
|
this.scenarioCharData.push(data);
|
||||||
});
|
});
|
||||||
|
@ -149,12 +149,15 @@
|
||||||
this.loadCharData = [];
|
this.loadCharData = [];
|
||||||
if (this.executeResult.loadResult) {
|
if (this.executeResult.loadResult) {
|
||||||
this.executeResult.loadResult.forEach(item => {
|
this.executeResult.loadResult.forEach(item => {
|
||||||
let data = this.dataMap.get(item.status);
|
let data = this.copyData(item.status);
|
||||||
data.value = item.count;
|
data.value = item.count;
|
||||||
this.loadCharData.push(data);
|
this.loadCharData.push(data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
copyData(status) {
|
||||||
|
return JSON.parse(JSON.stringify(this.dataMap.get(status)))
|
||||||
|
},
|
||||||
reload() {
|
reload() {
|
||||||
this.isShow = false;
|
this.isShow = false;
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
|
|
Loading…
Reference in New Issue