...
|
...
|
@@ -124,6 +124,8 @@ $("#filter-btn").click(function(){ |
|
|
|
|
|
$("#add-btn").click(function(){
|
|
|
attributeOp("新建", '/erpproduct/brandfolder/add', {});
|
|
|
$('#type').attr("disabled", false);
|
|
|
|
|
|
});
|
|
|
|
|
|
$(document).on('click', '.edit-class-btn', function () {
|
...
|
...
|
@@ -131,6 +133,8 @@ $(document).on('click', '.edit-class-btn', function () { |
|
|
|
|
|
console.log(item);
|
|
|
attributeOp("修改", '/erpproduct/brandfolder/update', item);
|
|
|
$('#type').attr("disabled", true);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
...
|
...
|
@@ -142,6 +146,7 @@ function attributeOp(prefix, url, item) { |
|
|
return a.submit(url, function (option) {
|
|
|
option.data.categoryId = item.categoryId;
|
|
|
option.data.attributeId = item.attributeId;
|
|
|
option.data.shopsId = common.util.__input("shopsId");
|
|
|
option.success = function (res) {
|
|
|
res = res.data;
|
|
|
if (res.code == "200") {
|
...
|
...
|
|