yanym 5 anos atrás
pai
commit
54408f4ba5

+ 2 - 2
dorm-manager-wx/pages/teacher/pass/pass.wxml

@@ -53,8 +53,8 @@
           <view class="address">
             <image src="/images/clock.png" class="address-img"></image>
             <view class="create-time">{{item.openTime}}</view>
-            <view class="normal" wx:if='{{item.state==1}}'>正常外出</view>
-            <view class="late" wx:if='{{item.state==0}}'>晚归</view>
+            <view class="normal" wx:if='{{item.state==1}}'>进入</view>
+            <view class="normal" wx:if='{{item.state==2}}'>外出</view>
           </view>
           <view class="address">
             <image src="/images/dizhi.png" class="address-img"></image>

+ 8 - 2
dorm-manager-wx/pages/teacher/statistics/statistics.js

@@ -42,12 +42,16 @@ Page({
     this.setData({
       startDate: e.detail.value
     })
+    this.getStatisticsInfo();
+    this.getUnInInfo();
   },
 
   bindendDateChange: function(e) {
     this.setData({
       endDate: e.detail.value
     })
+    this.getStatisticsInfo();
+    this.getUnInInfo();
   },
 
   getCollegeInfo: function(e) {
@@ -142,7 +146,7 @@ Page({
         fontSize: 15
       },
       subtitle: {
-        name: that.data.totalInfo.attendance * 100 + '%',
+        name: that.data.totalInfo.attendance + '%',
         color: '#6282f4',
         fontSize: 18
       },
@@ -205,7 +209,9 @@ Page({
       page: 1,
       rows: 20
     }, 'post').then(res => {
-      weiguiList: res.data.data.data
+      that.setData({
+        weiguiList: res.data.data.data
+      })
     })
   },