fix(测试跟踪): 首页失败用例TOP10所属测试计划跳转问题
This commit is contained in:
parent
0c61865515
commit
81f4f6952c
|
@ -25,7 +25,7 @@
|
||||||
<bug-count-card class="track-card"/>
|
<bug-count-card class="track-card"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<ms-failure-test-case-list class="track-card"/>
|
<ms-failure-test-case-list class="track-card" @redirectPage="redirectPage"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ import BugCountCard from "@/business/components/track/home/components/BugCountCa
|
||||||
import ReviewList from "@/business/components/track/home/components/ReviewList";
|
import ReviewList from "@/business/components/track/home/components/ReviewList";
|
||||||
import MsRunningTaskList from "@/business/components/track/home/components/RunningTaskList";
|
import MsRunningTaskList from "@/business/components/track/home/components/RunningTaskList";
|
||||||
import MsFailureTestCaseList from "@/business/components/api/homepage/components/FailureTestCaseList";
|
import MsFailureTestCaseList from "@/business/components/api/homepage/components/FailureTestCaseList";
|
||||||
import {getCurrentProjectID} from "@/common/js/utils";
|
import {getCurrentProjectID, getUUID} from "@/common/js/utils";
|
||||||
|
|
||||||
require('echarts/lib/component/legend');
|
require('echarts/lib/component/legend');
|
||||||
export default {
|
export default {
|
||||||
|
@ -161,18 +161,26 @@ export default {
|
||||||
};
|
};
|
||||||
this.caseOption = option;
|
this.caseOption = option;
|
||||||
},
|
},
|
||||||
redirectPage(page, dataType, selectType) {
|
redirectPage(page, dataType, selectType, title) {
|
||||||
//test_plan 页面跳转
|
//api页面跳转
|
||||||
// this.$router.push('/track/plan/view/'+selectType);
|
//传入UUID是为了进行页面重新加载判断
|
||||||
|
let uuid = getUUID();
|
||||||
switch (page) {
|
switch (page) {
|
||||||
case "case":
|
case "api":
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'testCase',
|
name: 'ApiDefinition',
|
||||||
params: {
|
params: {redirectID: uuid, dataType: dataType, dataSelectRange: selectType}
|
||||||
dataType: dataType, dataSelectRange: selectType, projectId: this.projectId
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case "scenario":
|
||||||
|
this.$router.push({
|
||||||
|
name: 'ApiAutomation',
|
||||||
|
params: {redirectID: uuid, dataType: dataType, dataSelectRange: selectType}
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
case "testPlanEdit":
|
||||||
|
this.$router.push('/track/plan/view/' + selectType)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue