feat:【antd】bpm task 的部分迁移
This commit is contained in:
@@ -19,13 +19,22 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
// TODO @AI:是不是直接 import 下,不要动态;
|
||||
{
|
||||
fieldName: 'processDefinitionId',
|
||||
fieldName: 'processDefinitionKey',
|
||||
label: '所属流程',
|
||||
component: 'Input',
|
||||
component: 'ApiSelect',
|
||||
componentProps: {
|
||||
placeholder: '请输入流程定义的编号',
|
||||
placeholder: '请选择流程定义',
|
||||
allowClear: true,
|
||||
api: async () => {
|
||||
const { getSimpleProcessDefinitionList } = await import(
|
||||
'#/api/bpm/definition'
|
||||
);
|
||||
return await getSimpleProcessDefinitionList();
|
||||
},
|
||||
labelField: 'name',
|
||||
valueField: 'key',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -91,6 +100,12 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
title: '发起人',
|
||||
minWidth: 120,
|
||||
},
|
||||
{
|
||||
field: 'processInstance.createTime',
|
||||
title: '发起时间',
|
||||
minWidth: 180,
|
||||
formatter: 'formatDateTime',
|
||||
},
|
||||
{
|
||||
field: 'name',
|
||||
title: '当前任务',
|
||||
|
||||
@@ -14,11 +14,10 @@ defineOptions({ name: 'BpmTodoTask' });
|
||||
|
||||
/** 办理任务 */
|
||||
function handleAudit(row: BpmTaskApi.Task) {
|
||||
console.warn(row);
|
||||
router.push({
|
||||
name: 'BpmProcessInstanceDetail',
|
||||
query: {
|
||||
id: row.processInstance.id,
|
||||
id: row.processInstance!.id,
|
||||
taskId: row.id,
|
||||
},
|
||||
});
|
||||
@@ -45,14 +44,12 @@ const [Grid] = useVbenVxeGrid({
|
||||
},
|
||||
rowConfig: {
|
||||
keyField: 'id',
|
||||
isHover: true,
|
||||
},
|
||||
toolbarConfig: {
|
||||
refresh: true,
|
||||
search: true,
|
||||
},
|
||||
cellConfig: {
|
||||
height: 64,
|
||||
},
|
||||
} as VxeTableGridOptions<BpmTaskApi.Task>,
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user