Browse Source

出租车不导出品名

dev
巴林闲侠 2 years ago
parent
commit
f728f3236f
  1. 8
      api/app/lib/controllers/data/index.js

8
api/app/lib/controllers/data/index.js

@ -79,9 +79,13 @@ async function dataExport (ctx) {
const tableAttributes = models[modalOption.tableName].tableAttributes const tableAttributes = models[modalOption.tableName].tableAttributes
let header = [] let header = []
for (let k in tableAttributes) { for (let k in tableAttributes) {
if (k != 'id' && tableAttributes[k].comment) { const comment = tableAttributes[k].comment
if (k != 'id' && comment) {
if (comment == '品名' && municipalType == '出租车') {
continue
}
header.push({ header.push({
title: tableAttributes[k].comment || '-', title: comment || '-',
key: k, key: k,
index: tableAttributes[k].index, index: tableAttributes[k].index,
}) })

Loading…
Cancel
Save