diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index c8f736a0..e90d128b 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -814,11 +814,9 @@ export default class acclist extends React.Component{ } this.setState({mobile_excel:req.path}) - getAccessVerification(data).then((res)=>{ + this.setState({file_loading:false}) handelResponse(res,(req,msg)=>{ - - console.log("验证",req) this.setState({accessVerify:true}) this.setState({excel_count:req.count}) this.setState({error_count:req.errorCount}) @@ -826,13 +824,10 @@ export default class acclist extends React.Component{ this.setState({success_count:success}) if(req.validationFailed.length > 0) { - this.setState({exceldata:req.validationFailed}) - this.setState({file_loading:false}) this.setState({success_visible:true}) } else{ - this.setState({file_loading:false}) this.setState({success_visible:true}) } },(err)=>{ @@ -1107,7 +1102,7 @@ export default class acclist extends React.Component{ value={this.state.model.batch_name} placeholder={"请输入"} labelWidth={'0px'} maxLength={12} height={'36px'} width={'400px'} alignment={'left'}/> - + { this.onStyleChange(e)} } value={this.state.model.style} disabled={this.state.isEdit} > 串码 链接