|
@@ -95,21 +95,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
$(btn).closest(".input-group").find("input").val('').css('backgroundColor', '#' + obj.hex);
|
|
$(btn).closest(".input-group").find("input").val('').css('backgroundColor', '#' + obj.hex);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- // 动态加载标签分组下拉
|
|
|
|
- var groupSelect = $('#c-group_id');
|
|
|
|
- if (groupSelect.length) {
|
|
|
|
- $.get('shop/goods_label_group/index', function (res) {
|
|
|
|
- if (res && res.rows) {
|
|
|
|
- $.each(res.rows, function (i, item) {
|
|
|
|
- groupSelect.append('<option value=\"' + item.id + '\">' + item.name + '</option>');
|
|
|
|
- });
|
|
|
|
- if (typeof groupSelect.data('value') !== 'undefined') {
|
|
|
|
- groupSelect.val(groupSelect.data('value'));
|
|
|
|
- }
|
|
|
|
- groupSelect.selectpicker('refresh');
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ // selectpage 会自动处理数据加载,无需手动加载
|
|
Form.api.bindevent($("form[role=form]"));
|
|
Form.api.bindevent($("form[role=form]"));
|
|
}
|
|
}
|
|
}
|
|
}
|