From e5996b47ccff83a4ab7aab279156dafdd1591c84 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Mon, 20 Jul 2020 20:25:16 +0800 Subject: [PATCH] upt --- .../StatementMangement/rewardManageSave.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Application/Admin/View/StatementMangement/rewardManageSave.html b/Application/Admin/View/StatementMangement/rewardManageSave.html index 3bded8877..715ee3069 100644 --- a/Application/Admin/View/StatementMangement/rewardManageSave.html +++ b/Application/Admin/View/StatementMangement/rewardManageSave.html @@ -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('添加') - } - }); + 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('添加') + } + }); + } + countAmount(); }