数据下载等修复

dev_2022-04-07
Jo 3 years ago
parent 09f961d9b3
commit 780f5c62e7
  1. 5
      src/pages/data/list/index.vue
  2. 5
      src/pages/index/list/index.vue
  3. 2
      src/router/permission.js

@ -434,8 +434,9 @@ export default {
let newFields = [] let newFields = []
let fieldsList = this.fieldsList let fieldsList = this.fieldsList
fields.map(n => { fieldsList.map(n => {
newFields.push(fieldsList.find(e => e.comment == n).field) const field = fields.find(e => n.comment == e)
field && newFields.push(n.field)
}) })
let msgObj = util.successMsg('数据正在生成中,请稍等片刻,生成后会自动下载,您可以先访问其他页面。', 5000) let msgObj = util.successMsg('数据正在生成中,请稍等片刻,生成后会自动下载,您可以先访问其他页面。', 5000)
this.downloadVisible = false this.downloadVisible = false

@ -492,8 +492,9 @@ export default {
let newFields = [] let newFields = []
let fieldsList = this.fieldsList let fieldsList = this.fieldsList
fields.map(n => { fieldsList.map(n => {
newFields.push(fieldsList.find(e => e.comment == n).field) const field = fields.find(e => n.comment == e)
field && newFields.push(n.field)
}) })
let msgObj = util.successMsg('数据正在生成中,请稍等片刻,生成后会自动下载,您可以先访问其他页面。', 5000) let msgObj = util.successMsg('数据正在生成中,请稍等片刻,生成后会自动下载,您可以先访问其他页面。', 5000)
this.downloadVisible = false this.downloadVisible = false

@ -6,6 +6,8 @@ const managerPath = ['/stat/list','/user/list','/role/list'] // 管理员才能
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
document.title = Setting.titleSuffix document.title = Setting.titleSuffix
const user = store.state.user
JSON.stringify(user) == '{}' && util.local.clear()
const role = util.local.get(Setting.tokenKey) const role = util.local.get(Setting.tokenKey)
if (!role && to.path !== '/login' && to.path !== '/index/list') { if (!role && to.path !== '/login' && to.path !== '/index/list') {
next('/index/list') next('/index/list')

Loading…
Cancel
Save