|
|
@ -1,5 +1,6 @@ |
|
|
import { DescItem } from "/@/components/Description"; |
|
|
import { DescItem } from "/@/components/Description"; |
|
|
import { useLocalization } from '/@/hooks/abp/useLocalization'; |
|
|
import { useLocalization } from '/@/hooks/abp/useLocalization'; |
|
|
|
|
|
import { JobStatusMap, JobTypeMap, JobPriorityMap } from './typing'; |
|
|
|
|
|
|
|
|
const { L } = useLocalization('TaskManagement'); |
|
|
const { L } = useLocalization('TaskManagement'); |
|
|
|
|
|
|
|
|
@ -52,16 +53,25 @@ export function getDescriptionSchemas() : DescItem[] { |
|
|
{ |
|
|
{ |
|
|
label: L('DisplayName:Status'), |
|
|
label: L('DisplayName:Status'), |
|
|
field: 'status', |
|
|
field: 'status', |
|
|
|
|
|
render: (val) => { |
|
|
|
|
|
return JobStatusMap[val]; |
|
|
|
|
|
}, |
|
|
span: 1, |
|
|
span: 1, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: L('DisplayName:JobType'), |
|
|
label: L('DisplayName:JobType'), |
|
|
field: 'jobType', |
|
|
field: 'jobType', |
|
|
|
|
|
render: (val) => { |
|
|
|
|
|
return JobTypeMap[val]; |
|
|
|
|
|
}, |
|
|
span: 1, |
|
|
span: 1, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: L('DisplayName:Priority'), |
|
|
label: L('DisplayName:Priority'), |
|
|
field: 'priority', |
|
|
field: 'priority', |
|
|
|
|
|
render: (val) => { |
|
|
|
|
|
return JobPriorityMap[val]; |
|
|
|
|
|
}, |
|
|
span: 1, |
|
|
span: 1, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
|