|
@@ -46,7 +46,7 @@
|
|
|
<a-tabs default-active-key="2" @change="callback">
|
|
|
<a-tab-pane key="2" tab="按班次上下班">
|
|
|
<a-table bordered rowKey="id" :loading="loading" :data-source="dataSource" :columns="columns"
|
|
|
- :scroll="{ x:300,y:550}" :pagination="ipagination" @change="handleTableChange"
|
|
|
+ :scroll="{ x:300,y:700}" :pagination="ipagination" @change="handleTableChange"
|
|
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}">
|
|
|
<template v-for='(dayobject,i) in days' :slot="dayobject.day.getDate()" style="color: #ff6b81">
|
|
|
<div style="height: 35px;">
|
|
@@ -74,7 +74,7 @@
|
|
|
</span>
|
|
|
</a-table>
|
|
|
|
|
|
- <a-table bordered :data-source="dataSources" :loading="loading" :columns="columnst" :scroll="{ x:300 }"
|
|
|
+ <!-- <a-table bordered :data-source="dataSources" :loading="loading" :columns="columnst" :scroll="{ x:300 }"
|
|
|
:pagination="ipaginations" @change="handleTableChanges">
|
|
|
<template v-for='(dayobject,i) in days' :slot="dayobject.day.getDate()" style="color: #ff6b81">
|
|
|
<div style="height: 35px;">
|
|
@@ -92,7 +92,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
- </a-table>
|
|
|
+ </a-table> -->
|
|
|
</a-tab-pane>
|
|
|
<a-tab-pane key="1" tab="固定时间上下班">
|
|
|
<a-table bordered rowKey="id" :loading="loading" :data-source="dataSource" :columns="columns"
|
|
@@ -239,7 +239,7 @@
|
|
|
ipaginations: {
|
|
|
current: 1,
|
|
|
pageSize: 10,
|
|
|
- pageSizeOptions: ['10', '20', '30'],
|
|
|
+ pageSizeOptions: ['10', '20', '30','50'],
|
|
|
showTotal: (total, range) => {
|
|
|
return range[0] + "-" + range[1] + " 共" + total + "条"
|
|
|
},
|
|
@@ -390,7 +390,8 @@
|
|
|
title: '名称',
|
|
|
dataIndex: 'realname',
|
|
|
width: '80px',
|
|
|
- fixed: 'left'
|
|
|
+ fixed: 'left',
|
|
|
+ sorter: true
|
|
|
})
|
|
|
this.columnst.push({
|
|
|
title: '班次名称',
|
|
@@ -402,7 +403,8 @@
|
|
|
title: '部门',
|
|
|
dataIndex: 'deptName',
|
|
|
width: '120px',
|
|
|
- fixed: 'left'
|
|
|
+ fixed: 'left',
|
|
|
+ sorter: true
|
|
|
})
|
|
|
if (this.queryParam.type == "1" || this.queryParam.type == "2" || this.queryParam.type == "3") {
|
|
|
// this.columns.push({
|