异常排名导出
This commit is contained in:
parent
cc32767f42
commit
fe925355d5
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@
|
|||
v-hasPermi="['att:attReport:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport"
|
||||
<el-button type="warning" icon="el-icon-download" size="mini" @click="abnormalRankingExport"
|
||||
v-hasPermi="['att:attReport:abnormal']"
|
||||
>异常数据导出
|
||||
>异常排名导出
|
||||
</el-button>
|
||||
<el-button type="primary" size="mini" @click="openDialog" v-hasPermi="['att:attReport:batch']">批量修改
|
||||
</el-button>
|
||||
|
|
@ -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 = '工作时间外出次数'
|
||||
|
|
|
|||
Loading…
Reference in New Issue