From 4cc338bb2dc142aa8fb0e910380f1b6d08b4bfb7 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 30 Jan 2024 10:43:20 +0800 Subject: [PATCH] * Adjust execution name style. --- module/my/js/execution.ui.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/my/js/execution.ui.js b/module/my/js/execution.ui.js index 9c2e9cb3b3..992ec19783 100644 --- a/module/my/js/execution.ui.js +++ b/module/my/js/execution.ui.js @@ -2,10 +2,16 @@ window.onRenderExecutionCell = function(result, info) { if(info.col.name === 'name' && systemMode == 'ALM') { - result[0].props.className = 'flex-1 w-0'; + if(typeof result[0] == 'string') + { + result[0] = {html: result[0], className: 'flex-1 w-0'}; + } + else + { + result[0].props.className = 'flex-1 w-0'; + } result.push({html: '' + typeList[info.row.data.type] + ''}, {className:'row-reverse'}); } return result; } -