下载数据的时候把关键字加上引号

dev_2022-04-07
Jo 3 years ago
parent af35ad1d1e
commit 158f3aec9e
  1. 4
      src/pages/data/list/index.vue

@ -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

Loading…
Cancel
Save