Showing
4 changed files
with
9 additions
and
13 deletions
@@ -85,7 +85,7 @@ var SORTDATA={ | @@ -85,7 +85,7 @@ var SORTDATA={ | ||
85 | {id:RESPONSEDATA.sortId,sortName:RESPONSEDATA.sortName} | 85 | {id:RESPONSEDATA.sortId,sortName:RESPONSEDATA.sortName} |
86 | ], | 86 | ], |
87 | otherParam:function(){ | 87 | otherParam:function(){ |
88 | - return {brandId:928} | 88 | + return {brandId:$("#brandId").val()}//928 |
89 | }, | 89 | }, |
90 | complete:function(data){ | 90 | complete:function(data){ |
91 | if(data.length>2){ | 91 | if(data.length>2){ |
@@ -113,8 +113,8 @@ var SORTDATA={ | @@ -113,8 +113,8 @@ var SORTDATA={ | ||
113 | 113 | ||
114 | 114 | ||
115 | var tabTree=new common.tabTree("#tree",SORTDATA); | 115 | var tabTree=new common.tabTree("#tree",SORTDATA); |
116 | - | ||
117 | -// tabTree.isfeeze=true; | 116 | +tabTree.init(SORTDATA.datas); |
117 | +tabTree.isfeeze=true; | ||
118 | 118 | ||
119 | var ENUM={ | 119 | var ENUM={ |
120 | /* | 120 | /* |
@@ -151,10 +151,6 @@ if(RESPONSEDATA.isAuditing!=200){ | @@ -151,10 +151,6 @@ if(RESPONSEDATA.isAuditing!=200){ | ||
151 | new common.dropDown({el:"#supplierId",ajax:"getjitSup",params:function(){ | 151 | new common.dropDown({el:"#supplierId",ajax:"getjitSup",params:function(){ |
152 | return {brandId:$("#brandId").val()} | 152 | return {brandId:$("#brandId").val()} |
153 | }}); | 153 | }}); |
154 | -}else{ | ||
155 | - if(tabTree){ | ||
156 | - tabTree.isfeeze=true; | ||
157 | - } | ||
158 | } | 154 | } |
159 | 155 | ||
160 | //attributeTable | 156 | //attributeTable |
@@ -267,7 +263,7 @@ $(document).on("change","#brandId",function(){ | @@ -267,7 +263,7 @@ $(document).on("change","#brandId",function(){ | ||
267 | var id=$(this).val(); | 263 | var id=$(this).val(); |
268 | Bll.productNameArr[0]=$(this).find("option[value='"+id+"']").text(); | 264 | Bll.productNameArr[0]=$(this).find("option[value='"+id+"']").text(); |
269 | Bll.setProductName(); | 265 | Bll.setProductName(); |
270 | - tabTree.init(); | 266 | + tabTree.isfeeze=false; |
271 | }); | 267 | }); |
272 | $(document).on("change",":radio[name=gender]",function(){ | 268 | $(document).on("change",":radio[name=gender]",function(){ |
273 | Bll.productNameArr[1]=["男","女","通用"][+$(this).val()-1]; | 269 | Bll.productNameArr[1]=["男","女","通用"][+$(this).val()-1]; |
@@ -54,7 +54,6 @@ tabTree.prototype= { | @@ -54,7 +54,6 @@ tabTree.prototype= { | ||
54 | init: function(datas) { | 54 | init: function(datas) { |
55 | var g = this, | 55 | var g = this, |
56 | p = this.options; | 56 | p = this.options; |
57 | - // g.element.html(''); | ||
58 | g.element.addClass("citySelect"); | 57 | g.element.addClass("citySelect"); |
59 | g.dom = g.dom || g._dom(); | 58 | g.dom = g.dom || g._dom(); |
60 | g.selected = [], g.records = [], g.rows = []; | 59 | g.selected = [], g.records = [], g.rows = []; |
@@ -207,7 +206,7 @@ tabTree.prototype= { | @@ -207,7 +206,7 @@ tabTree.prototype= { | ||
207 | $.each(g.selected, function(count, item) { | 206 | $.each(g.selected, function(count, item) { |
208 | arr.push(item.sortName); | 207 | arr.push(item.sortName); |
209 | }); | 208 | }); |
210 | - g.dom["cityboxbtn"].html(arr.join(' > ')); | 209 | + g.dom["cityboxbtn"].html(arr.join(' > ')||'请选择类目'); |
211 | p.datas.length = 0; | 210 | p.datas.length = 0; |
212 | $.each(g.selected, function(count, item) { | 211 | $.each(g.selected, function(count, item) { |
213 | p.datas.push(item) | 212 | p.datas.push(item) |
@@ -243,6 +242,7 @@ tabTree.prototype= { | @@ -243,6 +242,7 @@ tabTree.prototype= { | ||
243 | } | 242 | } |
244 | return _html | 243 | return _html |
245 | }; | 244 | }; |
245 | + // g.dom["chooseArea"].html(''); | ||
246 | //g.dom["cityboxbtn"].append(_tempfun1(_count, items, isdisable)); | 246 | //g.dom["cityboxbtn"].append(_tempfun1(_count, items, isdisable)); |
247 | g.dom["chooseArea"].append(_tempfun2(_count, items, isdisable)) | 247 | g.dom["chooseArea"].append(_tempfun2(_count, items, isdisable)) |
248 | } | 248 | } |
@@ -13,7 +13,7 @@ var config = { | @@ -13,7 +13,7 @@ var config = { | ||
13 | redis: null, | 13 | redis: null, |
14 | apiKey: 'sd4H1ecAqlp', | 14 | apiKey: 'sd4H1ecAqlp', |
15 | 15 | ||
16 | - domain: 'http://192.168.102.214:8088/platform', | 16 | + domain: 'http://172.16.6.227:8088/platform', |
17 | loggers: { | 17 | loggers: { |
18 | api: { | 18 | api: { |
19 | level: 'verbose', | 19 | level: 'verbose', |
1 | -// exports.domain =require('../config/common.js').domain; | 1 | +exports.domain =require('../config/common.js').domain; |
2 | // exports.domain="http://172.16.6.240:8088/platform"; | 2 | // exports.domain="http://172.16.6.240:8088/platform"; |
3 | -exports.domain = "http://172.16.6.227:8088/platform"; | 3 | +// exports.domain = "http://172.16.6.227:8088/platform"; |
4 | exports.res = [ | 4 | exports.res = [ |
5 | {//基础商品列表 | 5 | {//基础商品列表 |
6 | route:'/supplier/baseproduct/index', | 6 | route:'/supplier/baseproduct/index', |
-
Please register or login to post a comment