|
|
@@ -1,6 +1,16 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
+ <el-form-item label="销售公司" prop="companyId">
|
|
|
+ <el-select filterable v-model="queryParams.companyId" clearable placeholder="请选择公司名" size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="item in companyList"
|
|
|
+ :key="item.companyId"
|
|
|
+ :label="item.companyName"
|
|
|
+ :value="item.companyId"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="课程" prop="courseId">
|
|
|
<el-select filterable v-model="queryParams.courseId" placeholder="请选择课程" clearable size="small" @change="courseChange(queryParams.courseId)">
|
|
|
<el-option
|
|
|
@@ -138,7 +148,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { listCourseWatchLog, getCourseWatchLog, delCourseWatchLog, addCourseWatchLog, updateCourseWatchLog, exportCourseWatchLog } from "@/api/course/courseWatchLog";
|
|
|
-import {allList}from "@/api/company/company";
|
|
|
+import { allList, getCompanyList } from '@/api/company/company'
|
|
|
import { courseList,videoList } from '@/api/course/courseRedPacketLog'
|
|
|
import {getUserList} from "@/api/company/companyUser";
|
|
|
import {getFsUserList} from "@/api/users/user";
|
|
|
@@ -153,6 +163,7 @@ export default {
|
|
|
courseLists:[],
|
|
|
videoList:[],
|
|
|
logTypeOptions:[],
|
|
|
+ companyList: [],
|
|
|
queryUserLoading: false,
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
@@ -212,7 +223,11 @@ export default {
|
|
|
courseList().then(response => {
|
|
|
this.courseLists = response.list;
|
|
|
});
|
|
|
- this.getList();
|
|
|
+
|
|
|
+ getCompanyList().then(response => {
|
|
|
+ this.companyList = response.data;
|
|
|
+ });
|
|
|
+
|
|
|
this.getDicts("sys_course_watch_log_type").then(response => {
|
|
|
this.logTypeOptions = response.data;
|
|
|
});
|
|
|
@@ -222,6 +237,9 @@ export default {
|
|
|
this.userSourceTypeOptions = response.data;
|
|
|
})
|
|
|
|
|
|
+ this.getList();
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
computed: {
|
|
|
sourceTypeModel: {
|