mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化不考情
This commit is contained in:
parent
1338abd518
commit
420eccbc32
@ -23,7 +23,7 @@
|
||||
<div class="col-md-2 text-center border padding-lg labeling-strip" v-for="index in staffAttendanceManageInfo.maxDay" :key="index"
|
||||
:style="{'background-color': _getBgColor(index)}"
|
||||
style="border-radius: 5px;cursor:pointer">
|
||||
<div class="strip">
|
||||
<div class="strip" v-if="_getDayAttendance(index) && _getDayAttendance(index).state != '30000'">
|
||||
<span @click="_replenishCheckIn(index)">补考勤</span>
|
||||
</div>
|
||||
<div>{{staffAttendanceManageInfo.curYear}}-{{staffAttendanceManageInfo.curMonth}}-{{index}}</div>
|
||||
|
||||
@ -166,7 +166,25 @@
|
||||
});
|
||||
},
|
||||
_replenishCheckIn:function(_day){
|
||||
vc.emit('staffAttendanceReplenishCheckIn', 'openModel',$that._getAttendanceDetail(_day))
|
||||
let _details = $that._getAttendanceDetail(_day);
|
||||
if(!_details || _details.length<1){
|
||||
vc.toast('不存在 补考勤任务');
|
||||
return ;
|
||||
}
|
||||
|
||||
let _newDetails = [];
|
||||
_details.forEach(item=>{
|
||||
if(item.state == '10000'){
|
||||
_newDetails.push(item)
|
||||
}
|
||||
});
|
||||
|
||||
if(_newDetails.length<1){
|
||||
vc.toast('不存在 补考勤任务');
|
||||
return ;
|
||||
}
|
||||
|
||||
vc.emit('staffAttendanceReplenishCheckIn', 'openModel',_newDetails);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user