|
@@ -17,9 +17,6 @@
|
|
<span>累计人天:{{ statisticsInfo.allDays }}天</span>
|
|
<span>累计人天:{{ statisticsInfo.allDays }}天</span>
|
|
<span>累计工时:{{ statisticsInfo.allHours }}小时</span>
|
|
<span>累计工时:{{ statisticsInfo.allHours }}小时</span>
|
|
</t-space>
|
|
</t-space>
|
|
- <div class="btn-group">
|
|
|
|
- <!-- <t-button theme="success" @click="multExport">批量导出</t-button> -->
|
|
|
|
- </div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<t-table
|
|
<t-table
|
|
@@ -32,6 +29,8 @@
|
|
defaultCurrent: 1,
|
|
defaultCurrent: 1,
|
|
defaultPageSize: 10,
|
|
defaultPageSize: 10,
|
|
onChange,
|
|
onChange,
|
|
|
|
+ showJumper: true,
|
|
|
|
+ showPageSize: false,
|
|
total: pagination.total,
|
|
total: pagination.total,
|
|
current: pagination.pageNumber,
|
|
current: pagination.pageNumber,
|
|
}"
|
|
}"
|
|
@@ -54,12 +53,10 @@
|
|
import { reactive, ref } from 'vue';
|
|
import { reactive, ref } from 'vue';
|
|
import { omit } from 'lodash';
|
|
import { omit } from 'lodash';
|
|
|
|
|
|
-import { DialogPlugin, MessagePlugin } from 'tdesign-vue-next';
|
|
|
|
import useFetchTable from '@/hooks/useFetchTable';
|
|
import useFetchTable from '@/hooks/useFetchTable';
|
|
import {
|
|
import {
|
|
workAttendanceDetailListApi,
|
|
workAttendanceDetailListApi,
|
|
workStatisticsDetailInfoApi,
|
|
workStatisticsDetailInfoApi,
|
|
- workAttendanceDetailExportApi,
|
|
|
|
} from '@/api/work-hours';
|
|
} from '@/api/work-hours';
|
|
import {
|
|
import {
|
|
timestampFilter,
|
|
timestampFilter,
|
|
@@ -218,25 +215,4 @@ const getStatisticsInfo = async () => {
|
|
const res = await workStatisticsDetailInfoApi(params);
|
|
const res = await workStatisticsDetailInfoApi(params);
|
|
statisticsInfo.value = res || {};
|
|
statisticsInfo.value = res || {};
|
|
};
|
|
};
|
|
-
|
|
|
|
-const multExport = () => {
|
|
|
|
- if (!selectedRowKeys.value.length) {
|
|
|
|
- MessagePlugin.error('请选择要导出的记录');
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- const confirmDia = DialogPlugin({
|
|
|
|
- header: '操作提示',
|
|
|
|
- body: `确定要导出选择的所有记录吗?`,
|
|
|
|
- confirmBtn: '确定',
|
|
|
|
- cancelBtn: '取消',
|
|
|
|
- onConfirm: async () => {
|
|
|
|
- confirmDia.hide();
|
|
|
|
- const res = await workAttendanceDetailExportApi(computedParams).catch(
|
|
|
|
- () => {}
|
|
|
|
- );
|
|
|
|
- if (!res) return;
|
|
|
|
- MessagePlugin.success('开始下载');
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
-};
|
|
|
|
</script>
|
|
</script>
|