diff --git a/src/views/system/followup/index.vue b/src/views/system/followup/index.vue index 5f81635..8423c64 100644 --- a/src/views/system/followup/index.vue +++ b/src/views/system/followup/index.vue @@ -869,8 +869,9 @@ export default { async questionlook(row) { // this.totalScoredata=0, await selectPatientQuestionSubmit(row.taskExecuteRecordId).then((res) => { - this.questiondata = res.data; - this.questiondata.subjectResultList.forEach((e) => { + if(res.data){ + this.questiondata = res.data; + this.questiondata?.subjectResultList.forEach((e) => { // if(e.whetherScore==1){ // e.optionResults.forEach((el) => { // if(el.optionChooseSign=="0"){ @@ -904,6 +905,12 @@ export default { }); }); this.questionshow = true; + + }else{ + this.$message.error("未查到问卷提交信息"); + + } + }); }, audiohandleClose() { @@ -921,14 +928,23 @@ export default { // }).then(() => { getPhoneDialVideo(row.manageRouteNodeId).then((res) => { console.log(res, "res"); - this.audioshow = true; + + if(res.data.record){ + this.audioshow = true; this.audiourl = process.env.VUE_APP_BASE_API + res.data.phoneDialRecordVideo; - this.formlist = res.data.record; + this.formlist = res.data.record; setTimeout(() => { this.$refs.audioPlayer.load(); // 重新加载音频,以确保每次播放都是新的音频文件 // this.$refs.audioPlayer.play(); // }, 1000); }); + + }else{ + this.$message.error("未查到回放信息"); + + + } + }); }, Outbound(row) {