Procházet zdrojové kódy

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

caoliqin před 2 dny
rodič
revize
66ec9a050c

+ 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({

+ 2 - 2
src/views/course/userWatchCourseTotalStatistics/index.vue

@@ -201,7 +201,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",
@@ -268,7 +268,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;