|
@@ -170,7 +170,13 @@ import load from "@/utils/loading";
|
|
|
import { getTeacher, getEmployeeOrgan } from "@/api/buildTeam";
|
|
|
import { queryTeacherAttendances } from "@/api/recodeManager";
|
|
|
import { courseType } from '@/utils/searchArray'
|
|
|
-
|
|
|
+let nowTime = new Date();
|
|
|
+nowTime =
|
|
|
+ nowTime.getFullYear() +
|
|
|
+ "-" +
|
|
|
+ (nowTime.getMonth() + 1) +
|
|
|
+ "-" +
|
|
|
+ nowTime.getDate();
|
|
|
export default {
|
|
|
components: { pagination },
|
|
|
data () {
|
|
@@ -181,7 +187,7 @@ export default {
|
|
|
signInStatus: null,
|
|
|
signOutStatus: null
|
|
|
},
|
|
|
- courseTime: [],
|
|
|
+ courseTime: [nowTime, nowTime],
|
|
|
courseType,
|
|
|
// teacherList: [],
|
|
|
tableList: [],
|
|
@@ -228,8 +234,8 @@ export default {
|
|
|
obj.courseStartDate = this.courseTime[0]
|
|
|
obj.courseEndDate = this.courseTime[1]
|
|
|
} else {
|
|
|
- obj.courseStartDate = null
|
|
|
- obj.courseEndDate = null
|
|
|
+ this.$message.error('请选择搜索时间')
|
|
|
+ return
|
|
|
}
|
|
|
queryTeacherAttendances(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -249,7 +255,7 @@ export default {
|
|
|
signInStatus: null,
|
|
|
signOutStatus: null
|
|
|
}
|
|
|
- this.courseTime = [];
|
|
|
+ this.courseTime = [nowTime, nowTime];
|
|
|
this.$refs['searchForm'].resetFields();
|
|
|
this.search()
|
|
|
}
|