Skip to content

Commit

Permalink
调度日志任务返回值反序列化展示,以及修复详情窗口报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ktianc committed Jan 22, 2024
1 parent e08f0e1 commit 35fff39
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion kinit-admin/src/views/Vadmin/System/Record/Task/Task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 35fff39

Please sign in to comment.