diff --git a/api/app/lib/controllers/member/index.js b/api/app/lib/controllers/member/index.js index c2286ce..c2c5867 100644 --- a/api/app/lib/controllers/member/index.js +++ b/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', }] diff --git a/api/app/lib/utils/member.js b/api/app/lib/utils/member.js index d67295d..26118d1 100644 --- a/api/app/lib/utils/member.js +++ b/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) {