Parcourir la source

feat: 会员观看数据明细汇总需求调整

caoliqin il y a 3 jours
Parent
commit
89ff3fea43

+ 9 - 0
src/api/course/userWatchCourseStatistics.js

@@ -52,6 +52,15 @@ export function exportUserWatchCourseStatistics(query) {
   })
 }
 
+// 查询会员看课统计-按课程统计明细汇总
+export function listUserWatchCourseStatisticsTotal(query) {
+  return request({
+    url: '/course/userWatchCourseStatistics/listTotal',
+    method: 'get',
+    params: query
+  })
+}
+
 // 导出会员看课统计-按课程统计汇总
 export function exportUserWatchCourseStatisticsTotal(query) {
   return request({

+ 16 - 6
src/views/course/userWatchCourseTotalStatistics/index.vue

@@ -37,16 +37,26 @@
         />
       </el-form-item>
 
-      <el-form-item label="所属销售" prop="companyUserName">
+      <el-form-item label="视频小节" prop="videoTitle">
         <el-input
-          v-model="queryParams.companyUserName"
-          placeholder="请输入销售名称"
+          v-model="queryParams.videoTitle"
+          placeholder="请输入视频标题"
           clearable
           size="small"
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
 
+<!--      <el-form-item label="所属销售" prop="companyUserName">-->
+<!--        <el-input-->
+<!--          v-model="queryParams.companyUserName"-->
+<!--          placeholder="请输入销售名称"-->
+<!--          clearable-->
+<!--          size="small"-->
+<!--          @keyup.enter.native="handleQuery"-->
+<!--        />-->
+<!--      </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>
@@ -76,7 +86,7 @@
       <el-table-column label="课程名称" align="center" prop="courseName" />
       <el-table-column label="视频小节" align="center" prop="videoTitle" />
       <el-table-column label="销售公司" align="center" prop="companyName" />
-      <el-table-column label="所属销售" align="center" prop="companyUserName" />
+<!--      <el-table-column label="所属销售" align="center" prop="companyUserName" />-->
       <el-table-column label="新增会员" align="center" prop="newUserNum" />
       <el-table-column label="会员数量" align="center" prop="userNum" />
       <el-table-column label="观看人数" align="center" prop="watchNum" />
@@ -182,7 +192,7 @@
 </template>
 
 <script>
-import { listUserWatchCourseStatistics, getUserWatchCourseStatistics, delUserWatchCourseStatistics, addUserWatchCourseStatistics, updateUserWatchCourseStatistics, exportUserWatchCourseStatisticsTotal } from "@/api/course/userWatchCourseStatistics";
+import { listUserWatchCourseStatisticsTotal, getUserWatchCourseStatistics, delUserWatchCourseStatistics, addUserWatchCourseStatistics, updateUserWatchCourseStatistics, exportUserWatchCourseStatisticsTotal } from "@/api/course/userWatchCourseStatistics";
 
 export default {
   name: "UserWatchCourseStatistics",
@@ -249,7 +259,7 @@ export default {
     /** 查询会员看课统计-按课程统计列表 */
     getList() {
       this.loading = true;
-      listUserWatchCourseStatistics(this.queryParams).then(response => {
+      listUserWatchCourseStatisticsTotal(this.queryParams).then(response => {
         this.userWatchCourseStatisticsList = response.rows;
         this.total = response.total;
         this.loading = false;