|
@@ -269,16 +269,14 @@ Page({
|
|
const urls = urlDef.urls;
|
|
const urls = urlDef.urls;
|
|
|
|
|
|
let sl = this.data.schoolList;
|
|
let sl = this.data.schoolList;
|
|
- let s = sl.filter(o => o.id == this.data.schoolList[this.data.schoolIndex].id)[0];
|
|
|
|
|
|
+ let s = sl.filter(o => o.id == sid)[0];
|
|
|
|
|
|
let w = this.data.weekList[this.data.curIndex];
|
|
let w = this.data.weekList[this.data.curIndex];
|
|
|
|
|
|
let date = w.ds
|
|
let date = w.ds
|
|
- let week = w.ws
|
|
|
|
- if(week == 0){
|
|
|
|
- week = 7
|
|
|
|
- }
|
|
|
|
- let params = { 'q.orgId': this.data.schoolList[this.data.schoolIndex].id, 'q.studentId': this.data.curStu.studentId, 'q.date': date, 'q.week': week, 'q.timeScope': this.data.timeScope }
|
|
|
|
|
|
+ let week = w.ws + 1;
|
|
|
|
+
|
|
|
|
+ let params = { 'q.orgId': sid, 'q.studentId': this.data.curStu.studentId, 'q.date': date, 'q.week': week, 'q.timeScope': this.data.timeScope }
|
|
// params['q.timeScope'] = ''; 时段
|
|
// params['q.timeScope'] = ''; 时段
|
|
util.apiPost(urls.query_school_attence, params).then(rs => {
|
|
util.apiPost(urls.query_school_attence, params).then(rs => {
|
|
s.items = rs
|
|
s.items = rs
|