|
@@ -7,6 +7,7 @@ import Notify from '@commonComp/Notify';
|
|
|
import store from '@store';
|
|
|
import $ from 'jquery';
|
|
|
import { host } from '@utils/config.js';
|
|
|
+import {isIE} from '@utils/tools.js';
|
|
|
|
|
|
|
|
|
(function ($) {
|
|
@@ -35,7 +36,8 @@ class Inspect extends React.Component {
|
|
|
this.state = {
|
|
|
val: '',
|
|
|
visible:false,
|
|
|
- dom:[]
|
|
|
+ dom:[],
|
|
|
+ isIE:isIE()
|
|
|
}
|
|
|
this.handleImportExcel = this.handleImportExcel.bind(this)
|
|
|
this.cancel = this.cancel.bind(this)
|
|
@@ -103,6 +105,13 @@ class Inspect extends React.Component {
|
|
|
cancel(){
|
|
|
this.setState({visible:false})
|
|
|
}
|
|
|
+ getStyle(){
|
|
|
+ if(this.state.isIE){
|
|
|
+ return styles.disabledBtn;
|
|
|
+ }else{
|
|
|
+ return styles.button;
|
|
|
+ }
|
|
|
+ }
|
|
|
getWarings(lis){
|
|
|
<ul>
|
|
|
{
|
|
@@ -122,8 +131,8 @@ class Inspect extends React.Component {
|
|
|
|
|
|
<div className={styles.top}>
|
|
|
<span>化验结果数据</span>
|
|
|
- <div className={styles.button} onClick={this.handleImportExcel}>
|
|
|
- <button>导入化验结果</button>
|
|
|
+ <div className={this.getStyle()} onClick={this.state.isIE?null:this.handleImportExcel}>
|
|
|
+ <button disabled={this.state.isIE?true:false}>导入化验结果</button>
|
|
|
<input type="file" name="uploadfile" id="choose" style={{ display: 'none' }} ref={(DOM) => this.inputRef = DOM} />
|
|
|
</div>
|
|
|
</div>
|