|
@@ -13,13 +13,23 @@
|
|
|
<el-form-item label="添加时间" prop="createTime">
|
|
|
<el-date-picker v-model="createTime" size="small" style="width: 220px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" @change="change"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="公司名称" prop="companyId">
|
|
|
+ <el-select style="width: 220px" filterable v-model="queryParams.companyId" placeholder="请选择公司名" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="item in companys"
|
|
|
+ :key="item.companyId"
|
|
|
+ :label="item.companyName"
|
|
|
+ :value="item.companyId"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
- <el-table border v-loading="loading" :data="courseWatchLogList" @selection-change="handleSelectionChange" show-summary height="600">
|
|
|
+ <el-table border v-loading="loading" :data="courseWatchLogList" @selection-change="handleSelectionChange" show-summary >
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="企微员工名称" align="center" prop="qwUserName" />
|
|
|
|
|
@@ -125,7 +135,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
- <pagination-more
|
|
|
+ <pagination
|
|
|
v-show="total>0"
|
|
|
:total="total"
|
|
|
:page.sync="queryParams.pageNum"
|
|
@@ -139,10 +149,12 @@
|
|
|
<script>
|
|
|
import { listCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog,statisticsList,qwWatchLogStatisticsList,myQwWatchLogStatisticsList } from "@/api/course/qw/courseWatchLog";
|
|
|
import { courseList,videoList } from '@/api/course/courseRedPacketLog'
|
|
|
+import {getCompanyList} from "@/api/company/company";
|
|
|
export default {
|
|
|
name: "CourseWatchLog",
|
|
|
data() {
|
|
|
return {
|
|
|
+ companys:[],
|
|
|
activeName:"00",
|
|
|
createTime:null,
|
|
|
courseLists:[],
|
|
@@ -196,6 +208,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ getCompanyList().then(response => {
|
|
|
+ this.companys = response.data;
|
|
|
+ });
|
|
|
courseList().then(response => {
|
|
|
this.courseLists = response.list;
|
|
|
});
|