更新白名单
This commit is contained in:
parent
930560dc9d
commit
5b35accf4e
|
@ -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})
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue