Browse Source

筛选导出的(额外)字段key值

master
巴林闲侠 2 years ago
parent
commit
f9309eed31
  1. 3
      api/app/lib/controllers/member/index.js
  2. 2
      api/app/lib/utils/member.js

3
api/app/lib/controllers/member/index.js

@ -492,6 +492,9 @@ async function exportData (ctx) {
let { packageUser: exportD, pepUserIds } = await packageUserData(userRes)
let preHeader = [{
title: '员工编号',
key: 'userCode',
}, {
title: '姓名',
key: 'userName',
}]

2
api/app/lib/utils/member.js

@ -347,7 +347,7 @@ module.exports = function (app, opts) {
}
let returnD = []
let pepUserIds = []
let pepUserIds = [-1]
userRes.rows.forEach(u => {
let existUser = returnD.find(r => r.pepUserId == u.pepUserId)
if (existUser) {

Loading…
Cancel
Save