From a3c088656445163c62e50dcfb0bb9311ba38b534 Mon Sep 17 00:00:00 2001 From: shidongli Date: Fri, 27 Dec 2024 12:30:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E5=BE=85?= =?UTF-8?q?=E5=8A=9E=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/followup/index.vue | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) 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) {