Ver Fonte

供应商商品重复

Administrator há 4 anos atrás
pai
commit
cdd12970e3
1 ficheiros alterados com 7 adições e 3 exclusões
  1. 7 3
      src/main/resources/static/js/supplier/index.js

+ 7 - 3
src/main/resources/static/js/supplier/index.js

@@ -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;