修改loading方法
This commit is contained in:
		
							parent
							
								
									eb0c3f119e
								
							
						
					
					
						commit
						82708bce19
					
				@ -82,7 +82,7 @@ class HM061ShowPrint extends React.Component {
 | 
			
		||||
        XLSX.writeFile(wb, "风险任务表.xlsx")
 | 
			
		||||
    }
 | 
			
		||||
    onPersonalAgree() {
 | 
			
		||||
        this.state.loading = true;
 | 
			
		||||
        this.setState({ loading: true });
 | 
			
		||||
        this.props.dispatch({
 | 
			
		||||
            type: 'app/getDataByPost',
 | 
			
		||||
            url: 'HM/HMRiskTask/UserSignin',
 | 
			
		||||
@ -91,12 +91,10 @@ class HM061ShowPrint extends React.Component {
 | 
			
		||||
                TaskID: this.props.data.TaskID,
 | 
			
		||||
            },
 | 
			
		||||
            onComplete: (ret) => {
 | 
			
		||||
                if (ret.IsSuccessful) {
 | 
			
		||||
                if (ret) {
 | 
			
		||||
                    message.success('确认成功!');
 | 
			
		||||
                    this.setState({ BtnSignDisplay: 'none' })
 | 
			
		||||
                    this.BtnClose();
 | 
			
		||||
                } else {
 | 
			
		||||
                    this.state.loading = false;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        })
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user