fix(任务中心): 查看性能测试报告提示不存在
--bug=1009118 --user=lyh 【测试跟踪】测试计划,批量-并行,执行性能测试,任务中心 提示 测试报告不存在 https://www.tapd.cn/55049933/s/1084956
This commit is contained in:
parent
fbf3d1076b
commit
184d45a83e
|
@ -443,7 +443,7 @@ export default {
|
|||
created() {
|
||||
this.isReadOnly = !hasPermission('PROJECT_PERFORMANCE_REPORT:READ+DELETE');
|
||||
this.reportId = this.$route.path.split('/')[4];
|
||||
if (!this.reportId && this.perReportId) {
|
||||
if (this.perReportId) {
|
||||
this.reportId = this.perReportId;
|
||||
}
|
||||
this.getReport(this.reportId);
|
||||
|
@ -452,6 +452,9 @@ export default {
|
|||
'$route'(to) {
|
||||
if (to.name === "perReportView") {
|
||||
this.reportId = to.path.split('/')[4];
|
||||
if (this.perReportId) {
|
||||
this.reportId = this.perReportId;
|
||||
}
|
||||
this.getReport(this.reportId);
|
||||
this.initBreadcrumb((response) => {
|
||||
this.initReportTimeInfo();
|
||||
|
|
|
@ -171,7 +171,6 @@ export default {
|
|||
created() {
|
||||
this.data = [];
|
||||
this.instances = [];
|
||||
this.id = this.$route.path.split('/')[4];
|
||||
this.getResource();
|
||||
},
|
||||
methods: {
|
||||
|
@ -350,13 +349,6 @@ export default {
|
|||
},
|
||||
},
|
||||
watch: {
|
||||
'$route'(to) {
|
||||
if (to.name === "perReportView") {
|
||||
this.id = to.path.split('/')[4];
|
||||
this.init = false;
|
||||
this.getResource();
|
||||
}
|
||||
},
|
||||
report: {
|
||||
handler(val) {
|
||||
if (!val.status || !val.id) {
|
||||
|
|
Loading…
Reference in New Issue