还原下载数据添加引号

dev_2022-04-07
jialong.yu 3 years ago
parent 158f3aec9e
commit 1dca51cce6
  1. 16512
      package-lock.json
  2. 4
      src/pages/data/list/index.vue
  3. 2
      src/setting.js
  4. 2
      vue.config.js

16512
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -162,7 +162,6 @@ export default {
name: '年频' name: '年频'
}, },
], ],
keywordField: ['dec', 'desc'], //
currentRow: null, currentRow: null,
searchTimer: null searchTimer: null
} }
@ -437,10 +436,9 @@ export default {
let newFields = [] let newFields = []
let fieldsList = this.fieldsList let fieldsList = this.fieldsList
const keywordField = this.keywordField
fieldsList.map(n => { fieldsList.map(n => {
const field = fields.find(e => n.comment == e) const field = fields.find(e => n.comment == e)
field && newFields.push(keywordField.includes(n.field.toLowerCase()) ? `'${n.field}'` : n.field) // field && newFields.push(n.field)
}) })
let msgObj = util.successMsg('数据正在生成中,请稍等片刻,生成后会自动下载,您可以先访问其他页面。', 5000) let msgObj = util.successMsg('数据正在生成中,请稍等片刻,生成后会自动下载,您可以先访问其他页面。', 5000)
this.downloadVisible = false this.downloadVisible = false

@ -25,7 +25,7 @@ const Setting = {
* 正式http://www.dataforward.cn:9000 * 正式http://www.dataforward.cn:9000
* */ * */
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://39.108.250.202:9000', // apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://39.108.250.202:9000',
apiBaseURL: env === 'development' ? 'http://39.108.250.202:9000' : `${location.origin}:9000`, apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : `${location.origin}:9000`,
// 接口请求返回错误时,弹窗的持续时间,单位:秒 // 接口请求返回错误时,弹窗的持续时间,单位:秒
modalDuration: 3, modalDuration: 3,
// 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice

@ -23,6 +23,6 @@ module.exports = {
  outputDir: Setting.outputDir,   outputDir: Setting.outputDir,
  assetsDir: Setting.assetsDir,   assetsDir: Setting.assetsDir,
devServer: { devServer: {
port: 8081 port: 8092
} }
} }
Loading…
Cancel
Save