mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
加入补考勤功能
This commit is contained in:
parent
822bfe0052
commit
1338abd518
BIN
public/.DS_Store
vendored
BIN
public/.DS_Store
vendored
Binary file not shown.
@ -0,0 +1,43 @@
|
||||
<div id="staffAttendanceReplenishCheckInModel" class="modal fade" role="dialog" aria-labelledby="staffAttendanceReplenishCheckInModel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h3 class="modal-title" >
|
||||
<span><vc:i18n name="补考勤" namespace="staffAttendanceReplenishCheckIn"></vc:i18n></span>
|
||||
</h3>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label text-center">
|
||||
<span><vc:i18n name="考勤任务" namespace="staffAttendanceReplenishCheckIn"></vc:i18n></span>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="staffAttendanceReplenishCheckInInfo.detailId">
|
||||
<option selected disabled value="">{{vc.i18n('必填,请选择考勤任务','staffAttendanceReplenishCheckIn')}}</option>
|
||||
<option v-for="(item,index) in staffAttendanceReplenishCheckInInfo.details" :key="index"
|
||||
v-bind:value="item.detailId">{{item.specName}}({{item.value}})
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label text-center">
|
||||
<span><vc:i18n name="原因" namespace="addStaff"></vc:i18n></span>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea v-model="staffAttendanceReplenishCheckInInfo.remark"
|
||||
:placeholder="vc.i18n('必填,请填写原因','staffAttendanceReplenishCheckIn')" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<button class="btn btn-primary float-right" type="button" v-on:click="_doReplenishCheckIn()" > 补考勤</button>
|
||||
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal"><span><vc:i18n name="取消" namespace="addMenu"></vc:i18n></span></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,22 @@
|
||||
(function(vc) {
|
||||
vc.extends({
|
||||
data: {
|
||||
staffAttendanceReplenishCheckInInfo: {
|
||||
details: [],
|
||||
remark:'',
|
||||
detailId:'',
|
||||
}
|
||||
},
|
||||
_initMethod: function() {},
|
||||
_initEvent: function() {
|
||||
vc.on('staffAttendanceReplenishCheckIn', 'openModel', function(_param) {
|
||||
$('#staffAttendanceReplenishCheckInModel').modal('show');
|
||||
$that.staffAttendanceReplenishCheckInInfo.details = _param;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
})(window.vc);
|
||||
@ -915,4 +915,28 @@ nav-link nav-link-breadcrumb active:active {
|
||||
display: none;
|
||||
/* Chrome Safari */
|
||||
|
||||
}
|
||||
|
||||
.labeling-strip{
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.labeling-strip .strip{
|
||||
width: 50%;
|
||||
height: 50%;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: -12px;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.labeling-strip .strip span{
|
||||
background: #36A8FF;
|
||||
position: absolute;
|
||||
bottom: px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
height: 100;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
@ -19,8 +19,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-10 ">
|
||||
<div class="row bg-white border-radius padding">
|
||||
<div class="col-md-2 text-center border padding-lg" v-for="index in staffAttendanceManageInfo.maxDay" :key="index" :style="{'background-color': _getBgColor(index)}" style="border-radius: 5px;cursor:pointer">
|
||||
<div class="row bg-white border-radius padding ">
|
||||
<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">
|
||||
<span @click="_replenishCheckIn(index)">补考勤</span>
|
||||
</div>
|
||||
<div>{{staffAttendanceManageInfo.curYear}}-{{staffAttendanceManageInfo.curMonth}}-{{index}}</div>
|
||||
<div>状态:
|
||||
<span v-html="_getAttendanceState(index)"></span></div>
|
||||
@ -36,5 +41,7 @@
|
||||
|
||||
<vc:create path="frame/chooseOrgTree" callBackListener="staffAttendanceManage"></vc:create>
|
||||
<vc:create path="property/staffAttendanceDetail" callBackListener="staffAttendanceManage"></vc:create>
|
||||
<vc:create path="property/staffAttendanceReplenishCheckIn" callBackListener="staffAttendanceManage"></vc:create>
|
||||
|
||||
|
||||
</div>
|
||||
@ -163,7 +163,10 @@
|
||||
vc.emit('staffAttendanceDetail', 'openModel', {
|
||||
staffId: $that.staffAttendanceManageInfo.curStaffId,
|
||||
date: $that.staffAttendanceManageInfo.curYear + "-" + _curMonth + '-' + _day
|
||||
})
|
||||
});
|
||||
},
|
||||
_replenishCheckIn:function(_day){
|
||||
vc.emit('staffAttendanceReplenishCheckIn', 'openModel',$that._getAttendanceDetail(_day))
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user