|
@@ -93,7 +93,12 @@ var supplierHome = new Vue({
|
|
|
},
|
|
|
getProductLists: function(){
|
|
|
var _self = this;
|
|
|
- $.getJSON(spiServer + "/search/query/product/supplier",this.params, function (r) {
|
|
|
+ $.getJSON(spiServer + "/search/query/product/supplier",{
|
|
|
+ keyword: _self.params.keyword,
|
|
|
+ pageSize: _self.params.size,
|
|
|
+ pageNum: _self.params.num,
|
|
|
+ id:_self.params.id
|
|
|
+ }, function (r) {
|
|
|
if (r.code === 0 && r.data) {
|
|
|
var result = JSON.parse(r.data);
|
|
|
_self.listRecord = result.total;
|
|
@@ -105,8 +110,7 @@ var supplierHome = new Vue({
|
|
|
$("img[data-original]").lazyload();
|
|
|
},500);
|
|
|
});
|
|
|
- // _self.productLists = _self.productLists.concat(resultData);
|
|
|
- _self.productLists =resultData;
|
|
|
+ _self.productLists = _self.productLists.concat(resultData);
|
|
|
console.log( _self.productLists)
|
|
|
}
|
|
|
_self.requestFlag = true;
|