Przeglądaj źródła

恒春来,企微进线统计增加重粉数、企微看课统计导出增加消耗红包金额

cgp 13 godzin temu
rodzic
commit
fc17d64feb

+ 8 - 0
src/api/course/qw/courseWatchLog.js

@@ -142,4 +142,12 @@ export function getSignProjectName() {
     method: 'get'
   })
 }
+// 获取档期列表
+export function fetchScheduleList(query) {
+  return request({
+    url: '/qw/course/courseWatchLog/fetchScheduleList',
+    method: 'get',
+    params: query
+  })
+}
 

+ 23 - 0
src/views/course/courseWatchLog/qw/statistics.vue

@@ -35,6 +35,17 @@
           />
         </el-select>
       </el-form-item>
+
+      <el-form-item label="档期" prop="qwSopId">
+        <el-select filterable v-model="queryParams.qwSopId" placeholder="请选择档期" clearable size="small">
+          <el-option
+            v-for="item in scheduleList"
+            :key="item.qwSopId"
+            :label="item.qwSopName"
+            :value="item.qwSopId"
+          />
+        </el-select>
+      </el-form-item>
       <el-form-item label="小节" prop="videoId">
         <el-select filterable  v-model="queryParams.videoId" placeholder="请选择小节"  clearable size="small">
           <el-option
@@ -141,12 +152,14 @@ import {
 } from '@/api/course/qw/courseWatchLog'
 import { courseList,videoList } from '@/api/course/courseRedPacketLog'
 import {getCompanyList} from "@/api/company/company";
+  import { fetchScheduleList } from "@/api/course/qw/courseWatchLog";
 export default {
   name: "CourseWatchLog",
     components: {SelectTree},
 
   data() {
     return {
+      scheduleList: [], // 档期列表,结构为[{qwSopId: 'xxx', qwSopName: 'xxx'}]
       signProjectName:"",
       companys:[],
       activeName:"00",
@@ -188,6 +201,7 @@ export default {
         companyUserId: null,
         companyId: null,
         courseId: null,
+        qwSopId: null, // 档期ID
         sTime:null,
         eTime:null,
         scheduleStartTime: null,
@@ -233,8 +247,16 @@ export default {
       this.logTypeOptions = response.data;
     });
     this.initCompanyData();
+    // 获取档期列表
+    this.getScheduleList();
   },
   methods: {
+    // 获取档期列表
+    getScheduleList() {
+      fetchScheduleList({}).then(response => {
+        this.scheduleList = response.rows; // rows包含[{qwSopId: 'xxx', qwSopName: 'xxx'}]格式的数据
+      });
+    },
 
     handleStatisExport(){
       if(this.selectedCompanyList != null && this.selectedCompanyList.length > 0) {
@@ -370,6 +392,7 @@ export default {
       this.queryParams.eTime = null;
       this.queryParams.scheduleStartTime = null;
       this.queryParams.scheduleEndTime = null;
+      this.queryParams.qwSopId = null; // 重置档期选择
       this.handleQuery();
     },
     // 多选框选中数据