- {{ $t('commons.environment') + ':' }}
+ {{ $t("commons.environment") + ":" }}
-
+
{{ report.envGroupName }}
@@ -42,20 +59,33 @@
-
+
{{ report.caseCount }}
-
- {{ (report.executeRate ? (report.executeRate * 100).toFixed(1) : 0) + '%' }}
-
+
+ {{
+ (report.executeRate ? (report.executeRate * 100).toFixed(1) : 0) +
+ "%"
+ }}
+
- {{ (report.passRate ? (report.passRate * 100).toFixed(1) : 0) + '%' }}
-
+ {{
+ (report.passRate ? (report.passRate * 100).toFixed(1) : 0) + "%"
+ }}
+
@@ -68,37 +98,42 @@ import MsFormDivider from "metersphere-frontend/src/components/MsFormDivider";
import TestPlanReportContainer from "@/business/plan/view/comonents/report/detail/TestPlanReportContainer";
import MsInstructionsIcon from "metersphere-frontend/src/components/MsInstructionsIcon";
import MsTag from "metersphere-frontend/src/components/MsTag";
-import {datetimeFormat} from "fit2cloud-ui/src/filters/time";
-import {getTestPlanExtReport} from "@/api/remote/plan/test-plan"
+import { datetimeFormat } from "fit2cloud-ui/src/filters/time";
+import { getTestPlanExtReport } from "@/api/remote/plan/test-plan";
export default {
name: "TestPlanOverviewReport",
- components: {MsInstructionsIcon, TestPlanReportContainer, MsFormDivider, MsTag},
+ components: {
+ MsInstructionsIcon,
+ TestPlanReportContainer,
+ MsFormDivider,
+ MsTag,
+ },
props: {
report: Object,
runMode: String,
- resourcePool: String
+ resourcePool: String,
},
data() {
return {
loading: false,
- isEdit: false
- }
+ isEdit: false,
+ };
},
computed: {
showTime() {
- let startTime = '';
- let endTime = '';
+ let startTime = "";
+ let endTime = "";
if (this.report.startTime) {
startTime = datetimeFormat(this.report.startTime, false);
}
if (this.report.endTime) {
endTime = datetimeFormat(this.report.endTime, false);
}
- return startTime + ' ~ ' + endTime;
- }
+ return startTime + " ~ " + endTime;
+ },
},
-}
+};