...
|
...
|
@@ -232,12 +232,15 @@ |
|
|
this.dom.editProductCode.textbox('setValue', detail.productCode);
|
|
|
this.dom.editMaxSortId.combobox('select', detail.maxSortId);
|
|
|
this.dom.editMidSortId.combobox('select', detail.midSortId);
|
|
|
if (detail.seriesId && detail.seriesId != 0) {
|
|
|
this.dom.editSeriesId.combobox('select', detail.seriesId);
|
|
|
}
|
|
|
|
|
|
this.dom.keyword.textbox('setValue', detail.keyWords);
|
|
|
$('input[name=gender]').eq(detail.gender - 1).attr('checked','true');
|
|
|
$('.group-color li[data-id=' + detail.colorId + ']').addClass('actived');
|
|
|
|
|
|
if (detail.imageUrlList.length > 0) {
|
|
|
if (detail.imageUrlList && detail.imageUrlList.length > 0) {
|
|
|
detail.imageUrlList.map(function(item) {
|
|
|
that.dom.imageUpload.before('<div class="img" data-url="' + item + '" style="background-image:url(' + item + ');">');
|
|
|
});
|
...
|
...
|
@@ -279,7 +282,7 @@ |
|
|
textField: "text",
|
|
|
loadFilter: function (data) {
|
|
|
if (data && data.code == 200 && data.data.length > 0) {
|
|
|
that.dom.editSeriesId.combobox('select', data.data[0].id);
|
|
|
//that.dom.editSeriesId.combobox('select', data.data[0].id);
|
|
|
}
|
|
|
|
|
|
return defaultLoadFilter(data);
|
...
|
...
|
@@ -312,7 +315,7 @@ |
|
|
prompt:"二级分类",
|
|
|
loadFilter: function(data) {
|
|
|
if (data && data.code == 200 && data.data.length > 0) {
|
|
|
that.dom.editMidSortId.combobox('select', data.data[0].id);
|
|
|
//that.dom.editMidSortId.combobox('select', data.data[0].id);
|
|
|
}
|
|
|
|
|
|
return defaultLoadFilter(data);
|
...
|
...
|
|