|
@@ -11,7 +11,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="营期开始日期" prop="periodStartingTime">
|
|
|
+ <el-form-item label="营期日期" prop="periodStartingTime">
|
|
|
<el-date-picker clearable size="small"
|
|
|
v-model="queryParams.periodStartingTime"
|
|
|
type="date"
|
|
@@ -64,6 +64,17 @@
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ :loading="exportLoading"
|
|
|
+ @click="handleExport"
|
|
|
+ v-hasPermi="['course:userWatchCourseStatistics:export']"
|
|
|
+ >导出</el-button>
|
|
|
+ </el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
@@ -165,7 +176,7 @@
|
|
|
<el-form-item label="答题正确率" prop="answerRightRate">
|
|
|
<el-input v-model="form.answerRightRate" placeholder="请输入答题正确率" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="红包领取数量" prop="redPacketNum">
|
|
|
+ <el-form-item label="红包领取个数" prop="redPacketNum">
|
|
|
<el-input v-model="form.redPacketNum" placeholder="请输入红包领取数量" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="红包领取总额" prop="redPacketAmount">
|
|
@@ -181,7 +192,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listUserWatchCourseStatistics, getUserWatchCourseStatistics, delUserWatchCourseStatistics, addUserWatchCourseStatistics, updateUserWatchCourseStatistics, exportUserWatchCourseStatistics } from "@/api/course/userWatchCourseStatistics";
|
|
|
+import { listUserWatchCourseStatistics, getUserWatchCourseStatistics, delUserWatchCourseStatistics, addUserWatchCourseStatistics, updateUserWatchCourseStatistics, exportUserWatchCourseStatisticsTotal } from "@/api/course/userWatchCourseStatistics";
|
|
|
|
|
|
export default {
|
|
|
name: "UserWatchCourseStatistics",
|
|
@@ -357,13 +368,13 @@ export default {
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|
|
|
- this.$confirm('是否确认导出所有会员看课统计-按课程统计数据项?', "警告", {
|
|
|
+ this.$confirm('是否确认导出当前数据项?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
this.exportLoading = true;
|
|
|
- return exportUserWatchCourseStatistics(queryParams);
|
|
|
+ return exportUserWatchCourseStatisticsTotal(queryParams);
|
|
|
}).then(response => {
|
|
|
this.download(response.msg);
|
|
|
this.exportLoading = false;
|