|
@ -40,15 +40,15 @@ |
|
|
<view class="h2" v-if="identity=='实操教练'">我的学员</view> |
|
|
<view class="h2" v-if="identity=='实操教练'">我的学员</view> |
|
|
<view class="statistics"> |
|
|
<view class="statistics"> |
|
|
<view class="statisticsItem"> |
|
|
<view class="statisticsItem"> |
|
|
<view class="val">{{count.accumulateCount}}</view> |
|
|
|
|
|
|
|
|
<view class="val">{{count.accumulateCount||0}}</view> |
|
|
<view class="lab">累计学员数量</view> |
|
|
<view class="lab">累计学员数量</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="statisticsItem"> |
|
|
<view class="statisticsItem"> |
|
|
<view class="val">{{count.todayCount}}</view> |
|
|
|
|
|
|
|
|
<view class="val">{{count.todayCount||0}}</view> |
|
|
<view class="lab">今日新增学员</view> |
|
|
<view class="lab">今日新增学员</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="statisticsItem" v-if="identity=='校长'"> |
|
|
<view class="statisticsItem" v-if="identity=='校长'"> |
|
|
<view class="val">{{count.todayDropoutCount}}</view> |
|
|
|
|
|
|
|
|
<view class="val">{{count.todayDropoutCount||0}}</view> |
|
|
<view class="lab">今日退学学员</view> |
|
|
<view class="lab">今日退学学员</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -153,18 +153,20 @@ |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
uni.hideTabBar(); |
|
|
uni.hideTabBar(); |
|
|
|
|
|
if(!this.$store.state.user.vuex_loginInfo.accessToken) return |
|
|
this.studentOwnerFn() |
|
|
this.studentOwnerFn() |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
|
this.params.schoolId = this.vuex_schoolId |
|
|
this.params.schoolId = this.vuex_schoolId |
|
|
this.studentRecordPageFn() |
|
|
|
|
|
this.schoolClass() |
|
|
|
|
|
this.needSignFn() |
|
|
|
|
|
let nowTime = new Date()*1 |
|
|
let nowTime = new Date()*1 |
|
|
// 一个月的时间戳 |
|
|
// 一个月的时间戳 |
|
|
const oneMonthMilliseconds = 30 * 24 * 60 * 60 * 1000; |
|
|
const oneMonthMilliseconds = 30 * 24 * 60 * 60 * 1000; |
|
|
this.minDate = parseInt( nowTime - oneMonthMilliseconds ) |
|
|
this.minDate = parseInt( nowTime - oneMonthMilliseconds ) |
|
|
this.maxDate = parseInt( nowTime + oneMonthMilliseconds ) |
|
|
this.maxDate = parseInt( nowTime + oneMonthMilliseconds ) |
|
|
|
|
|
if(!this.$store.state.user.vuex_loginInfo.accessToken) return |
|
|
|
|
|
this.studentRecordPageFn() |
|
|
|
|
|
this.schoolClass() |
|
|
|
|
|
this.needSignFn() |
|
|
}, |
|
|
}, |
|
|
onPullDownRefresh() { |
|
|
onPullDownRefresh() { |
|
|
this.studentRecordPageFn() |
|
|
this.studentRecordPageFn() |
|
|