更新白名单

This commit is contained in:
姜棚 2022-01-21 19:30:39 +08:00
parent 930560dc9d
commit 5b35accf4e
2 changed files with 4 additions and 19 deletions

View File

@ -827,14 +827,9 @@ export default class acclist extends React.Component{
this.setState({error_count:req.errorCount}) this.setState({error_count:req.errorCount})
let success = req.count - req.errorCount; let success = req.count - req.errorCount;
this.setState({success_count:success}) 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}) this.setState({success_visible:true})
}
else{
this.setState({success_visible:true})
}
},(err)=>{ },(err)=>{
Notify.error(err) Notify.error(err)
this.setState({success_visible:false}) this.setState({success_visible:false})

View File

@ -692,23 +692,13 @@ export default class acclist extends React.Component{
getAccessVerification(data).then((res)=>{ getAccessVerification(data).then((res)=>{
this.setState({file_loading:false}) this.setState({file_loading:false})
handelResponse(res,(req,msg)=>{ handelResponse(res,(req,msg)=>{
console.log("验证",req)
this.setState({accessVerify:true}) this.setState({accessVerify:true})
this.setState({excel_count:req.count}) this.setState({excel_count:req.count})
this.setState({error_count:req.errorCount}) this.setState({error_count:req.errorCount})
let success = req.count - req.errorCount; let success = req.count - req.errorCount;
this.setState({success_count:success}) this.setState({success_count:success})
if(req.validationFailed.length > 0) this.setState({exceldata:req.validationFailed})
{ this.setState({success_visible:true})
this.setState({exceldata:req.validationFailed})
this.setState({success_visible:true})
}
else{
this.setState({success_visible:true})
}
},(err)=>{ },(err)=>{
Notify.error(err) Notify.error(err)
this.setState({success_visible:false}) this.setState({success_visible:false})