...
|
...
|
@@ -27,10 +27,10 @@ exports.init = function() { |
|
|
$('.Add').eq(type).append(inputAdd);
|
|
|
});
|
|
|
new dropDown({
|
|
|
el: "#store-type"
|
|
|
el: "#shopNature"
|
|
|
});
|
|
|
new dropDown({
|
|
|
el: "#store-model"
|
|
|
el: "#shopsType"
|
|
|
});
|
|
|
new dropDown({
|
|
|
el: "#brand-name",
|
...
|
...
|
@@ -44,7 +44,7 @@ exports.init = function() { |
|
|
var check = $(this).closest('tr').html();
|
|
|
var brand = check.split('<td>')[check.split('<td>').length - 2];
|
|
|
var supplier = check.split('<td>')[check.split('<td>').length - 1];
|
|
|
var table = '<tr><td>' + brand + '<td>' + supplier + '<td><button type="button" class="btn btn-danger btn-xs">删除</button></td></tr>';
|
|
|
var table = '<tr><td>' + brand + '<td>' + supplier + '<td><button type="button" class="delete btn btn-danger btn-xs">删除</button></td></tr>';
|
|
|
$('#updateBrand tbody').append(table);
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -54,7 +54,7 @@ exports.init = function() { |
|
|
var check = $(this).closest('tr').html();
|
|
|
var brand = check.split('<td>')[check.split('<td>').length - 2];
|
|
|
var supplier = check.split('<td>')[check.split('<td>').length - 1];
|
|
|
var table = '<tr><td>' + brand + '<td>' + supplier + '<td><button type="button" class="btn btn-danger btn-xs">删除</button></td></tr>';
|
|
|
var table = '<tr><td>' + brand + '<td>' + supplier + '<td><button type="button" class="delete btn btn-danger btn-xs">删除</button></td></tr>';
|
|
|
$('#updateBrand tbody').append(table);
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -198,4 +198,7 @@ exports.init = function() { |
|
|
}
|
|
|
})
|
|
|
})
|
|
|
$('#updateBrand').on('click','.delete',function(){
|
|
|
$(this).parents('tr').parent().remove()
|
|
|
})
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|