|
@@ -1,6 +1,15 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
|
|
|
+ <el-form-item label="用户" prop="userName">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.userName"
|
|
|
+ placeholder="请输入用户昵称"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="项目" prop="courseId">
|
|
|
<el-select filterable v-model="queryParams.project" placeholder="请选择项目" clearable size="small">
|
|
|
<el-option
|
|
@@ -52,20 +61,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:courseAnswerLog: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="handleExport"
|
|
|
+ v-hasPermi="['course:courseAnswerLog:export']"
|
|
|
+ >导出</el-button>
|
|
|
+ </el-col>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ </el-row>
|
|
|
|
|
|
<el-table border v-loading="loading" :data="logsList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
@@ -95,7 +104,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { myListLogs, getLogs, delLogs, addLogs, updateLogs, exportLogs } from "@/api/course/courseAnswerlogs";
|
|
|
+import { myListLogs, getLogs, delLogs, addLogs, updateLogs, exportMyLogs } from "@/api/course/courseAnswerlogs";
|
|
|
import { courseList, videoList } from '@/api/course/courseRedPacketLog'
|
|
|
import {allListTagGroup} from "@/api/qw/tagGroup";
|
|
|
import {listTag} from "@/api/qw/tag";
|
|
@@ -150,6 +159,7 @@ export default {
|
|
|
isRight: null,
|
|
|
sTime:null,
|
|
|
eTime:null,
|
|
|
+ userName: null,
|
|
|
},
|
|
|
//选择时间
|
|
|
createTime:null,
|
|
@@ -237,6 +247,7 @@ export default {
|
|
|
companyId: null,
|
|
|
sTime:null,
|
|
|
eTime:null,
|
|
|
+ userName: null,
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -312,13 +323,13 @@ export default {
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|
|
|
- this.$confirm('是否确认导出所有答题日志数据项?', "警告", {
|
|
|
+ this.$confirm('是否确认导出当前答题日志数据项?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
this.exportLoading = true;
|
|
|
- return exportLogs(queryParams);
|
|
|
+ return exportMyLogs(queryParams);
|
|
|
}).then(response => {
|
|
|
this.download(response.msg);
|
|
|
this.exportLoading = false;
|