From 6c16e43cd6521460c804391c042348dbb14086fc Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 16 六月 2020 09:44:40 +0800
Subject: [PATCH] 2020-06-16

---
 src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx b/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx
index 1e36bfa..0a57faa 100644
--- a/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx
+++ b/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx
@@ -7,9 +7,10 @@
 
 class ExcelIn extends Component {
   static propTpyes = {
-    btn: PropTypes.object,        // 鎸夐挳淇℃伅
-    MenuID: PropTypes.string,     // 鑿滃崟ID
-    returndata: PropTypes.func    // 鑾峰彇杩斿洖鏁版嵁
+    btn: PropTypes.object,         // 鎸夐挳淇℃伅
+    MenuID: PropTypes.string,      // 鑿滃崟ID
+    returndata: PropTypes.func,    // 鑾峰彇杩斿洖鏁版嵁
+    triggerExcelIn: PropTypes.func // 淇敼涓婁紶鐘舵��
   }
 
   state = {
@@ -34,6 +35,7 @@
     const { files } = file.target
     const fileReader = new FileReader()
 
+    this.props.triggerExcelIn()
     fileReader.onload = event => {
       try {
         const { result } = event.target
@@ -103,7 +105,7 @@
   render() {
     return (
       <span>
-        {this.state.excelId ? <input className="excel-in-input" id={this.state.excelId + this.props.MenuID} type='file' accept='.xlsx, .xls' onChange={this.onImportExcel} /> : null}
+        {this.state.excelId ? <input className="excel-in-input" id={this.state.excelId + this.props.MenuID} type='file' accept='.xlsx, .xls' onAbort={this.onImportExcel} onChange={this.onImportExcel} /> : null}
       </span>
     )
   }

--
Gitblit v1.8.0