|
|
@@ -60,7 +60,7 @@
|
|
|
<el-table-column prop="totalAttendanceCount" label="总到课人数(去重)" width="140" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.totalAttendanceCount || 0 }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="totalCompleteCount" label="总完课人数" width="110" align="center">
|
|
|
+ <el-table-column prop="totalCompleteCount" label="总完课人数(去重)" width="110" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.totalCompleteCount || 0 }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="totalCompleteRate" label="总完课率" width="100" align="center">
|
|
|
@@ -69,7 +69,7 @@
|
|
|
<el-table-column prop="liveAttendanceCount" label="直播课人数(去重)" width="140" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.liveAttendanceCount || 0 }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="liveCompleteCount" label="直播完课人数" width="120" align="center">
|
|
|
+ <el-table-column prop="liveCompleteCount" label="直播完课人数(去重)" width="120" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.liveCompleteCount || 0 }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="liveCompleteRate" label="直播完课率" width="110" align="center">
|
|
|
@@ -167,6 +167,27 @@ export default {
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
+ // 验证公司ID不能为空
|
|
|
+ if (!this.queryParams.companyIds || this.queryParams.companyIds.length === 0) {
|
|
|
+ this.$message.warning('请选择公司');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 验证时间范围不能为空
|
|
|
+ if (!this.dateRange || this.dateRange.length !== 2) {
|
|
|
+ this.$message.warning('请选择时间范围');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 验证时间范围不能超过31天
|
|
|
+ const startDate = new Date(this.dateRange[0]);
|
|
|
+ const endDate = new Date(this.dateRange[1]);
|
|
|
+ const diffTime = Math.abs(endDate - startDate);
|
|
|
+ const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
|
|
+ if (diffDays > 31) {
|
|
|
+ this.$message.warning('时间范围不能超过31天');
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
|
},
|