|
@@ -437,11 +437,11 @@
|
|
|
<el-col :span="24">
|
|
|
<div
|
|
|
class="table"
|
|
|
- v-if="DayTeacherList.list !== undefined && DayTeacherList.list.length ==0"
|
|
|
+ v-if="DayTeacherList.list !== undefined && DayTeacherList.list.length ==0 || DayTeacherList.list.length >0 && DayTeacherList.status == 0"
|
|
|
>暂无数据!</div>
|
|
|
<div
|
|
|
class="table"
|
|
|
- v-if="DayTeacherList.list !== undefined && DayTeacherList.list.length >0"
|
|
|
+ v-if="DayTeacherList.list !== undefined && DayTeacherList.list.length >0 && DayTeacherList.status == 1"
|
|
|
>
|
|
|
<div class="table-head">
|
|
|
<div>头像</div>
|
|
@@ -477,7 +477,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 数据监控当天分页匹配知识点老师 -->
|
|
|
- <div v-if="this.DayActiveindex == true">
|
|
|
+ <div v-if="this.DayActiveindex == true && DayTeacherList.status == 1">
|
|
|
<el-pagination
|
|
|
background
|
|
|
@size-change="handleSizeDayChange1"
|
|
@@ -489,7 +489,7 @@
|
|
|
:hide-on-single-page="true"
|
|
|
></el-pagination>
|
|
|
</div>
|
|
|
- <div v-if="this.DayActiveindex == false">
|
|
|
+ <div v-if="this.DayActiveindex == false && DayTeacherList.status == 1">
|
|
|
<el-pagination
|
|
|
background
|
|
|
@size-change="handleSizeChange1"
|
|
@@ -1423,7 +1423,7 @@ export default {
|
|
|
grade: this.filters.OptionsValue,
|
|
|
subject: this.filters.gradesValue,
|
|
|
teacherName: this.filters1.inputValue,
|
|
|
- maxCreateTime: "",
|
|
|
+ maxCreateTime: this.dayFormatDate(),
|
|
|
oneDay: this.filters1.MaxtimeValue,
|
|
|
pageNo: this.filters1.pageNo,
|
|
|
pageSize: this.filters1.pageSize,
|
|
@@ -1613,7 +1613,7 @@ export default {
|
|
|
DayhandApor() {
|
|
|
this.DayActiveindex = false;
|
|
|
this.filters1.pageNo = 1;
|
|
|
- this.filters1.MaxtimeValue = "";
|
|
|
+ this.filters1.MaxtimeValue = this.dayFormatDate();
|
|
|
this.filters1.inputValue = "";
|
|
|
// this.showApporAways = false;
|
|
|
this.InfoWatchDay();
|
|
@@ -1622,7 +1622,7 @@ export default {
|
|
|
DayAutoApor() {
|
|
|
this.DayActiveindex = true;
|
|
|
// this.showApporAways = true;
|
|
|
- this.filters1.MaxtimeValue = "";
|
|
|
+ this.filters1.MaxtimeValue = this.dayFormatDate();
|
|
|
this.filters1.inputValue = "";
|
|
|
this.filters1.pageNo = 1;
|
|
|
this.InfoKonwTeacherDayApprvalList();
|
|
@@ -1633,7 +1633,7 @@ export default {
|
|
|
grade: this.filters.OptionsValue,
|
|
|
subject: this.filters.gradesValue,
|
|
|
teacherName: this.filters1.inputValue,
|
|
|
- maxCreateTime: "",
|
|
|
+ maxCreateTime: this.dayFormatDate(),
|
|
|
oneDay: this.filters1.MaxtimeValue,
|
|
|
pageNo: this.filters1.pageNo,
|
|
|
pageSize: this.filters1.pageSize,
|
|
@@ -1641,10 +1641,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
InfoWatchDayDatas() {
|
|
|
+
|
|
|
if (this.DayActiveindex == false) {
|
|
|
this.InfoWatchDay();
|
|
|
}
|
|
|
- if (this.Activeindex == true) {
|
|
|
+ if (this.DayActiveindex == true) {
|
|
|
this.InfoKonwTeacherDayApprvalList();
|
|
|
}
|
|
|
},
|
|
@@ -1870,6 +1871,22 @@ export default {
|
|
|
SearchValueAllot() {
|
|
|
this.SearchNoapporvalTeacherAllot();
|
|
|
},
|
|
|
+ //时间封装
|
|
|
+ formatDate: function() {
|
|
|
+ let date = new Date();
|
|
|
+ let y = date.getFullYear();
|
|
|
+ let MM = date.getMonth() + 1;
|
|
|
+ MM = MM < 10 ? "0" + MM : MM;
|
|
|
+ let d = date.getDate();
|
|
|
+ d = d < 10 ? "0" + d : d;
|
|
|
+ let h = date.getHours();
|
|
|
+ h = h < 10 ? "0" + h : h;
|
|
|
+ let m = date.getMinutes();
|
|
|
+ m = m < 10 ? "0" + m : m;
|
|
|
+ let s = date.getSeconds();
|
|
|
+ s = s < 10 ? "0" + s : s;
|
|
|
+ return y + "-" + MM + "-" + d + " " + h + ":" + m + ":" + s;
|
|
|
+ },
|
|
|
//年月日时间封装
|
|
|
dayFormatDate: function() {
|
|
|
let date = new Date();
|