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() {
|
created() {
|
||||||
this.isReadOnly = !hasPermission('PROJECT_PERFORMANCE_REPORT:READ+DELETE');
|
this.isReadOnly = !hasPermission('PROJECT_PERFORMANCE_REPORT:READ+DELETE');
|
||||||
this.reportId = this.$route.path.split('/')[4];
|
this.reportId = this.$route.path.split('/')[4];
|
||||||
if (!this.reportId && this.perReportId) {
|
if (this.perReportId) {
|
||||||
this.reportId = this.perReportId;
|
this.reportId = this.perReportId;
|
||||||
}
|
}
|
||||||
this.getReport(this.reportId);
|
this.getReport(this.reportId);
|
||||||
|
@ -452,6 +452,9 @@ export default {
|
||||||
'$route'(to) {
|
'$route'(to) {
|
||||||
if (to.name === "perReportView") {
|
if (to.name === "perReportView") {
|
||||||
this.reportId = to.path.split('/')[4];
|
this.reportId = to.path.split('/')[4];
|
||||||
|
if (this.perReportId) {
|
||||||
|
this.reportId = this.perReportId;
|
||||||
|
}
|
||||||
this.getReport(this.reportId);
|
this.getReport(this.reportId);
|
||||||
this.initBreadcrumb((response) => {
|
this.initBreadcrumb((response) => {
|
||||||
this.initReportTimeInfo();
|
this.initReportTimeInfo();
|
||||||
|
|
|
@ -171,7 +171,6 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
this.data = [];
|
this.data = [];
|
||||||
this.instances = [];
|
this.instances = [];
|
||||||
this.id = this.$route.path.split('/')[4];
|
|
||||||
this.getResource();
|
this.getResource();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -350,13 +349,6 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$route'(to) {
|
|
||||||
if (to.name === "perReportView") {
|
|
||||||
this.id = to.path.split('/')[4];
|
|
||||||
this.init = false;
|
|
||||||
this.getResource();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
report: {
|
report: {
|
||||||
handler(val) {
|
handler(val) {
|
||||||
if (!val.status || !val.id) {
|
if (!val.status || !val.id) {
|
||||||
|
|
Loading…
Reference in New Issue