Administrator пре 4 година
родитељ
комит
613da387ac

+ 2 - 20
src/main/resources/static/js/common/serviceapi/product.service.js

@@ -10,24 +10,6 @@ var ProductApi = {
                 callback(res);
             });
         },
-        GetProductList: function (params, callback) {//仪器/产品- 一级商品列表
-            Http.AjaxService({ url:'/search/query/product/bigType', type:'get', data:params, json:true})
-            .then(function(res){
-                callback(res);
-            });
-        },
-        GetProductsmallList: function (params, callback) {//仪器/产品- 二级商品列表
-            Http.AjaxService({ url:'/search/query/product/smallType', type:'get', data:params, json:true})
-            .then(function(res){
-                callback(res);
-            });
-        },
-        GetProducttinyList: function (params, callback) {//仪器/产品- 三级商品列表
-            Http.AjaxService({ url:'/search/query/product/tinyType', type:'get', data:params, json:true})
-            .then(function(res){
-                callback(res);
-            });
-        },
         GetbigTypeclassify: function (params, callback) {//一二三级分类-商品分类列表
             Http.AjaxService({ url:'/product/bigType/classify', type:'get', data:params, json:true})
             .then(function(res){
@@ -40,10 +22,10 @@ var ProductApi = {
                 callback(res);
             });
         },
-       GetSearchProduct:function (params, callback) {//产品仪器楼层
+       GetSearchProduct:function (params, callback) {//产品仪器商品列表查询
              Http.AjaxService({ url:'/search/query/product/type', type:'get', data:params, json:true})
             .then(function(res){
                 callback(res);
             });
-        }
+        },
 };

+ 2 - 11
src/main/resources/static/js/product/produce-list.js

@@ -16,9 +16,6 @@ var productList = new Vue({
         bigTypeID:'',
         smallTypeID:'',//二级分类id
         tinyTypeID:'',//三级分类id
-        termsNameflag:false,
-        tinyflag:false,
-        smallflag:false,
         listRecord: 0,
         pageInput: '1',
         source:'www',
@@ -64,7 +61,7 @@ var productList = new Vue({
             }
         })
     },
-        getproductList:function(){//一级商品列表
+       getproductList:function(){//一级商品列表
            var _self=this;
            ProductApi.GetSearchProduct(_self.params,function (res) {
                if( res.code==0){
@@ -138,32 +135,26 @@ var productList = new Vue({
         },
         checkedClasslyFn:function(item,index){
             this.paramsIndex = index;
+            this.idType = index;
             switch (index) {
                 case 1://选择1集分类查询
                     this.bigName=item.name;
                     this.smallName = '';
                     this.bigTypeID = item.bigTypeID;
                     this.params.id = item.bigTypeID;
-                    this.idType = index;
-                    this.termsNameflag = true;
                     this.getclassify();
-                    // this.getproductList();
                     break;
                 case 2://选择二级分类查询
                     this.smallName = item.name;
                     this.tinyName = '';
                     this.smallTypeID = item.smallTypeID;
                     this.params.id = item.smallTypeID;
-                    this.smallflag = true;
                     this.tinytypeList =item.tinytypeList;
-                    // this.getsmallList();
                     break;
                 case 3://选择三级分类查询
                     this.tinyName = item.name;
                     this.tinyTypeID = item.tinyTypeID;
                     this.params.id = item.tinyTypeID;
-                    this.tinyflag = true;
-                    // this.gettinyList();
                     break;
             }
            this.getproductList();