Showing
2 changed files
with
5 additions
and
2 deletions
@@ -261,6 +261,8 @@ $(document).on("change","#brandId",function(){ | @@ -261,6 +261,8 @@ $(document).on("change","#brandId",function(){ | ||
261 | var id=$(this).val(); | 261 | var id=$(this).val(); |
262 | Bll.productNameArr[0]=$(this).find("option[value='"+id+"']").text(); | 262 | Bll.productNameArr[0]=$(this).find("option[value='"+id+"']").text(); |
263 | Bll.setProductName(); | 263 | Bll.setProductName(); |
264 | + $("#supplierId").val(-1).trigger("change"); | ||
265 | + $("#shopId").val(-1).trigger("change"); | ||
264 | tabTree.isfeeze=false; | 266 | tabTree.isfeeze=false; |
265 | tabTree.init([{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""}]); | 267 | tabTree.init([{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""},{id:"",sortName:""}]); |
266 | }); | 268 | }); |
@@ -53,13 +53,14 @@ dropDown.prototype = { | @@ -53,13 +53,14 @@ dropDown.prototype = { | ||
53 | type: 'POST', | 53 | type: 'POST', |
54 | delay: 250, | 54 | delay: 250, |
55 | data: function(params) { | 55 | data: function(params) { |
56 | + var param={}; | ||
56 | if(Object.prototype.toString.call(option.params)=="[object Function]"){ | 57 | if(Object.prototype.toString.call(option.params)=="[object Function]"){ |
57 | - option.params=option.params(); | 58 | + param=option.params(); |
58 | } | 59 | } |
59 | 60 | ||
60 | var data = $.extend({}, { | 61 | var data = $.extend({}, { |
61 | idName: params.term | 62 | idName: params.term |
62 | - }, option.params || {}); | 63 | + }, param || {}); |
63 | return data; | 64 | return data; |
64 | }, | 65 | }, |
65 | processResults: function(data, params) { | 66 | processResults: function(data, params) { |
-
Please register or login to post a comment