优化不考情

This commit is contained in:
wuxw 2022-09-15 01:50:38 +08:00
parent 1338abd518
commit 420eccbc32
2 changed files with 20 additions and 2 deletions

View File

@ -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>

View File

@ -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);
}
}
});