|
@@ -4,7 +4,7 @@
|
|
@head-click="getSignInList">
|
|
@head-click="getSignInList">
|
|
<view class="signIn-box" slot="body">
|
|
<view class="signIn-box" slot="body">
|
|
<view class="signIn-col" v-for="(item, index) in classInfo.signInList" :key="index">
|
|
<view class="signIn-col" v-for="(item, index) in classInfo.signInList" :key="index">
|
|
- <u-icon name="bookmark" color="#666666" size="64" v-if="item.status"></u-icon>
|
|
|
|
|
|
+ <u-icon name="bookmark" color="#666666" size="64" v-if="!item.status"></u-icon>
|
|
<u-icon name="bookmark-fill" :color="mainColor" size="64" v-else></u-icon>
|
|
<u-icon name="bookmark-fill" :color="mainColor" size="64" v-else></u-icon>
|
|
<view class="signIn-date">{{item.date}}</view>
|
|
<view class="signIn-date">{{item.date}}</view>
|
|
</view>
|
|
</view>
|
|
@@ -82,13 +82,13 @@
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- NET.request(API.getLeaveList, {
|
|
|
|
|
|
+ NET.request(API.getAllLeaveList, {
|
|
id: this.classId
|
|
id: this.classId
|
|
}, 'POST').then(res => {
|
|
}, 'POST').then(res => {
|
|
- this.availableList = res.data.filter(site => site.type == 1).map(site => {
|
|
|
|
|
|
+ this.availableList = res.data.filter(site => site.status == 0).map(site => {
|
|
return site.lastDate
|
|
return site.lastDate
|
|
})
|
|
})
|
|
- this.activeList = res.data.filter(site => site.type == 0).map(site => {
|
|
|
|
|
|
+ this.activeList = res.data.filter(site => site.status == 1).map(site => {
|
|
return site.lastDate
|
|
return site.lastDate
|
|
})
|
|
})
|
|
}).catch(error => {
|
|
}).catch(error => {
|