mo 2 年之前
父节点
当前提交
ef91828494
共有 2 个文件被更改,包括 78 次插入9 次删除
  1. 76 7
      src/views/reportForm/index.vue
  2. 2 2
      vue.config.js

+ 76 - 7
src/views/reportForm/index.vue

@@ -82,12 +82,7 @@
                 :value="item.id"
               ></el-option>
             </select-all>
-            <!-- <el-button
-              style="margin-left: 10px"
-              type="primary"
-              @click="exportMusicTeamNum"
-              >导出</el-button
-            > -->
+
             <ExportChiose
               style="margin-left: 10px"
               ExportEnum="MUSIC_GROUP_NORMAL_STUDENT_NUM"
@@ -208,6 +203,53 @@
               :flag="!this.trainOrganId"
             />
           </div>
+          <!-- 老师使用云教练数据
+ -->
+
+          <div
+            class="m-wrap"
+            v-permission="'export/teacherCloudTrainingList'"
+          >
+            <div class="title">老师使用云教练数据:</div>
+            <select-all
+              v-model.trim="trainTeacherOrganId"
+              class="organSelect"
+              style="width: 100%"
+              filterable
+              multiple
+              placeholder="请选择分部"
+              clearable
+
+            >
+              <el-option
+                v-for="(item, index) in selects.branchs"
+                :key="index"
+                :label="item.name"
+                :value="item.id"
+
+              ></el-option>
+            </select-all>
+            <el-date-picker
+              v-model.trim="trainTeacherTimer"
+              style="width: 360px; margin-left: 15px"
+              type="daterange"
+              value-format="yyyy-MM-dd"
+              range-separator="至"
+              start-placeholder="开始日期"
+              end-placeholder="结束日期"
+              :picker-options="{
+                firstDayOfWeek: 1
+              }"
+            ></el-date-picker>
+            <el-button
+              style="margin-left: 10px"
+              type="primary"
+              @click="exportTeacherTrain"
+              >导出</el-button
+            >
+
+          </div>
+          <!--  -->
         </el-collapse-item>
         <el-collapse-item
           name="2"
@@ -1110,7 +1152,10 @@ export default {
           .set("date", 1)
           .format("YYYY-MM-DD"),
         dayjs().format("YYYY-MM-DD")
-      ]
+      ],
+      trainTeacherOrganId:[],
+trainTeacherTimer:[]
+
     };
   },
   mounted() {
@@ -1543,6 +1588,30 @@ export default {
         "您确定导出问卷调查?"
       );
     },
+
+    exportTeacherTrain(){
+      if(this.trainTeacherTimer.length<1){
+        this.$message.error('请选择时间段')
+        return
+      }
+
+      if(  this.trainTeacherOrganId.length <1){
+        this.$message.error('请选择分部')
+        return
+      }
+      let startTime =this.trainTeacherTimer[0] || null;
+      let endTime = this.trainTeacherTimer[1] || null
+      Export(
+        this,
+        {
+          url: "/api-web/export/teacherCloudTrainingList",
+          fileName: "老师使用云教练数据.xls",
+          method: "post",
+          params: qs.stringify( { organIdList:this.trainTeacherOrganId.join(','),startTime, endTime})
+        },
+        "您确定导出老师使用云教练数据?"
+      );
+    },
     // exportLeBao() {
     //   let endTime, startTime;
     //   if (this.leBaoTimer && this.leBaoTimer.length > 1) {

+ 2 - 2
vue.config.js

@@ -15,13 +15,13 @@ const name = defaultSettings.title || "管乐迷后台管理系统"; // page tit
 // const port = process.env.port || process.env.npm_config_port || 9528 // dev port
 // http://47.99.212.176:8000
 // //  https://online.dayaedu.com
-let target = "https://online.dayaedu.com"; //线上
+// let target = "https://online.dayaedu.com"; //线上
 // let target = 'http://192.168.3.251:8000' // 何国威
 // let target = 'http://192.168.3.20:8000' //邹璇
 // let target = 'http://192.168.3.161:8000' //勇哥
 // let target = 'http://192.168.3.146:8000' //王昭
 // let target = 'http://dev.dayaedu.com' // 开发环境
-// let target = "https://test.dayaedu.com"; //测试环境
+let target = "https://test.dayaedu.com"; //测试环境
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {
   /**