|
|
@@ -35,6 +35,17 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="档期" prop="qwSopId">
|
|
|
+ <el-select filterable v-model="queryParams.qwSopId" placeholder="请选择档期" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="item in scheduleList"
|
|
|
+ :key="item.qwSopId"
|
|
|
+ :label="item.qwSopName"
|
|
|
+ :value="item.qwSopId"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="小节" prop="videoId">
|
|
|
<el-select filterable v-model="queryParams.videoId" placeholder="请选择小节" clearable size="small">
|
|
|
<el-option
|
|
|
@@ -141,12 +152,14 @@ import {
|
|
|
} from '@/api/course/qw/courseWatchLog'
|
|
|
import { courseList,videoList } from '@/api/course/courseRedPacketLog'
|
|
|
import {getCompanyList} from "@/api/company/company";
|
|
|
+ import { fetchScheduleList } from "@/api/course/qw/courseWatchLog";
|
|
|
export default {
|
|
|
name: "CourseWatchLog",
|
|
|
components: {SelectTree},
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
+ scheduleList: [], // 档期列表,结构为[{qwSopId: 'xxx', qwSopName: 'xxx'}]
|
|
|
signProjectName:"",
|
|
|
companys:[],
|
|
|
activeName:"00",
|
|
|
@@ -188,6 +201,7 @@ export default {
|
|
|
companyUserId: null,
|
|
|
companyId: null,
|
|
|
courseId: null,
|
|
|
+ qwSopId: null, // 档期ID
|
|
|
sTime:null,
|
|
|
eTime:null,
|
|
|
scheduleStartTime: null,
|
|
|
@@ -233,8 +247,16 @@ export default {
|
|
|
this.logTypeOptions = response.data;
|
|
|
});
|
|
|
this.initCompanyData();
|
|
|
+ // 获取档期列表
|
|
|
+ this.getScheduleList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取档期列表
|
|
|
+ getScheduleList() {
|
|
|
+ fetchScheduleList({}).then(response => {
|
|
|
+ this.scheduleList = response.rows; // rows包含[{qwSopId: 'xxx', qwSopName: 'xxx'}]格式的数据
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
handleStatisExport(){
|
|
|
if(this.selectedCompanyList != null && this.selectedCompanyList.length > 0) {
|
|
|
@@ -370,6 +392,7 @@ export default {
|
|
|
this.queryParams.eTime = null;
|
|
|
this.queryParams.scheduleStartTime = null;
|
|
|
this.queryParams.scheduleEndTime = null;
|
|
|
+ this.queryParams.qwSopId = null; // 重置档期选择
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
// 多选框选中数据
|