|
@@ -1,6 +1,10 @@
|
|
|
<template>
|
|
|
<div class="work-statistics flex flex-col h-full">
|
|
|
<div v-if="perm.BUTTON_Export" class="page-action">
|
|
|
+ <t-button theme="primary" @click="statisticsHandle">
|
|
|
+ <template #icon><svg-icon name="working-hours" color="#fff" /></template
|
|
|
+ >统计计算
|
|
|
+ </t-button>
|
|
|
<t-button theme="primary" @click="exportFile">
|
|
|
<template #icon><svg-icon name="export" color="#fff" /></template
|
|
|
>导出统计结果
|
|
@@ -51,6 +55,7 @@ import {
|
|
|
workStatisticsExportApi,
|
|
|
workStatisticsPassApi,
|
|
|
exportWorkApi,
|
|
|
+ dingStatisticsApi,
|
|
|
} from '@/api/work-hours';
|
|
|
import {
|
|
|
timestampFilter,
|
|
@@ -125,7 +130,11 @@ const exportFile = () => {
|
|
|
MessagePlugin.success('导出成功');
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
+const statisticsHandle = () => {
|
|
|
+ dingStatisticsApi().then(() => {
|
|
|
+ MessagePlugin.success('操作成功');
|
|
|
+ });
|
|
|
+};
|
|
|
const columns = computed(() => {
|
|
|
const type = params.type;
|
|
|
if (!type) {
|