数据下载等修复

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 fieldsList = this.fieldsList
fields.map(n => {
newFields.push(fieldsList.find(e => e.comment == n).field)
fieldsList.map(n => {
const field = fields.find(e => n.comment == e)
field && newFields.push(n.field)
})
let msgObj = util.successMsg('数据正在生成中,请稍等片刻,生成后会自动下载,您可以先访问其他页面。', 5000)
this.downloadVisible = false

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

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

Loading…
Cancel
Save