Skip to content

Commit

Permalink
fix(测试跟踪): 测试计划报告调用qiankun组件时解决重复请求相关的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Somebody-JIAN authored and fit2-zhao committed Jun 21, 2023
1 parent e4fbf50 commit b028f4e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ import MethodTableItem from "../../../../../../common/tableItems/planview/Method
import StatusTableItem from "../../../../../../common/tableItems/planview/StatusTableItem";
import {
getPlanScenarioAllCase,
getPlanScenarioErrorReportCase,
getPlanScenarioFailureCase,
getPlanScenarioUnExecuteCase,
getSharePlanScenarioAllCase,
getSharePlanScenarioFailureCase,
getPlanScenarioErrorReportCase,
getSharePlanScenarioErrorReportCase,
getPlanScenarioUnExecuteCase,
getSharePlanScenarioFailureCase,
getSharePlanScenarioUnExecuteCase,
} from "@/api/remote/plan/test-plan";
import MsTable from "metersphere-frontend/src/components/table/MsTable";
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default {
},
methods: {
getReport(row) {
if (this.isTemplate) {
if (row.response) {
this.showResponse = true;
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b028f4e

Please sign in to comment.