fix(测试跟踪): 测试计划报告调用qiankun组件时解决重复请求相关的问题

This commit is contained in:
song-tianyang 2023-06-21 17:32:52 +08:00 committed by fit2-zhao
parent e4fbf5035f
commit b028f4eab7
4 changed files with 24 additions and 6 deletions

View File

@ -18,7 +18,7 @@ import java.util.concurrent.TimeUnit;
@Service
public class RedisTemplateService {
private static final String PRX = "TEST_PLAN_";
public static final long TIME_OUT = 60;
public static final long TIME_OUT = 480;
@Resource
private RedisTemplate<String, Object> redisTemplate;

View File

@ -98,12 +98,12 @@ import MethodTableItem from "../../../../../../common/tableItems/planview/Method
import StatusTableItem from "../../../../../../common/tableItems/planview/StatusTableItem";
import {
getPlanScenarioAllCase,
getPlanScenarioFailureCase,
getSharePlanScenarioAllCase,
getSharePlanScenarioFailureCase,
getPlanScenarioErrorReportCase,
getSharePlanScenarioErrorReportCase,
getPlanScenarioFailureCase,
getPlanScenarioUnExecuteCase,
getSharePlanScenarioAllCase,
getSharePlanScenarioErrorReportCase,
getSharePlanScenarioFailureCase,
getSharePlanScenarioUnExecuteCase,
} from "@/api/remote/plan/test-plan";
import MsTable from "metersphere-frontend/src/components/table/MsTable";
@ -239,6 +239,13 @@ export default {
}
},
rowClick(row) {
if (!this.isTemplate) {
if (this.reportId === row.reportId) {
return;
}
}
this.showResponse = false;
this.$nextTick(() => {
if (this.isTemplate) {

View File

@ -93,6 +93,7 @@ export default {
},
methods: {
getReport(row) {
if (this.isTemplate) {
if (row.response) {
this.showResponse = true;
@ -124,6 +125,11 @@ export default {
},
openReport(exist, loadReportId) {
if (exist) {
if (this.reportId === loadReportId) {
return;
}
this.reportId = loadReportId;
this.showResponse = true;
this.reportShow = false;

View File

@ -157,8 +157,13 @@ export default {
}
},
rowClick(row) {
if (!this.isTemplate) {
if (this.reportId === row.reportId) {
return;
}
}
this.showResponse = false;
this.$nextTick(()=>{
this.$nextTick(() => {
if (this.isTemplate) {
if (row.response) {
this.showResponse = true;