调度日志任务返回值反序列化展示,以及修复详情窗口报错问题

This commit is contained in:
ktianc 2024-01-22 22:33:17 +08:00
parent e08f0e153c
commit 35fff39af1
2 changed files with 15 additions and 3 deletions

View File

@ -119,7 +119,13 @@ const tableColumns = reactive<TableColumn[]>([
{
field: 'retval',
label: '任务返回值',
show: true
show: true,
slots: {
default: (data: any) => {
const row = data.row
return JSON.parse(row.retval)
}
}
},
{
field: 'exception',

View File

@ -50,7 +50,7 @@ const detailSchema = reactive<DescriptionsSchema[]>([
span: 24,
slots: {
default: (data: any) => {
const row = data.row
const row = data
return (
<>
<div>{selectDictLabel(execStrategyOptions.value, row.exec_strategy)}</div>
@ -85,7 +85,13 @@ const detailSchema = reactive<DescriptionsSchema[]>([
{
field: 'retval',
label: '任务返回值',
span: 24
span: 24,
slots: {
default: (data: any) => {
const row = data
return JSON.parse(row.retval)
}
}
},
{
field: 'exception',