|
楼主 |
发表于 2017-4-5 23:58:34
|
显示全部楼层
var gpdate =this.comp("gpdate");
justep.Baas.sendRequest({
"url" : "/gpAdmin/gpAdmin",
"action" : "Demo",
"dataType" : 'json',
"async" : true,
"params" : {
"chaxun":1,
"hangye" : this.comp("hangye").val(),
"shichang" : this.comp("shichang").val(),
"ziji" : this.comp("ziji").val(),
"riqi" : this.comp("riqi").val()
},
"success" : function(data) {
wgList=data.wgList;
// alert(data);
gpdate.loadData(wgList);
},
error : function() {
throw justep.Error.create("查询数据失败");
}
});
gpdate.refreshData();
}; |
|