diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index 545f0790..899424f8 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -827,14 +827,9 @@ export default class acclist extends React.Component{ this.setState({error_count:req.errorCount}) let success = req.count - req.errorCount; this.setState({success_count:success}) - if(req.validationFailed.length > 0) - { - this.setState({exceldata:req.validationFailed}) + this.setState({exceldata:req.validationFailed}) + this.setState({success_visible:true}) - } - else{ - this.setState({success_visible:true}) - } },(err)=>{ Notify.error(err) this.setState({success_visible:false}) diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 49a9bfad..4b9db6db 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -692,23 +692,13 @@ export default class acclist extends React.Component{ 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}) let success = req.count - req.errorCount; this.setState({success_count:success}) - if(req.validationFailed.length > 0) - { - - this.setState({exceldata:req.validationFailed}) - - this.setState({success_visible:true}) - } - else{ - this.setState({success_visible:true}) - } + this.setState({exceldata:req.validationFailed}) + this.setState({success_visible:true}) },(err)=>{ Notify.error(err) this.setState({success_visible:false})