|
|
@ -18,9 +18,8 @@ export const columns: BasicColumn[] = [ |
|
|
|
dataIndex: ['processDefinition', 'category'], |
|
|
|
dataIndex: ['processDefinition', 'category'], |
|
|
|
width: 150, |
|
|
|
width: 150, |
|
|
|
customRender: ({ record }) => { |
|
|
|
customRender: ({ record }) => { |
|
|
|
return record.processDefinition?.category ? |
|
|
|
const category = record.processDefinition?.category; |
|
|
|
h(Tag, { color: 'success' }, () => String(record.processDefinition?.category).split(',')[1]) : |
|
|
|
return h(Tag, { color: 'processing' }, () => String(record.processDefinition?.category).split(',')[1] || '未分类'); |
|
|
|
h(Tag, { color: 'warning' }, () => '暂无分类'); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|