diff --git a/src/api/report/dayReport.js b/src/api/report/dayReport.js index 87f328d..e92e7c3 100644 --- a/src/api/report/dayReport.js +++ b/src/api/report/dayReport.js @@ -19,6 +19,15 @@ export function getAttDayReportDetailsList(query) { }) } +// 查询列表 +export function getAttDayReportDetailsListData(query) { + return request({ + url: '/system/attDetails/getAttDayReportDetailsListData', + method: 'get', + params: query + }) +} + // 导出 export function exportDayReport(query) { return request({ diff --git a/src/views/components/commonDialog.vue b/src/views/components/commonDialog.vue index 848d017..10689ee 100644 --- a/src/views/components/commonDialog.vue +++ b/src/views/components/commonDialog.vue @@ -202,7 +202,7 @@ import {listDept} from "@/api/system/dept"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import {getDetailsList} from "@/api/report/attReport"; -import {getAttDayReportDetailsList,getAttDayList} from "@/api/report/dayReport"; +import {getAttDayReportDetailsListData,getAttDayList} from "@/api/report/dayReport"; import {getDetailExceptionAll} from "@/api/dashboard"; export default { @@ -300,8 +300,8 @@ export default { }; }, //当日考勤统计 - async getAttDayReportDetailsList(data) { - let res = await getAttDayReportDetailsList(data).then(response => { + async getAttDayReportDetailsListData(data) { + let res = await getAttDayReportDetailsListData(data).then(response => { return response }); return res @@ -372,8 +372,9 @@ export default { {t_props: 'offWorkAttAddress', t_label: '打卡地址'}, ] this.currentFunc = this.getAttDayList - // this.currentFunc = this.getAttDayReportDetailsList this.getTableList(this.getAttDayList, v.param) + // this.currentFunc = this.getAttDayReportDetailsListData + // this.getTableList(this.getAttDayReportDetailsListData, v.param) break; case 2: this.title = "迟到记录" @@ -387,8 +388,8 @@ export default { {t_props: 'offWorkAttStatus', t_label: '下班状态', t_slot: 'attStatus'}, {t_props: 'offWorkAttAddress', t_label: '打卡地址'}, ] - this.currentFunc = this.getAttDayReportDetailsList - this.getTableList(this.getAttDayReportDetailsList, v.param) + this.currentFunc = this.getAttDayReportDetailsListData + this.getTableList(this.getAttDayReportDetailsListData, v.param) break; case 3: this.title = "旷工记录" @@ -402,8 +403,8 @@ export default { {t_props: 'offWorkAttStatus', t_label: '下班状态', t_slot: 'attStatus'}, {t_props: 'offWorkAttAddress', t_label: '打卡地址'}, ] - this.currentFunc = this.getAttDayReportDetailsList - this.getTableList(this.getAttDayReportDetailsList, v.param) + this.currentFunc = this.getAttDayReportDetailsListData + this.getTableList(this.getAttDayReportDetailsListData, v.param) break; case 4: this.title = "早退记录" @@ -417,8 +418,8 @@ export default { {t_props: 'offWorkAttStatus', t_label: '下班状态', t_slot: 'attStatus'}, {t_props: 'offWorkAttAddress', t_label: '打卡地址'}, ] - this.currentFunc = this.getAttDayReportDetailsList - this.getTableList(this.getAttDayReportDetailsList, v.param) + this.currentFunc = this.getAttDayReportDetailsListData + this.getTableList(this.getAttDayReportDetailsListData, v.param) break; case 6: this.title = "请假记录" @@ -432,8 +433,8 @@ export default { {t_props: 'offWorkAttStatus', t_label: '下班状态', t_slot: 'attStatus'}, {t_props: 'offWorkAttAddress', t_label: '打卡地址'}, ] - this.currentFunc = this.getAttDayReportDetailsList - this.getTableList(this.getAttDayReportDetailsList, v.param) + this.currentFunc = this.getAttDayReportDetailsListData + this.getTableList(this.getAttDayReportDetailsListData, v.param) break; case 8: this.title = "出入异常记录" @@ -447,8 +448,8 @@ export default { {t_props: 'offWorkAttStatus', t_label: '下班状态', t_slot: 'attStatus'}, {t_props: 'offWorkAttAddress', t_label: '打卡地址'}, ] - this.currentFunc = this.getAttDayReportDetailsList - this.getTableList(this.getAttDayReportDetailsList, v.param) + this.currentFunc = this.getAttDayReportDetailsListData + this.getTableList(this.getAttDayReportDetailsListData, v.param) break; case 9: this.title = "打卡地异常记录" @@ -462,8 +463,8 @@ export default { {t_props: 'offWorkAttStatus', t_label: '下班状态', t_slot: 'attStatus'}, {t_props: 'offWorkAttAddress', t_label: '打卡地址'}, ] - this.currentFunc = this.getAttDayReportDetailsList - this.getTableList(this.getAttDayReportDetailsList, v.param) + this.currentFunc = this.getAttDayReportDetailsListData + this.getTableList(this.getAttDayReportDetailsListData, v.param) break; case 10: this.title = "已处理异常数据"