普通用户导入execl,到预览步骤提示没有数据权限

image.png

评论区

超级管理员 2025-10-23 15:44

是哪个版本来的,记得后面是有修复了的

yff 2025-10-23 15:54

@超级管理员

大概是4月份的版本,2.0.1版本


超级管理员 2025-10-23 16:06

@yff

替换一下getColumn这个方法 ,或者更新前端版本

文件:src\components\LowDesign\src\LowTable\components\import\importView.vue

替换方法:

const getColumn = async () => {

  const data = await TableApi.getWebConfig(props.dbformId)

  tableOption.value.column = {}

  data.fieldList?.forEach((item) => {

    if (item.exportEntity?.isImport == 'Y') {

      tableOption.value.column[item.fieldCode] = {

        label: t(`${props.dbformId}.${item.fieldCode}`),

        bind: `dataJson.${item.fieldCode}`

      }

    }

  })

  if (props.type == 'view') {

    tableOption.value.column['handleResult'] = {

      label: t('Avue.crud.importHistory.column.result'),

      type: 'select',

      dicData: [

        { label: t('Avue.crud.importHistory.column.resultSuccess'), value: 'SUCCESS' },

        { label: t('Avue.crud.importHistory.column.resultError'), value: 'FAIL' }

      ],

      searchValue: 'SUCCESS',

      search: true,

      hide: false,

      clearable: false

    }

    initTableLayout()

  }

}


回复