|
|
@ -6,59 +6,57 @@ export const columns: BasicColumn[] = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '流程名称', |
|
|
|
title: '流程名称', |
|
|
|
dataIndex: 'name', |
|
|
|
dataIndex: 'name', |
|
|
|
|
|
|
|
width: 200, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '流程KEY', |
|
|
|
title: '流程KEY', |
|
|
|
dataIndex: ['formCategory', 'name'], |
|
|
|
dataIndex: 'modelKey', |
|
|
|
|
|
|
|
width: 200, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '分类', |
|
|
|
title: '分类', |
|
|
|
dataIndex: ['formDefinitionJson', 'version'], |
|
|
|
dataIndex: ['processDefinition', 'category'], |
|
|
|
width: 200, |
|
|
|
width: 150, |
|
|
|
customRender: ({ record }) => { |
|
|
|
customRender: ({ record }) => { |
|
|
|
return record.formDefinitionJson?.version ? |
|
|
|
return record.processDefinition?.category ? |
|
|
|
h(Tag, {color: 'success'}, () => record.formDefinitionJson?.version): |
|
|
|
h(Tag, { color: 'success' }, () => String(record.processDefinition?.category).split(',')[1]) : |
|
|
|
h(Tag, {color: 'red'}, () => '暂无版本号'); |
|
|
|
h(Tag, { color: 'warning' }, () => '暂无分类'); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '流程版本', |
|
|
|
title: '流程版本', |
|
|
|
dataIndex: ['formDefinitionJson', 'status'], |
|
|
|
dataIndex: ['processDefinition', 'version'], |
|
|
|
width: 200, |
|
|
|
width: 150, |
|
|
|
customRender: ({ record }) => { |
|
|
|
customRender: ({ record }) => { |
|
|
|
return record.formDefinitionJson?.status == '1' ? |
|
|
|
const version = record.processDefinition?.version; |
|
|
|
h(Tag, { color: 'success' }, () => '已发布'): |
|
|
|
return h(Tag, { color: version ? 'success' : 'warning' }, () => version || '版本未发布'); |
|
|
|
h(Tag, { color: 'red' }, () => '未发布'); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '流程状态', |
|
|
|
title: '流程状态', |
|
|
|
dataIndex: ['formDefinitionJson', 'isPrimary'], |
|
|
|
dataIndex: ['processDefinition', 'suspend'], |
|
|
|
width: 200, |
|
|
|
width: 150, |
|
|
|
customRender: ({ record }) => { |
|
|
|
customRender: ({ record }) => { |
|
|
|
return record.formDefinitionJson?.isPrimary == '1' ? |
|
|
|
const suspend = record.processDefinition?.suspend; |
|
|
|
h(Tag, { color: 'success' }, () => '主版本'): |
|
|
|
return h(Tag, { color: suspend ? 'error' : (typeof suspend === 'undefined' ? 'warning' :'success')}, |
|
|
|
h(Tag, { color: 'red' }, () => '非主版本'); |
|
|
|
() => suspend ? '已挂起' : (typeof suspend === 'undefined' ? '草稿' : '已发布')); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '更新时间', |
|
|
|
title: '更新时间', |
|
|
|
dataIndex: ['formDefinitionJson', 'isPrimary'], |
|
|
|
dataIndex: 'lastUpdated', |
|
|
|
width: 200, |
|
|
|
width: 200, |
|
|
|
customRender: ({ record }) => { |
|
|
|
|
|
|
|
return record.formDefinitionJson?.isPrimary == '1' ? |
|
|
|
|
|
|
|
h(Tag, { color: 'success' }, () => '主版本'): |
|
|
|
|
|
|
|
h(Tag, { color: 'red' }, () => '非主版本'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [ |
|
|
|
export const searchFormSchema: FormSchema[] = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
field: 'name', |
|
|
|
label: '流程名称', |
|
|
|
label: '流程名称', |
|
|
|
field: 'categoryId', |
|
|
|
|
|
|
|
slot: 'categoryId', |
|
|
|
|
|
|
|
component: 'Input', |
|
|
|
component: 'Input', |
|
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
|
|
placeholder: '请输入流程名称' |
|
|
|
|
|
|
|
}, |
|
|
|
colProps: { span: 8 } |
|
|
|
colProps: { span: 8 } |
|
|
|
} |
|
|
|
} |
|
|
|
]; |
|
|
|
]; |
|
|
|