|
|
@@ -24,6 +24,17 @@
|
|
|
:return-leaf-only="false"
|
|
|
></select-tree>
|
|
|
</el-form-item>
|
|
|
+<!-- <el-form-item label="部门" prop="type">-->
|
|
|
+<!-- <TreeselectVue-->
|
|
|
+<!-- style="width: 220px"-->
|
|
|
+<!-- :clearable="false"-->
|
|
|
+<!-- v-model="queryParams.deptId"-->
|
|
|
+<!-- :options="deptOptions"-->
|
|
|
+<!-- clearable-->
|
|
|
+<!-- :show-count="true"-->
|
|
|
+<!-- placeholder="请选择归属部门"-->
|
|
|
+<!-- />-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
<el-form-item label="员工" prop="companyUserName">
|
|
|
<el-input
|
|
|
v-model="queryParams.companyUserName"
|
|
|
@@ -83,7 +94,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="创建时间" prop="createTime">
|
|
|
- <el-date-picker v-model="createTime" size="small" style="width: 220px" value-format="yyyy-MM-dd" type="daterange"
|
|
|
+ <el-date-picker v-model="createTime" size="small" style="width: 220px" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange"
|
|
|
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" @change="change"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
|
|
|
@@ -181,6 +192,7 @@
|
|
|
<script>
|
|
|
import { courseList,videoList,listCourseRedPacketLog, getCourseRedPacketLog, delCourseRedPacketLog, addCourseRedPacketLog, updateCourseRedPacketLog, exportCourseRedPacketLog } from "@/api/course/courseRedPacketLog";
|
|
|
import { getCompanyList } from "@/api/company/company";
|
|
|
+import {treeselect} from "../../../api/company/companyDept";
|
|
|
import SelectTree from '@/components/TreeSelect/index.vue'
|
|
|
import { getDeptData } from '@/api/system/employeeStats'
|
|
|
|
|
|
@@ -190,11 +202,10 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
selectedCompanyList: [],
|
|
|
- deptList: [],
|
|
|
companys:[],
|
|
|
- deptOptions:[],
|
|
|
+ deptList: [],
|
|
|
// 遮罩层
|
|
|
- loading: true,
|
|
|
+ loading: false,
|
|
|
// 导出遮罩层
|
|
|
exportLoading: false,
|
|
|
// 选中数组
|
|
|
@@ -247,7 +258,6 @@ export default {
|
|
|
this.deptList = response.data;
|
|
|
})
|
|
|
|
|
|
-
|
|
|
getCompanyList().then(response => {
|
|
|
this.companys = response.data;
|
|
|
});
|
|
|
@@ -255,15 +265,15 @@ export default {
|
|
|
this.courseLists = response.list;
|
|
|
});
|
|
|
|
|
|
- this.getList();
|
|
|
+ // this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
handleClick(tab, event) {
|
|
|
this.activeName=tab.name;
|
|
|
this.queryParams.status=tab.name
|
|
|
- console.log(this.queryParams.status)
|
|
|
this.getList();
|
|
|
},
|
|
|
+
|
|
|
/** 查询短链课程看课记录列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
@@ -275,8 +285,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
listCourseRedPacketLog(this.queryParams).then(response => {
|
|
|
- this.courseRedPacketLogList = response.rows;
|
|
|
- this.total = response.total;
|
|
|
+ console.log("response",response)
|
|
|
+ this.courseRedPacketLogList = response.data.list;
|
|
|
+ this.total = response.data.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|