Showing
1 changed file
with
7 additions
and
4 deletions
@@ -232,12 +232,15 @@ | @@ -232,12 +232,15 @@ | ||
232 | this.dom.editProductCode.textbox('setValue', detail.productCode); | 232 | this.dom.editProductCode.textbox('setValue', detail.productCode); |
233 | this.dom.editMaxSortId.combobox('select', detail.maxSortId); | 233 | this.dom.editMaxSortId.combobox('select', detail.maxSortId); |
234 | this.dom.editMidSortId.combobox('select', detail.midSortId); | 234 | this.dom.editMidSortId.combobox('select', detail.midSortId); |
235 | - this.dom.editSeriesId.combobox('select', detail.seriesId); | 235 | + if (detail.seriesId && detail.seriesId != 0) { |
236 | + this.dom.editSeriesId.combobox('select', detail.seriesId); | ||
237 | + } | ||
238 | + | ||
236 | this.dom.keyword.textbox('setValue', detail.keyWords); | 239 | this.dom.keyword.textbox('setValue', detail.keyWords); |
237 | $('input[name=gender]').eq(detail.gender - 1).attr('checked','true'); | 240 | $('input[name=gender]').eq(detail.gender - 1).attr('checked','true'); |
238 | $('.group-color li[data-id=' + detail.colorId + ']').addClass('actived'); | 241 | $('.group-color li[data-id=' + detail.colorId + ']').addClass('actived'); |
239 | 242 | ||
240 | - if (detail.imageUrlList.length > 0) { | 243 | + if (detail.imageUrlList && detail.imageUrlList.length > 0) { |
241 | detail.imageUrlList.map(function(item) { | 244 | detail.imageUrlList.map(function(item) { |
242 | that.dom.imageUpload.before('<div class="img" data-url="' + item + '" style="background-image:url(' + item + ');">'); | 245 | that.dom.imageUpload.before('<div class="img" data-url="' + item + '" style="background-image:url(' + item + ');">'); |
243 | }); | 246 | }); |
@@ -279,7 +282,7 @@ | @@ -279,7 +282,7 @@ | ||
279 | textField: "text", | 282 | textField: "text", |
280 | loadFilter: function (data) { | 283 | loadFilter: function (data) { |
281 | if (data && data.code == 200 && data.data.length > 0) { | 284 | if (data && data.code == 200 && data.data.length > 0) { |
282 | - that.dom.editSeriesId.combobox('select', data.data[0].id); | 285 | + //that.dom.editSeriesId.combobox('select', data.data[0].id); |
283 | } | 286 | } |
284 | 287 | ||
285 | return defaultLoadFilter(data); | 288 | return defaultLoadFilter(data); |
@@ -312,7 +315,7 @@ | @@ -312,7 +315,7 @@ | ||
312 | prompt:"二级分类", | 315 | prompt:"二级分类", |
313 | loadFilter: function(data) { | 316 | loadFilter: function(data) { |
314 | if (data && data.code == 200 && data.data.length > 0) { | 317 | if (data && data.code == 200 && data.data.length > 0) { |
315 | - that.dom.editMidSortId.combobox('select', data.data[0].id); | 318 | + //that.dom.editMidSortId.combobox('select', data.data[0].id); |
316 | } | 319 | } |
317 | 320 | ||
318 | return defaultLoadFilter(data); | 321 | return defaultLoadFilter(data); |
-
Please register or login to post a comment