From fe925355d5b50768a24a8312d724422e4098be76 Mon Sep 17 00:00:00 2001 From: fl <3098731433@qq.com> Date: Tue, 25 Feb 2025 18:21:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=8E=92=E5=90=8D=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report/attReport.js | 10 ++++++++++ src/views/report/attReport/index.vue | 17 +++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/api/report/attReport.js b/src/api/report/attReport.js index 19d5ca5..9c6e625 100644 --- a/src/api/report/attReport.js +++ b/src/api/report/attReport.js @@ -46,6 +46,16 @@ export function exportAttRecord(query) { }) } +// 异常排名导出 +export function exportAbnormalRanking(query) { + return request({ + url: '/system/export/exportAbnormalRanking', + method: 'get', + responseType: 'blob', + params: query + }) +} + // 查询部门列表 export function listDept(query) { return request({ diff --git a/src/views/report/attReport/index.vue b/src/views/report/attReport/index.vue index 380cc9b..d595311 100644 --- a/src/views/report/attReport/index.vue +++ b/src/views/report/attReport/index.vue @@ -34,9 +34,9 @@ v-hasPermi="['att:attReport:export']" >导出 - 异常数据导出 + >异常排名导出 批量修改 @@ -389,6 +389,7 @@ import { getDetailsList, updateAttDetails, exportAttRecord, + exportAbnormalRanking, synchronous, listDept, getOutCountList, @@ -795,6 +796,18 @@ export default { }) }, + /** 异常排名导出 */ + abnormalRankingExport() { + this.queryParams.exportType = '异常排名导出' + exportAbnormalRanking(this.queryParams).then(res => { + this.downloadFile({ + fileName: `异常排名_${new Date().getTime()}.xlsx`, + fileData: res, + fileType: 'application/vnd.ms-excel;charset=utf-8' + }) + }) + }, + //打开工作时间外出次数 openOutCountList(row) { this.title = '工作时间外出次数'