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

Loading…
Cancel
Save