2025-06-13 22:02:06 +08:00
|
|
|
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|
|
|
|
import type { BpmModelApi } from '#/api/bpm/model';
|
|
|
|
|
|
|
|
|
|
import { DICT_TYPE } from '#/utils';
|
|
|
|
|
|
|
|
|
|
/** 列表的字段 */
|
|
|
|
|
export function useGridColumns(): VxeTableGridOptions<BpmModelApi.ModelVO>['columns'] {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
field: 'name',
|
|
|
|
|
title: '流程名称',
|
2025-06-14 12:09:15 +08:00
|
|
|
minWidth: 250,
|
2025-06-13 22:02:06 +08:00
|
|
|
slots: { default: 'name' },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'startUserIds',
|
|
|
|
|
title: '可见范围',
|
2025-06-14 12:09:15 +08:00
|
|
|
minWidth: 150,
|
2025-06-13 22:02:06 +08:00
|
|
|
slots: { default: 'startUserIds' },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'type',
|
|
|
|
|
title: '流程类型',
|
2025-06-14 12:09:15 +08:00
|
|
|
minWidth: 150,
|
2025-06-13 22:02:06 +08:00
|
|
|
cellRender: {
|
|
|
|
|
name: 'CellDict',
|
|
|
|
|
props: { type: DICT_TYPE.BPM_MODEL_TYPE },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'formType',
|
|
|
|
|
title: '表单信息',
|
2025-06-14 12:09:15 +08:00
|
|
|
minWidth: 150,
|
2025-06-13 22:02:06 +08:00
|
|
|
slots: { default: 'formInfo' },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'deploymentTime',
|
|
|
|
|
title: '最后发布',
|
2025-06-14 12:09:15 +08:00
|
|
|
minWidth: 260,
|
2025-06-13 22:02:06 +08:00
|
|
|
slots: { default: 'deploymentTime' },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
2025-06-14 12:09:15 +08:00
|
|
|
width: 200,
|
2025-06-13 22:02:06 +08:00
|
|
|
fixed: 'right',
|
|
|
|
|
slots: { default: 'actions' },
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|