| | |
| | | </div> |
| | | |
| | | <!-- 问卷/语音详情 --> |
| | | <div class="content-container" v-if="templateData.length > 0"> |
| | | <div |
| | | class="content-container" |
| | | v-if="currentRecord.templateType" |
| | | v-loading="contentLoading" |
| | | element-loading-text="详情加载中..." |
| | | > |
| | | <el-tabs v-model="activeName" type="border-card"> |
| | | <!-- 问卷随访详情 --> |
| | | <el-tab-pane name="wj" v-if="currentRecord.templateType === 2"> |
| | |
| | | |
| | | // 加载状态 |
| | | loading: false, |
| | | // 问卷/语音详情加载状态 |
| | | contentLoading: false, |
| | | |
| | | // 权限控制 |
| | | hasQualityPermission: false |
| | |
| | | |
| | | // 加载问卷数据 |
| | | async loadQuestionnaireData() { |
| | | this.contentLoading = true; |
| | | try { |
| | | // 这里需要根据实际情况调用接口获取问卷数据 |
| | | // 如果recordData中已经包含了问卷数据,可以直接使用 |
| | |
| | | } |
| | | } catch (error) { |
| | | console.error('加载问卷数据失败:', error); |
| | | } finally { |
| | | this.contentLoading = false; |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | // 加载语音数据 |
| | | async loadVoiceData() { |
| | | this.contentLoading = true; |
| | | try { |
| | | if (this.currentRecord.taskid && this.currentRecord.patid) { |
| | | const params = { |
| | |
| | | } |
| | | } catch (error) { |
| | | console.error('加载语音数据失败:', error); |
| | | } finally { |
| | | this.contentLoading = false; |
| | | } |
| | | }, |
| | | |