Browse Source
Merge pull request #484 from colinin/5.1.1
feat(tasks): displays formatted job status, category, and priority
pull/489/head
yx lin
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
0 deletions
-
apps/vue/src/views/task-management/background-jobs/datas/DescriptionData.ts
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
import { DescItem } from "/@/components/Description"; |
|
|
|
import { useLocalization } from '/@/hooks/abp/useLocalization'; |
|
|
|
import { JobStatusMap, JobTypeMap, JobPriorityMap } from './typing'; |
|
|
|
|
|
|
|
const { L } = useLocalization('TaskManagement'); |
|
|
|
|
|
|
|
@ -52,16 +53,25 @@ export function getDescriptionSchemas() : DescItem[] { |
|
|
|
{ |
|
|
|
label: L('DisplayName:Status'), |
|
|
|
field: 'status', |
|
|
|
render: (val) => { |
|
|
|
return JobStatusMap[val]; |
|
|
|
}, |
|
|
|
span: 1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: L('DisplayName:JobType'), |
|
|
|
field: 'jobType', |
|
|
|
render: (val) => { |
|
|
|
return JobTypeMap[val]; |
|
|
|
}, |
|
|
|
span: 1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: L('DisplayName:Priority'), |
|
|
|
field: 'priority', |
|
|
|
render: (val) => { |
|
|
|
return JobPriorityMap[val]; |
|
|
|
}, |
|
|
|
span: 1, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|