|
@@ -24,9 +24,9 @@
|
|
|
<u-card :title="'学员信息(' + getStudentsNumber(1) + ')'" title-size="32" margin="0px 0px 10px 0px" :head-style="cardStyle">
|
|
|
<u-grid :col="3" slot="body" :border="false">
|
|
|
<u-grid-item v-for="(item, index) in classInfo.studentSignList" :key="index" :custom-style="gridCustomStyle" @click="goToStudentInfo(item)">
|
|
|
- <view class="class-student-col" :class="item.state ? 'student-active' : ''">
|
|
|
+ <view class="class-student-col">
|
|
|
{{item.name}}
|
|
|
- <u-icon name="bookmark" :color="mainColor" size="48"></u-icon>
|
|
|
+ <u-icon :name="item.state == 1 ? 'bookmark-fill' : 'bookmark'" :color="mainColor" size="48"></u-icon>
|
|
|
</view>
|
|
|
</u-grid-item>
|
|
|
</u-grid>
|
|
@@ -148,6 +148,7 @@
|
|
|
classId: '',
|
|
|
studentId: '',
|
|
|
studentName: '',
|
|
|
+ recordId: '',
|
|
|
classInfo: {
|
|
|
name: '',
|
|
|
classStartDate: '',
|
|
@@ -312,12 +313,13 @@
|
|
|
handleOtherClick(item) {
|
|
|
this.studentId = item.id
|
|
|
this.studentName = item.name
|
|
|
+ this.recordId = item.leaveRecordId
|
|
|
this.leaveOtherShow = true
|
|
|
},
|
|
|
// 病假知晓
|
|
|
handleEndClick() {
|
|
|
NET.request(API.leaveLessonsEndOk,{
|
|
|
- classId:parseInt(this.classId), studentId:parseInt(this.studentId)
|
|
|
+ recordId:parseInt(this.recordId), studentId:parseInt(this.studentId)
|
|
|
},'POST').then(res=> {
|
|
|
if(res.status == 10000) {
|
|
|
this.$refs.uTips.show({
|