|
|
|
@ -65,8 +65,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
$(document).on('click', '.delete-btn', function () {
|
|
|
|
$(document).on('click', '.delete-btn', function () {
|
|
|
|
var id = $(this).closest('.list-item').data('id');
|
|
|
|
var id = $(this).closest('.list-item').data('id');
|
|
|
|
requestFN({ type: 'POST', url: `deleteById?id=${id}` }, function (data) {
|
|
|
|
const { confirm_del, tips } = userLangConfig[locale].base;
|
|
|
|
getTemplateList();
|
|
|
|
layer.confirm(confirm_del, { icon: 3, title: tips }, function (index) {
|
|
|
|
|
|
|
|
layer.close(index);
|
|
|
|
|
|
|
|
requestFN({ type: 'POST', url: `deleteById?id=${id}` }, function (data) {
|
|
|
|
|
|
|
|
getTemplateList();
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|