Преглед на файлове

Merge remote-tracking branch 'origin/dev-security' into dev-security

xiayu3 преди 4 години
родител
ревизия
99229edde0
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      security-protection-platform/src/api/attendance/index.js

+ 4 - 1
security-protection-platform/src/api/attendance/index.js

@ -17,6 +17,9 @@ const mapping = {
17 17
  daysAbsence: 'absentDays', // 旷工天数
18 18
  status: 'attendanceStatus'
19 19
}
20
const mappingDate = {
21
  date: 'workDay'
22
}
20 23
21 24
const api = {
22 25
  // 获取考勤日报表格数据
@ -46,7 +49,7 @@ const api = {
46 49
  getAttendanceDetail ({ params }) {
47 50
    params = keysMapping(params, mapping)
48 51
    return $default.get('/sp/attendanceReport/queryAttendanceDetailReport', { params }).then(resp => {
49
      resp.data = resp.data.data
52
      resp.data = keysMappingReverse(resp.data.data, mappingDate)
50 53
      return resp
51 54
    })
52 55
  }