From de4818c724225bb68f9c8982c490360c6fa3f62b Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 4 Dec 2019 14:47:33 +0800 Subject: [PATCH] * finish task #6637. --- module/testtask/view/batchrun.html.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/testtask/view/batchrun.html.php b/module/testtask/view/batchrun.html.php index 6d4a76d03b..3510cdf61b 100644 --- a/module/testtask/view/batchrun.html.php +++ b/module/testtask/view/batchrun.html.php @@ -55,7 +55,7 @@ type == 'group') echo "colspan='2'"?>>desc' class='$stepClass'>" . $ID . "、" . $step->desc . ''?> type != 'group'):?> expect'>" . $lang->testcase->stepExpect . ":" . $step->expect . ''?> - testcase->resultList, 'pass', "class='form-control'")?> + testcase->resultList, 'pass', "class='form-control'")?> @@ -78,6 +78,7 @@ function showAction(value, obj) if(value == 'pass') { $(obj).addClass('hidden'); + $(obj).find('select[id^=steps]').val(value); if($(obj).parent().prop('tagName') == 'TR') { $(obj).closest('tbody').children('tr').each(function(){ @@ -89,6 +90,7 @@ function showAction(value, obj) else { $(obj).removeClass('hidden'); + $(obj).find('select[id^=steps]').eq(-1).val(value); if($(obj).parent().prop('tagName') == 'TR') { $(obj).closest('tbody').children('tr').each(function(){