|
|
@@ -267,20 +267,20 @@
|
|
|
</el-form-item>
|
|
|
</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:courseWatchLog:export']"-->
|
|
|
-<!-- >导出</el-button>-->
|
|
|
-<!-- </el-col>-->
|
|
|
-<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
|
|
|
-<!-- </el-row>-->
|
|
|
+ <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="handleExport1"
|
|
|
+ v-hasPermi="['course:courseWatchLog:export']"
|
|
|
+ >导出</el-button>
|
|
|
+ </el-col>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ </el-row>
|
|
|
|
|
|
<el-tabs type="card" v-model="activeName" @tab-click="handleClickX">
|
|
|
<el-tab-pane label="全部" name="00"></el-tab-pane>
|
|
|
@@ -464,7 +464,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { deptListCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog } from "@/api/course/courseWatchLog";
|
|
|
+import {
|
|
|
+ deptListCourseWatchLog,
|
|
|
+ getCourseWatchLog,
|
|
|
+ delCourseWatchLog,
|
|
|
+ addCourseWatchLog,
|
|
|
+ updateCourseWatchLog,
|
|
|
+ exportCourseWatchLog,
|
|
|
+ statisticsExport
|
|
|
+} from "@/api/course/courseWatchLog";
|
|
|
import {courseList, myListCourseRedPacketLog, videoList} from '@/api/course/courseRedPacketLog'
|
|
|
import {myListLogs} from "@/api/course/courseAnswerlogs";
|
|
|
import { getCompanyUserListLikeName } from "@/api/company/companyUser";
|
|
|
@@ -886,7 +894,26 @@ export default {
|
|
|
}
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
-
|
|
|
+ handleExport1() {
|
|
|
+ if (this.isEmptyArray(this.createTimeText) &&
|
|
|
+ this.isEmptyArray(this.updateTimeText) &&
|
|
|
+ this.isEmptyArray(this.scheduleTimeText)) {
|
|
|
+ this.$message.warning('请选择创建时间或营期时间或最新更新时间');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ const queryParams = this.queryParams;
|
|
|
+ this.$confirm('是否确认导出所有短链课程看课记录数据项?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ this.exportLoading = true;
|
|
|
+ return exportCourseWatchLog(queryParams);
|
|
|
+ }).then(response => {
|
|
|
+ this.download(response.msg);
|
|
|
+ this.exportLoading = false;
|
|
|
+ }).catch(() => {});
|
|
|
+ },
|
|
|
openAnswerLogFun(row) {
|
|
|
this.openAnswerLog = true;
|
|
|
this.answerLogQueryParams.watchLogId = row.logId;
|