lex-xin 3 anni fa
parent
commit
28a4066d78

+ 1 - 1
src/views/reaplceMusicPlayer/answerList.vue

@@ -139,7 +139,7 @@ export default {
           url: '/api-web/questionnaireUserResult/export',
           fileName: '问答详情.xls',
           method: 'get',
-          params: { cooperationId: this.id }
+          params: { cooperationId: this.id, activeType: 'REPLACEMENT' }
         }, '您确定导出问答详情?')
       }
     }

+ 31 - 0
src/views/reportForm/index.vue

@@ -394,6 +394,28 @@
             >导出</el-button>
         </div>
       </div>
+      <el-divider></el-divider>
+      <div class="m-core">
+        <div class="m-wrap">
+          <div class="title">问卷调查:</div>
+          <el-select
+            v-model.trim="questionActiveType"
+            class="organSelect"
+            style="width: 100%"
+            filterable
+            placeholder="请选择导出类型"
+            clearable
+          >
+            <el-option label="云教练用户反馈" value="CLOUD_TEACHER_FEEDBACK" ></el-option>
+          </el-select>
+          <el-button
+            style="margin-left: 10px"
+            type="primary"
+            @click="exportQuestion"
+             v-if="$helpers.permission('questionnaireUserResult/export/report')"
+            >导出</el-button>
+        </div>
+      </div>
     </div>
   </div>
 </template>
@@ -429,6 +451,7 @@ export default {
       AccountDetailOrganId: [],
       AccountDetailTimer: [],
       trainOrganId: null,
+      questionActiveType: 'CLOUD_TEACHER_FEEDBACK'
     };
   },
   mounted() {
@@ -789,6 +812,14 @@ export default {
         "您确定导出云教练学员统计?"
       );
     },
+    exportQuestion() {
+      Export(this, {
+        url: '/api-web/questionnaireUserResult/export',
+        fileName: '问卷调查.xls',
+        method: 'get',
+        params: { activeType: this.questionActiveType }
+      }, '您确定导出问卷调查?')
+    },
     exportLeBao() {
       let endTime, startTime;
       if (this.leBaoTimer && this.leBaoTimer.length > 1) {