Bladeren bron

feat: 进线客户统计

xdd 1 maand geleden
bovenliggende
commit
efd7921568

+ 14 - 0
src/api/course/courseWatchLog.js

@@ -69,6 +69,13 @@ export function qwWatchLogStatisticsList(query) {
   })
 }
 
+export function qwWatchLogAllStatisticsList(query) {
+  return request({
+    url: '/qw/course/courseWatchLog/qwWatchLogAllStatisticsList',
+    method: 'get',
+    params: query
+  })
+}
 export function myQwWatchLogStatisticsList(query) {
   return request({
     url: '/course/courseWatchLog/myQwWatchLogStatisticsList',
@@ -76,3 +83,10 @@ export function myQwWatchLogStatisticsList(query) {
     params: query
   })
 }
+export function myQwWatchLogAllStatisticsList(query) {
+  return request({
+    url: '/qw/course/courseWatchLog/myQwWatchLogAllStatisticsList',
+    method: 'get',
+    params: query
+  })
+}

+ 1 - 1
src/views/course/courseUserStatistics/myStatistics.vue

@@ -464,7 +464,7 @@
 
     </el-table>
 
-    <pagination-more
+    <pagination
       v-show="total>0"
       :total="total"
       :page.sync="queryParams.pageNum"

+ 1 - 1
src/views/course/courseUserStatistics/qw/myStatistics.vue

@@ -439,7 +439,7 @@
 
     </el-table>
 
-    <pagination-more
+    <pagination
       v-show="total>0"
       :total="total"
       :page.sync="queryParams.pageNum"

+ 17 - 0
src/views/course/courseUserStatistics/qw/statistics.vue

@@ -13,6 +13,16 @@
       <el-form-item label="添加时间" prop="createTime">
         <el-date-picker v-model="createTime" size="small" style="width: 220px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" @change="change"></el-date-picker>
       </el-form-item>
+      <el-form-item label="公司名称" prop="companyId">
+        <el-select style="width: 220px" filterable v-model="queryParams.companyId" placeholder="请选择公司名" clearable size="small">
+          <el-option
+            v-for="item in companys"
+            :key="item.companyId"
+            :label="item.companyName"
+            :value="item.companyId"
+          />
+        </el-select>
+      </el-form-item>
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -453,10 +463,12 @@
 <script>
 import { listCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog,statisticsList,qwWatchLogStatisticsList,qwWatchLogAllStatisticsList } from "@/api/course/courseWatchLog";
 import { courseList,videoList } from '@/api/course/courseRedPacketLog'
+import {getCompanyList} from "@/api/company/company";
 export default {
   name: "CourseWatchLog",
   data() {
     return {
+      companys: [],
       activeName:"00",
       createTime:null,
       courseLists:[],
@@ -510,6 +522,11 @@ export default {
     };
   },
   created() {
+    getCompanyList().then(response => {
+      this.companys = response.data;
+      if(this.companys!=null&&this.companys.length>0){
+      }
+    });
     courseList().then(response => {
       this.courseLists = response.list;
     });