layui数据表格重载调用新接口返回数据,数据没有刷新?

打开页面时会调用一个查询方法,把数据赋值到数据格上

layui.use(['table','form','upload','layer'], function(){
var table = layui.tab- ~ ,le
,form=lH p Cayui.form;
var brandId,categoryId,spe_ X t } qcificationId,brandType;
//格赋值
table.re6 b c g $ m d Vnder({
elem: '#test'
,method: 'post'
,url:'../../BrandControlN Y Z F * Y pler/queryBasicFactoetNameAllData'
,cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 新增
,height:'full-200'
,lim! z Hit: 10
,limits: [10, 50, 100]
,page:trj [ b K r &ue
,id:'idTest'
,cols: [[
{field:'brand_name', minWidtm f r Z dh:80, title: '品牌'}
,{field:'category_% S 7 W _ ; _name', minWidth:80, title: '品类X 8 x w q 2'}
,{field:'specificatim w R G i ( - 0on_name'~ * J u v, minWidth:80, title: '规格'}
,{field:'brandType_name', minWidth:80, title: '型号] w x = v !'}
]]
,parseData: function(res){ //将原始数据解析成: v P P * r L table 组件c h t F所规定的数据
debugger
return {
"code": "0", //解析接口状态
"msg": res.msg, //解析提示文本
"count": res.length, //解析数据长度
F + f 4"data": res //解析数据列表
};
}
});

layui数据表格重载调用新接口返回数据,数据没有刷新?
然后搜索,触发layui数据重载,调用新接口,传入数据,返回新数据。

//搜索
$("#ss+ L u ) ?").cm ] r t b f Hlick(function(){
if(brandId==undeu - B # g . ; G 4fined){
brandId=0;
}
if(categoryId=M 1 F &=undefined){
categoryId=0;
}
if(G g | m m K zspecificationId==und| W | F H 6 [ $efined){+ j h
specificationId=0;
}
if(brandType==undefined){
brandType=0;
}
reloadTable(brandId,categoryId,specificationId,brandType);
});
function reloadTable(brandId,categoryId,specifica& * 5 2 t l N 5tionId,brandType){
var index=layer.msg('查询中,请稍后...V [ D l O',{icon:16,time:false,shade:0});
debuggd i w  T 8er
//执8 g R q M 4行重载
table.reload('i? N X $ } I 5dTest', {
url: '../../BrandController/queryrel2 8 WoadTable'
,A P 8 Q G y $ g Rmethod; & `: 'post'
,page:{
curr:1//第一页开始
}
,where: {//设定异步数据接口的额外参数
brandId:brandId,
categoryId:categoryId,
specificationId:specificatio= / (  o ! e } dnId,
brandType:brandType
}
}, 'data');
layer.close(index);
}

执行成功了,接口也返回了数据但是表格里面的数据没有刷新。好像刷新表格又执行了查询全部的接口

回答

你说又执行了查询全部的接口,network是否u * ] @ # r v有queryBasicFactoetg C ? DNameAllData请求呢