WXL (wul)
5 天以前 70e4d2c33cc2e3af590d1816c0c703da341538cf
src/views/Satisfaction/configurationmyd/components/DetailsAnomaly.vue
@@ -114,7 +114,12 @@
    </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">
@@ -529,6 +534,8 @@
      // 加载状态
      loading: false,
      // 问卷/语音详情加载状态
      contentLoading: false,
      // 权限控制
      hasQualityPermission: false
@@ -737,6 +744,7 @@
    // 加载问卷数据
    async loadQuestionnaireData() {
      this.contentLoading = true;
      try {
        // 这里需要根据实际情况调用接口获取问卷数据
        // 如果recordData中已经包含了问卷数据,可以直接使用
@@ -770,6 +778,8 @@
        }
      } catch (error) {
        console.error('加载问卷数据失败:', error);
      } finally {
        this.contentLoading = false;
      }
    },
@@ -788,6 +798,7 @@
    // 加载语音数据
    async loadVoiceData() {
      this.contentLoading = true;
      try {
        if (this.currentRecord.taskid && this.currentRecord.patid) {
          const params = {
@@ -814,6 +825,8 @@
        }
      } catch (error) {
        console.error('加载语音数据失败:', error);
      } finally {
        this.contentLoading = false;
      }
    },