Quellcode durchsuchen

Signed-off-by: yukangzhe <382985154@qq.com>

yukangzhe vor 3 Jahren
Ursprung
Commit
69ce7515fe
2 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  1. 2 2
      pages/makePiano/makePiano.js
  2. 0 2
      pages/makePiano/makePiano.wxml

+ 2 - 2
pages/makePiano/makePiano.js

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

+ 0 - 2
pages/makePiano/makePiano.wxml

@@ -60,9 +60,7 @@
             <image src="{{ item.collect == 1? '/images/cur-getTel.png' : '/images/getTel.png'}}"></image>
           </view>
         </view>
-        {{schoolIndex}}
         <view class="school-class-list" wx:if="{{schoolIndex == index}}">
-          {{item.items.length}}{{!item.items}}
           <view class="class-none" wx:if="{{(! item.items) ||  item.items.length == 0}}">该时间段未排课</view>
           <view class="class-list"  wx:for="{{ item.items}}" wx:key="cIndex" wx:for-index="cItem">
             <view class="class-box">