king
2020-08-12 2ed2188bb01fa321177125917102e5f664497d2a
src/tabviews/zshare/actionList/excelInbutton/index.jsx
@@ -186,26 +186,26 @@
  /**
   * @description Excel 导入
   */
  getexceldata = (data, errors) => {
  getexceldata = (data, errors, sheetName) => {
    const { btn } = this.props
    if (errors) {
      if (errors === 'notexit') {
        notification.warning({
          top: 92,
          message: '工作表《' + btn.verify.sheet + '》不存在!',
          message: '工作表《' + sheetName + '》不存在!',
          duration: 5
        })
      } else if (errors === 'empty') {
        notification.warning({
          top: 92,
          message: '工作表《' + btn.verify.sheet + '》为空!',
          message: '工作表《' + sheetName + '》为空!',
          duration: 5
        })
      } else if (errors === 'headerError') {
        notification.warning({
          top: 92,
          message: '工作表《' + btn.verify.sheet + '》表头设置错误,请检查表头中的名称及顺序,与按钮Excel列信息是否一致!',
          message: '工作表《' + sheetName + '》表头设置错误,请检查表头中的名称及顺序,与按钮Excel列信息是否一致!',
          duration: 5
        })
      }
@@ -217,7 +217,7 @@
    if (!data || data.length === 0) {
      notification.warning({
        top: 92,
        message: '未获取到工作表《' + btn.verify.sheet + '》数据!',
        message: '未获取到工作表《' + sheetName + '》数据!',
        duration: 5
      })
      this.updateStatus('over')