style(sj_1.1.0-beta3): 优化子级查看参数样式

This commit is contained in:
xlsea 2024-07-08 17:51:48 +08:00
parent 8c2dc1f670
commit 9ed4866822
2 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,7 @@ const { columns, columnChecks, data, loading, mobilePagination } = useTable({
const argsDom = () => (
<td class="n-data-table-td n-data-table-td--last-col" colspan={columns.value.length || 9}>
<NCode
class="max-h-300px overflow-auto"
class={`max-h-300px overflow-auto ${String(row.parentId) !== '0' ? 'pl-36px' : ''}`}
hljs={hljs}
code={parseArgsJson(row.argsStr)}
language="json"

View File

@ -1058,6 +1058,8 @@ declare namespace Api {
taskStatus: Common.TaskStatus;
/** 任务类型 */
taskType: Common.TaskType;
/** 父级 ID */
parentId: string;
/** 子节点 */
children: JobTaskTree[];
/** 是否存在下级 */