* [bug#52534,done,0.5h] render drill result.

This commit is contained in:
zhouxin
2024-07-15 02:26:01 +00:00
committed by qixinzhi
parent c463d5f524
commit 7105b60e55
2 changed files with 9 additions and 1 deletions
+7
View File
@@ -287,3 +287,10 @@ window.getHeight = function(height = 800)
return Math.min(windowHeight - offsetTop - paddingBottom * 2 - 10, height);
}
window.renderDrillResult = function(result, {col, row})
{
if(col.name == 'name' && row.data.type == 'program') result[0].props.href = $.createLink('program', 'kanban');
return result;
}
+2 -1
View File
@@ -21,5 +21,6 @@ dtable
set::striped(true),
set::bordered(true),
set::cols($cols),
set::data($datas)
set::data($datas),
set::onRenderCell(jsRaw('window.renderDrillResult'))
);