* [bug#59266,done,0.5h] Remove link for from case.

This commit is contained in:
daitingting
2025-03-21 17:11:52 +08:00
committed by 谢杞钰
parent 0e29f80669
commit 16430c0f4e
2 changed files with 10 additions and 2 deletions
+9 -2
View File
@@ -163,8 +163,15 @@ window.onRenderCell = function(result, {row, col})
if(module) result.unshift({html: '<span class="label gray-pale rounded-full nowrap">' + module + '</span>'}); // 添加模块标签
if(row.data.fromCaseID > 0)
{
let caseLink = $.createLink('testcase', 'view', `id=${row.data.fromCaseID}`);
result.push({html: `[<a href=${caseLink} data-app='qa'><i class='icon icon-share'></i> #${row.data.fromCaseID}</a>]`}); // 添加来源用例链接
if(isFromDoc)
{
result.push({html: `[<i class='icon icon-share'></i> #${row.data.fromCaseID}]`}); // 添加来源用例
}
else
{
let caseLink = $.createLink('testcase', 'view', `id=${row.data.fromCaseID}`);
result.push({html: `[<a href=${caseLink} data-app='qa'><i class='icon icon-share'></i> #${row.data.fromCaseID}</a>]`}); // 添加来源用例链接
}
}
}
}
+1
View File
@@ -18,6 +18,7 @@ include 'header.html.php';
jsVar('confirmBatchDeleteSceneCase', $lang->testcase->confirmBatchDeleteSceneCase);
jsVar('caseChanged', $lang->testcase->changed);
jsVar('blockID', $blockID);
jsVar('isFromDoc', $isFromDoc);
$topSceneCount = count(array_filter(array_map(function($case){return $case->isScene && $case->grade == 1;}, $cases)));