mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
考勤记录
This commit is contained in:
parent
90356eae88
commit
d8f855c4f7
@ -0,0 +1,83 @@
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>查询条件</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入班组名称"
|
||||
v-model="attendanceLogManageInfo.conditions.classesName" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入部门名称"
|
||||
v-model="attendanceLogManageInfo.conditions.departmentName" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" placeholder="请选择打卡时间" v-model="attendanceLogManageInfo.conditions.date"
|
||||
class=" form-control queryDate">
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm"
|
||||
v-on:click="_queryMonthAttendanceMethod()">
|
||||
<i class="glyphicon glyphicon-search"></i> 查询
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>考勤记录</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">部门名称</th>
|
||||
<th class="text-center">员工名称</th>
|
||||
<th class="text-center">员工ID</th>
|
||||
<th class="text-center">考勤时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="attendance in attendanceLogManageInfo.attendances">
|
||||
<td class="text-center">{{attendance.departmentName}}</td>
|
||||
<td class="text-center">{{attendance.staffName}}</td>
|
||||
<td class="text-center">{{attendance.staffId}}</td>
|
||||
<td class="text-center">{{attendance.clockTime}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,79 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
attendanceLogManageInfo: {
|
||||
attendances: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
classesId: '',
|
||||
conditions: {
|
||||
classesName: '',
|
||||
departmentName: '',
|
||||
date: vc.dateFormat(new Date())
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._listAttendanceLogs(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
vc.initDate('queryDate',function(value){
|
||||
$that.attendanceLogManageInfo.conditions.date = value;
|
||||
});
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('attendanceLogManage', 'listAttendanceLog', function (_param) {
|
||||
vc.component._listAttendanceLogs(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listAttendanceLogs(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAttendanceLogs: function (_page, _rows) {
|
||||
|
||||
vc.component.attendanceLogManageInfo.conditions.page = _page;
|
||||
vc.component.attendanceLogManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.attendanceLogManageInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/attendanceClass/queryAttendanceLog',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _attendanceLogManageInfo = JSON.parse(json);
|
||||
vc.component.attendanceLogManageInfo.total = _attendanceLogManageInfo.total;
|
||||
vc.component.attendanceLogManageInfo.records = _attendanceLogManageInfo.records;
|
||||
vc.component.attendanceLogManageInfo.attendances = _attendanceLogManageInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.attendanceLogManageInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
_queryAttendanceLogMethod: function () {
|
||||
vc.component._listAttendanceLogs(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.attendanceLogManageInfo.moreCondition) {
|
||||
vc.component.attendanceLogManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.attendanceLogManageInfo.moreCondition = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
Loading…
Reference in New Issue
Block a user