|
|
|
@ -162,6 +162,7 @@ export default { |
|
|
|
|
name: '年频' |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
keywordField: ['dec', 'desc'], // 下载数据的时候要把这些数据库的关键字加个引号,不然会下载失败,如果后续还要加其他关键字,直接在这里添加即可 |
|
|
|
|
currentRow: null, |
|
|
|
|
searchTimer: null |
|
|
|
|
} |
|
|
|
@ -436,9 +437,10 @@ export default { |
|
|
|
|
|
|
|
|
|
let newFields = [] |
|
|
|
|
let fieldsList = this.fieldsList |
|
|
|
|
const keywordField = this.keywordField |
|
|
|
|
fieldsList.map(n => { |
|
|
|
|
const field = fields.find(e => n.comment == e) |
|
|
|
|
field && newFields.push(n.field) |
|
|
|
|
field && newFields.push(keywordField.includes(n.field.toLowerCase()) ? `'${n.field}'` : n.field) // 如果是关键字,则加引号 |
|
|
|
|
}) |
|
|
|
|
let msgObj = util.successMsg('数据正在生成中,请稍等片刻,生成后会自动下载,您可以先访问其他页面。', 5000) |
|
|
|
|
this.downloadVisible = false |
|
|
|
|