From 9a82bce9cf0ed4a51c1b0b0669eaa38cedbace07 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 16 七月 2020 16:35:58 +0800
Subject: [PATCH] 2020-07-16

---
 src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx b/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx
index 0a57faa..70b0c70 100644
--- a/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx
+++ b/src/tabviews/zshare/actionList/excelInbutton/excelin/index.jsx
@@ -8,7 +8,6 @@
 class ExcelIn extends Component {
   static propTpyes = {
     btn: PropTypes.object,         // 鎸夐挳淇℃伅
-    MenuID: PropTypes.string,      // 鑿滃崟ID
     returndata: PropTypes.func,    // 鑾峰彇杩斿洖鏁版嵁
     triggerExcelIn: PropTypes.func // 淇敼涓婁紶鐘舵��
   }
@@ -19,7 +18,7 @@
 
   exceltrigger = () => {
     const { excelId } = this.state
-    let _excelInput = document.getElementById(excelId + this.props.MenuID)
+    let _excelInput = document.getElementById(excelId)
     
     if (_excelInput) {
       _excelInput.click()
@@ -105,7 +104,7 @@
   render() {
     return (
       <span>
-        {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}
+        {this.state.excelId ? <input className="excel-in-input" id={this.state.excelId} type='file' accept='.xlsx, .xls' onAbort={this.onImportExcel} onChange={this.onImportExcel} /> : null}
       </span>
     )
   }

--
Gitblit v1.8.0