|
@@ -37,18 +37,6 @@
|
|
<a-button @click="UploadAttendanceSheet" type="primary" icon="plus">上传考勤表</a-button>
|
|
<a-button @click="UploadAttendanceSheet" type="primary" icon="plus">上传考勤表</a-button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <!-- table区域-begin -->
|
|
|
|
- <div>
|
|
|
|
- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
|
|
|
- <i class="anticon anticon-info-circle ant-alert-icon"></i>
|
|
|
|
- <span>已选择</span>
|
|
|
|
- <a style="font-weight: 600">
|
|
|
|
- {{ selectedRowKeys.length }}
|
|
|
|
- </a>
|
|
|
|
- <span>项</span>
|
|
|
|
- <a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
<a-table
|
|
<a-table
|
|
ref="table"
|
|
ref="table"
|
|
size="middle"
|
|
size="middle"
|
|
@@ -59,7 +47,6 @@
|
|
:pagination="ipagination"
|
|
:pagination="ipagination"
|
|
:scroll="{x: 1000}"
|
|
:scroll="{x: 1000}"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
|
|
|
@change="handleTableChange">
|
|
@change="handleTableChange">
|
|
<span slot="operation" slot-scope="text, record">
|
|
<span slot="operation" slot-scope="text, record">
|
|
<a @click="handleDetail(record)" >查看详情</a>
|
|
<a @click="handleDetail(record)" >查看详情</a>
|
|
@@ -101,8 +88,6 @@
|
|
return {
|
|
return {
|
|
description: '考勤管理',
|
|
description: '考勤管理',
|
|
DateTime:[],
|
|
DateTime:[],
|
|
- selectedRowKeys:[],
|
|
|
|
- selectedRows:[],
|
|
|
|
yearWithMonth:'',
|
|
yearWithMonth:'',
|
|
open:false,
|
|
open:false,
|
|
mode2: ['month', 'month'],
|
|
mode2: ['month', 'month'],
|
|
@@ -244,10 +229,6 @@
|
|
this.yearWithMonth = data
|
|
this.yearWithMonth = data
|
|
this.queryParam.yearWithMonth = this.yearWithMonth?moment(this.yearWithMonth).format('YYYY-MM'):''
|
|
this.queryParam.yearWithMonth = this.yearWithMonth?moment(this.yearWithMonth).format('YYYY-MM'):''
|
|
},
|
|
},
|
|
- onSelectChange(selectedRowKeys, selectionRows) {
|
|
|
|
- this.selectedRowKeys = selectedRowKeys;
|
|
|
|
- this.selectedRows = selectionRows;
|
|
|
|
- },
|
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
handleTableChange(pagination, filters, sorter) {
|
|
this.queryParam.pageNo = pagination.current
|
|
this.queryParam.pageNo = pagination.current
|
|
this.queryParam.pageSize = pagination.pageSize
|
|
this.queryParam.pageSize = pagination.pageSize
|