|
|
@@ -241,9 +241,12 @@ export default {
|
|
|
//pro1564487183259_task1564487274060
|
|
|
//pro1564487183259pro1564487183259_task1564487274060_rep1564488510500
|
|
|
this.showLoading()
|
|
|
+ console.log('start')
|
|
|
+ console.log(this.projectId)
|
|
|
+ console.log(this.taskId)
|
|
|
+ console.log('end')
|
|
|
if (this.taskId == null) {
|
|
|
Http.get(Apis.REPORT.GET_PROJECT_REPORT.replace('{projectId}', this.projectId).replace('{reportId}', this.reportId)).then((res) => {
|
|
|
-
|
|
|
this.report.name = res.crowdReportVO.name
|
|
|
this.report.crowdTestTaskId = res.crowdReportVO.crowdTestTaskId
|
|
|
this.report.scope = res.crowdReportVO.scope
|
|
|
@@ -254,9 +257,10 @@ export default {
|
|
|
this.report.conclusion = res.crowdReportVO.conclusion
|
|
|
this.report.target = res.crowdReportVO.target
|
|
|
this.hideLoading()
|
|
|
- notify('success', '修改成功')
|
|
|
+ //notify('success', '修改成功')
|
|
|
}).catch((error) => {
|
|
|
- notify('error', '修改失败:' + error.data)
|
|
|
+ this.hideLoading()
|
|
|
+ notify('error', '打开报告失败:' + error.data)
|
|
|
})
|
|
|
} else {
|
|
|
Http.get(Apis.REPORT.GET_TASK_REPORT.replace('{projectId}', this.projectId).replace('{taskId}', this.taskId).replace('{reportId}', this.reportId)).then((res) => {
|
|
|
@@ -271,9 +275,9 @@ export default {
|
|
|
this.report.conclusion = res.crowdReportVO.conclusion
|
|
|
this.report.target = res.crowdReportVO.target
|
|
|
this.hideLoading()
|
|
|
- notify('success', '修改成功')
|
|
|
}).catch((error) => {
|
|
|
- notify('error', '修改失败:' + error.data)
|
|
|
+ this.hideLoading()
|
|
|
+ notify('error', '打开报告失败:' + error.data)
|
|
|
})
|
|
|
}
|
|
|
},
|