king
2024-02-22 a7813a33fc5f60ea995dfe0f09f52243e2ccfbb2
src/tabviews/zshare/actionList/excelInbutton/index.jsx
@@ -276,43 +276,21 @@
  /**
   * @description Excel 导入
   */
  getexceldata = (data, errors, sheetName, errDetail) => {
  getexceldata = (data, error) => {
    const { btn, BID } = this.props
    if (errors) {
      if (errors === 'notexit') {
        notification.warning({
          top: 92,
          message: '工作表《' + sheetName + '》不存在!',
          duration: 5
        })
      } else if (errors === 'empty') {
        notification.warning({
          top: 92,
          message: '工作表《' + sheetName + '》为空!',
          duration: 5
        })
      } else if (errors === 'headerError') {
        notification.warning({
          top: 92,
          message: `工作表《${sheetName}》表头错误,${errDetail}`,
          duration: 5
        })
      }
    if (error) {
      notification.warning({
        top: 92,
        message: error,
        duration: 5
      })
      this.setState({ loading: false })
      return
    }
    if (!data || data.length === 0) {
      notification.warning({
        top: 92,
        message: '未获取到工作表《' + sheetName + '》数据!',
        duration: 5
      })
      this.setState({ loading: false })
      return
    } else if (data.length * btn.verify.columns.length > 30000) {
    if (data.length * btn.verify.columns.length > 30000) {
      notification.warning({
        top: 92,
        message: '当前导入数据量过大,如遇错误提示,请分批导入!',