|
@@ -162,6 +162,7 @@ export default {
|
|
|
searchForm: {
|
|
|
timer: [],
|
|
|
search: null,
|
|
|
+ organIdList:null,
|
|
|
actualExercisesNumIsAchieve: null, // 训练次数
|
|
|
exercisesMessageNumIsAchieve: null, //评价
|
|
|
exercisesMessageTimelyNumIsAchieve: null, //及时评价
|
|
@@ -185,8 +186,10 @@ export default {
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
this.searchForm.timer = [];
|
|
|
- this.searchForm.timer.push(this.getNowDateAndMonday(nowTime));
|
|
|
+ this.searchForm.timer.push(this.getNowDateAndMonday(nowTime));
|
|
|
this.searchForm.timer.push(this.getNowDateAndSunday(nowTime));
|
|
|
+
|
|
|
+
|
|
|
getEmployeeOrgan().then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.organList = res.data;
|
|
@@ -212,7 +215,9 @@ export default {
|
|
|
exercisesMessageTimelyNumIsAchieve:
|
|
|
this.searchForm.exercisesMessageTimelyNumIsAchieve || null, //及时评价
|
|
|
exercisesReplyNumIsAchieve:
|
|
|
- this.searchForm.exercisesReplyNumIsAchieve || null // 提交次数
|
|
|
+ this.searchForm.exercisesReplyNumIsAchieve || null, // 提交次数
|
|
|
+ organIdList:this.searchForm.organIdList || null,
|
|
|
+ page: this.rules.page
|
|
|
};
|
|
|
if (this.searchForm.timer && this.searchForm.timer.length > 0) {
|
|
|
obj.monday = this.searchForm.timer[0];
|
|
@@ -300,6 +305,9 @@ export default {
|
|
|
getNowDateAndMonday(time) {
|
|
|
let timestamp = new Date(time.replace(/-/g, "/")).getTime();
|
|
|
let serverDate = new Date(time);
|
|
|
+ if(serverDate.getDay() == 0){
|
|
|
+ timestamp -=7* 24 * 60 * 60 * 1000
|
|
|
+ }
|
|
|
let mondayTime =
|
|
|
timestamp - (serverDate.getDay() - 1) * 24 * 60 * 60 * 1000;
|
|
|
|
|
@@ -365,7 +373,10 @@ export default {
|
|
|
rules,
|
|
|
searchForm,
|
|
|
title: row.studentName,
|
|
|
- extracurricularExercisesId: "yes"
|
|
|
+ extracurricularExercisesId: "yes",
|
|
|
+ startTime:this.searchForm.timer[0],
|
|
|
+ endTime:this.searchForm.timer[1]
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
}
|