table 修复reloadData之后出现分页栏丢失的问题
This commit is contained in:
		
							parent
							
								
									084a37a8ee
								
							
						
					
					
						commit
						146adba3fe
					
				@ -756,8 +756,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
 | 
				
			|||||||
    that.layMain.append(that.layNone = layNone);
 | 
					    that.layMain.append(that.layNone = layNone);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // 异常情况下对page和total的内容处理
 | 
					    // 异常情况下对page和total的内容处理
 | 
				
			||||||
    that.layPage && that.layPage.addClass(HIDE).find('>div').html('');
 | 
					    that.layPage && that.layPage.addClass(HIDE_V).find('>div').html('');
 | 
				
			||||||
    that.layTotal && that.layTotal.addClass(HIDE).find('tbody').html('');
 | 
					    that.layTotal && that.layTotal.addClass(HIDE_V).find('tbody').html('');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    table.cache[that.key] = []; //格式化缓存数据
 | 
					    table.cache[that.key] = []; //格式化缓存数据
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
@ -990,8 +990,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
 | 
				
			|||||||
    //that.layPage[(count == 0 || (data.length === 0 && curr == 1)) ? 'addClass' : 'removeClass'](HIDE);
 | 
					    //that.layPage[(count == 0 || (data.length === 0 && curr == 1)) ? 'addClass' : 'removeClass'](HIDE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //显示隐藏合计栏
 | 
					    //显示隐藏合计栏
 | 
				
			||||||
    that.layTotal[data.length == 0 ? 'addClass' : 'removeClass'](HIDE_V);;
 | 
					    that.layTotal[data.length == 0 ? 'addClass' : 'removeClass'](HIDE_V);
 | 
				
			||||||
    
 | 
					
 | 
				
			||||||
    //显示隐藏分页栏
 | 
					    //显示隐藏分页栏
 | 
				
			||||||
    if(!options.pagebar){
 | 
					    if(!options.pagebar){
 | 
				
			||||||
      that.layPage[
 | 
					      that.layPage[
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user