master
yulingwei 4 years ago
parent e789c941ed
commit e5996b47cc

@ -392,13 +392,18 @@
{
$(obj).parents('tr').children('.'+type+'-data-info').find('.info').val('');
$(obj).parents('tr').addClass('empty-'+type);
$(obj).parents('tr').children('.'+type+'-td').each(function(index, item){
if (index < 6) {
$(item).html('');
} else {
$(item).html('<a onclick="openForm()">添加</a>')
}
});
if ($(obj).parents('tr').hasClass('empty-reward') && $(obj).parents('tr').hasClass('empty-punish')) {
$(obj).parents('tr').remove();
} else {
$(obj).parents('tr').children('.'+type+'-td').each(function(index, item){
if (index < 6) {
$(item).html('');
} else {
$(item).html('<a onclick="openForm()">添加</a>')
}
});
}
countAmount();
}

Loading…
Cancel
Save