增加查询loading效果
This commit is contained in:
		
							parent
							
								
									81978ff082
								
							
						
					
					
						commit
						b5e140a50f
					
				@ -54,6 +54,7 @@ class BI006FormRunAnalysis extends React.Component {
 | 
			
		||||
      detailDataH: [],
 | 
			
		||||
      displayHr: "none",
 | 
			
		||||
      displaydetail: "none",
 | 
			
		||||
      searchLoading: false,
 | 
			
		||||
      columns: [
 | 
			
		||||
        {
 | 
			
		||||
          width: "100px",
 | 
			
		||||
@ -862,12 +863,18 @@ class BI006FormRunAnalysis extends React.Component {
 | 
			
		||||
    let endTime = this.state.selectEndTime.format("YYYY-MM-DD 23:59:59");
 | 
			
		||||
    let json = initFilter(orgId, "", "", "", "", startTime, endTime);
 | 
			
		||||
    extendOrder(json, "NUM", 0);
 | 
			
		||||
    this.setState({
 | 
			
		||||
      searchLoading: true,
 | 
			
		||||
    });
 | 
			
		||||
    this.props.dispatch({
 | 
			
		||||
      type: "app/getDataByPost",
 | 
			
		||||
      payload: json,
 | 
			
		||||
      url: "BI/BIStatiscialAnalysisController/GetDepartMouldInfos",
 | 
			
		||||
      onComplete: (ret) => {
 | 
			
		||||
        if (ret) {
 | 
			
		||||
          this.setState({
 | 
			
		||||
            searchLoading: false,
 | 
			
		||||
          });
 | 
			
		||||
          if (ret.mouldData) {
 | 
			
		||||
            let temp = [];
 | 
			
		||||
            allData.forEach((t) => {
 | 
			
		||||
@ -1109,7 +1116,11 @@ class BI006FormRunAnalysis extends React.Component {
 | 
			
		||||
              {/* </Form.Item> */}
 | 
			
		||||
            </div>
 | 
			
		||||
            <div>
 | 
			
		||||
              <Button type="primary" onClick={() => this.loadData()}>
 | 
			
		||||
              <Button
 | 
			
		||||
                type="primary"
 | 
			
		||||
                loading={this.state.searchLoading}
 | 
			
		||||
                onClick={() => this.loadData()}
 | 
			
		||||
              >
 | 
			
		||||
                查询
 | 
			
		||||
              </Button>
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user