|
@@ -77,11 +77,10 @@
|
|
|
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
|
+ <!-- <a-row :gutter="24">
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-item label="生成月报日期">
|
|
<a-form-item label="生成月报日期">
|
|
<a-month-picker format="YYYY-MM" placeholder="请输入生成月报日期" v-model="queryParam.nowDate" />
|
|
<a-month-picker format="YYYY-MM" placeholder="请输入生成月报日期" v-model="queryParam.nowDate" />
|
|
- <!-- <a-input placeholder="请输入生成月报日期" v-model="queryParam.nowDate"></a-input> -->
|
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
@@ -90,7 +89,7 @@
|
|
</span>
|
|
</span>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
- </a-row>
|
|
|
|
|
|
+ </a-row> -->
|
|
</a-form>
|
|
</a-form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -193,12 +192,12 @@
|
|
}, */
|
|
}, */
|
|
{
|
|
{
|
|
title: '日期',
|
|
title: '日期',
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
dataIndex: 'viewDate', fixed: 'left', width: 100
|
|
dataIndex: 'viewDate', fixed: 'left', width: 100
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '人员',
|
|
title: '人员',
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
dataIndex: 'realname', fixed: 'left', width: 100
|
|
dataIndex: 'realname', fixed: 'left', width: 100
|
|
},
|
|
},
|
|
// {
|
|
// {
|
|
@@ -213,7 +212,7 @@
|
|
// },
|
|
// },
|
|
{
|
|
{
|
|
title: '班次',
|
|
title: '班次',
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
fixed: 'left', width: 160,
|
|
fixed: 'left', width: 160,
|
|
scopedSlots: {
|
|
scopedSlots: {
|
|
customRender: 'realShiftTime'
|
|
customRender: 'realShiftTime'
|
|
@@ -226,13 +225,13 @@
|
|
// },
|
|
// },
|
|
{
|
|
{
|
|
title: '一级部门',
|
|
title: '一级部门',
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
dataIndex: 'oneDept'
|
|
dataIndex: 'oneDept'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '二级部门',
|
|
title: '二级部门',
|
|
- align: 'center',
|
|
|
|
- dataIndex: 'twoDept'
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
|
|
+ dataIndex: 'lastDept'
|
|
},
|
|
},
|
|
// {
|
|
// {
|
|
// title: '三级部门',
|
|
// title: '三级部门',
|
|
@@ -241,7 +240,7 @@
|
|
// },
|
|
// },
|
|
{
|
|
{
|
|
title: '最早',
|
|
title: '最早',
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
dataIndex: 'gotoTime',
|
|
dataIndex: 'gotoTime',
|
|
scopedSlots: {
|
|
scopedSlots: {
|
|
customRender: 'customTime'
|
|
customRender: 'customTime'
|
|
@@ -249,7 +248,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '最晚',
|
|
title: '最晚',
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
dataIndex: 'closingTime',
|
|
dataIndex: 'closingTime',
|
|
scopedSlots: {
|
|
scopedSlots: {
|
|
customRender: 'customTime'
|
|
customRender: 'customTime'
|
|
@@ -257,7 +256,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '上班1',
|
|
title: '上班1',
|
|
- align: "center",
|
|
|
|
|
|
+ align: "center",sorter: true,
|
|
dataIndex: 'oneTime',
|
|
dataIndex: 'oneTime',
|
|
scopedSlots: {
|
|
scopedSlots: {
|
|
customRender: 'customTime'
|
|
customRender: 'customTime'
|
|
@@ -265,14 +264,14 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '下班1',
|
|
title: '下班1',
|
|
- align: "center",
|
|
|
|
|
|
+ align: "center",sorter: true,
|
|
dataIndex: 'twoTime',
|
|
dataIndex: 'twoTime',
|
|
scopedSlots: {
|
|
scopedSlots: {
|
|
customRender: 'customTime'
|
|
customRender: 'customTime'
|
|
}
|
|
}
|
|
},{
|
|
},{
|
|
title: '上班2',
|
|
title: '上班2',
|
|
- align: "center",
|
|
|
|
|
|
+ align: "center",sorter: true,
|
|
dataIndex: 'threeTime',
|
|
dataIndex: 'threeTime',
|
|
scopedSlots: {
|
|
scopedSlots: {
|
|
customRender: 'customTime'
|
|
customRender: 'customTime'
|
|
@@ -280,7 +279,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '下班2',
|
|
title: '下班2',
|
|
- align: "center",
|
|
|
|
|
|
+ align: "center",sorter: true,
|
|
dataIndex: 'fourTime',
|
|
dataIndex: 'fourTime',
|
|
scopedSlots: {
|
|
scopedSlots: {
|
|
customRender: 'customTime'
|
|
customRender: 'customTime'
|
|
@@ -288,11 +287,11 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '打卡次数',
|
|
title: '打卡次数',
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
dataIndex: 'attendanceCount', width: 100
|
|
dataIndex: 'attendanceCount', width: 100
|
|
}, {
|
|
}, {
|
|
title: '考勤状态',
|
|
title: '考勤状态',
|
|
- align: 'center', width: 100,
|
|
|
|
|
|
+ align: 'center', width: 100,sorter: true,
|
|
scopedSlots: {
|
|
scopedSlots: {
|
|
customRender: 'latetimeState'
|
|
customRender: 'latetimeState'
|
|
}
|
|
}
|
|
@@ -333,37 +332,37 @@
|
|
},*/
|
|
},*/
|
|
{
|
|
{
|
|
title: '加班开始时间',width: 150,
|
|
title: '加班开始时间',width: 150,
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
dataIndex: 'durationBeginDate'
|
|
dataIndex: 'durationBeginDate'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '加班结束时间',width: 150,
|
|
title: '加班结束时间',width: 150,
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
dataIndex: 'durationEndDate'
|
|
dataIndex: 'durationEndDate'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '加班事由',
|
|
title: '加班事由',
|
|
- align: 'center',
|
|
|
|
|
|
+ align: 'center',sorter: true,
|
|
dataIndex: 'demo'
|
|
dataIndex: 'demo'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '加班时长',
|
|
title: '加班时长',
|
|
- align: 'center',width: 100,
|
|
|
|
|
|
+ align: 'center',width: 100,sorter: true,
|
|
dataIndex: 'duration'
|
|
dataIndex: 'duration'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '请假开始时间',
|
|
title: '请假开始时间',
|
|
- align: 'center',width: 160,
|
|
|
|
|
|
+ align: 'center',width: 160,sorter: true,
|
|
dataIndex: 'holidayStartDate'
|
|
dataIndex: 'holidayStartDate'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '请假结束时间',
|
|
title: '请假结束时间',
|
|
- align: 'center',width: 160,
|
|
|
|
|
|
+ align: 'center',width: 160,sorter: true,
|
|
dataIndex: 'holidayEndDate'
|
|
dataIndex: 'holidayEndDate'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '请假类型',
|
|
title: '请假类型',
|
|
- align: 'center',width: 100,
|
|
|
|
|
|
+ align: 'center',width: 100,sorter: true,
|
|
dataIndex: 'holidayType'
|
|
dataIndex: 'holidayType'
|
|
}
|
|
}
|
|
// ,
|
|
// ,
|
|
@@ -375,7 +374,7 @@
|
|
// }
|
|
// }
|
|
],
|
|
],
|
|
url: {
|
|
url: {
|
|
- list: '/viewClockIn/viewClockIn/list',
|
|
|
|
|
|
+ list: '/viewClockIn/viewClockIn/list1',
|
|
shift: "/shift/shift/lists",
|
|
shift: "/shift/shift/lists",
|
|
exportXlsUrl: '/viewClockIn/viewClockIn/exportXlsDay',
|
|
exportXlsUrl: '/viewClockIn/viewClockIn/exportXlsDay',
|
|
},
|
|
},
|
|
@@ -390,6 +389,22 @@
|
|
this.queryShift();
|
|
this.queryShift();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //筛选需要重写handleTableChange
|
|
|
|
+ handleTableChange(pagination, filters, sorter) {
|
|
|
|
+ //分页、排序、筛选变化时触发
|
|
|
|
+ //TODO 筛选
|
|
|
|
+ if (Object.keys(sorter).length > 0) {
|
|
|
|
+ this.isorter.column = sorter.field;
|
|
|
|
+ this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
|
|
|
|
+ }else{
|
|
|
|
+ this.isorter.column = 'viewDate';
|
|
|
|
+ this.isorter.order = "ascend" == "desc"
|
|
|
|
+ }
|
|
|
|
+ //这种筛选方式只支持单选
|
|
|
|
+ //this.filters.status = filters.status[0];
|
|
|
|
+ this.ipagination = pagination;
|
|
|
|
+ this.loadData();
|
|
|
|
+ },
|
|
modalFormOks(formData) {
|
|
modalFormOks(formData) {
|
|
if (formData.departIdList != null && formData.departIdList.length > 0) {
|
|
if (formData.departIdList != null && formData.departIdList.length > 0) {
|
|
for (let i = 0; i < formData.departIdList.length; i++) {
|
|
for (let i = 0; i < formData.departIdList.length; i++) {
|
|
@@ -406,6 +421,7 @@
|
|
},
|
|
},
|
|
handleEmpty(){
|
|
handleEmpty(){
|
|
this.queryParam.departIds=null;
|
|
this.queryParam.departIds=null;
|
|
|
|
+ this.queryParam.departNames=null;
|
|
this.departNames=null;
|
|
this.departNames=null;
|
|
},
|
|
},
|
|
onDateChange: function (value, dateString) {
|
|
onDateChange: function (value, dateString) {
|