This commit is contained in:
daitingting
2024-01-11 05:55:50 +00:00
parent d1f3c1dfad
commit c3bebc9915
2 changed files with 10 additions and 2 deletions
+7
View File
@@ -34,6 +34,13 @@ window.onRenderCell = function(result, {row, col})
if(row.data.color) result[0].props.style = 'color: ' + row.data.color;
const module = this.options.modules[row.data.module];
if(module) result.unshift({html: '<span class="label lighter rounded-full">' + module + '</span>'}); // 添加模块标签
if(row.data.case)
{
caseLink = $.createLink('testcase', 'view', "caseID=" + row.data.case + "&version=" + row.data.caseVersion);
result.push({html: '<a href="' + caseLink + '"class="text-gray" title="' + row.data.case + '">[' + caseCommonLang + '#' + row.data.case + ']</a>'});
}
}
return result;
+3 -2
View File
@@ -10,8 +10,9 @@ declare(strict_types=1);
*/
namespace zin;
jsVar('productID', $product->id);
jsVar('branch', $branch);
jsVar('productID', $product->id);
jsVar('branch', $branch);
jsVar('caseCommonLang', $this->lang->testcase->common);
$queryMenuLink = createLink('bug', 'browse', "productID={$product->id}&branch={$branch}&browseType=bySearch&param={queryID}");
$currentType = $browseType == 'bysearch' ? $param : ($browseType == 'bymodule' ? $this->session->bugBrowseType : $browseType);