|
|
@@ -264,7 +264,9 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
else if(item.text==='生成报告'){
|
|
|
- if(this.dto.status==0) return this.$showToast('问卷未完成,全部团队人员作答后才能生成报告')
|
|
|
+ if(this.dto.status==0) return this.$showToast('问卷未完成,全部团队人员作答后才能生成报告')
|
|
|
+ this.createReport({teamQuestionnaireId:this.dto.teamQuestionnaireId})
|
|
|
+ this.show = false;
|
|
|
|
|
|
}
|
|
|
else if(item.text==='发送报告'){
|
|
|
@@ -285,7 +287,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
createReport(item){
|
|
|
-
|
|
|
+ this.$api.get(`/core/team/questionnaire/genReport/${item.teamQuestionnaireId}`).then(({data:res})=>{
|
|
|
+ if(res.code !== 0) return this.$showToast(res.msg)
|
|
|
+ this.show = false;
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'/pagesHome/reportResult'
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
sendReport(item){
|
|
|
|