fix: [BPM 工作流] 流程模型列表排序问题修复
This commit is contained in:
49
apps/web-antd/src/views/bpm/model/modules/data.ts
Normal file
49
apps/web-antd/src/views/bpm/model/modules/data.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
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: '流程名称',
|
||||
width: 250,
|
||||
slots: { default: 'name' },
|
||||
},
|
||||
{
|
||||
field: 'startUserIds',
|
||||
title: '可见范围',
|
||||
width: 150,
|
||||
slots: { default: 'startUserIds' },
|
||||
},
|
||||
{
|
||||
field: 'type',
|
||||
title: '流程类型',
|
||||
width: 150,
|
||||
cellRender: {
|
||||
name: 'CellDict',
|
||||
props: { type: DICT_TYPE.BPM_MODEL_TYPE },
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'formType',
|
||||
title: '表单信息',
|
||||
width: 150,
|
||||
slots: { default: 'formInfo' },
|
||||
},
|
||||
{
|
||||
field: 'deploymentTime',
|
||||
title: '最后发布',
|
||||
width: 260,
|
||||
slots: { default: 'deploymentTime' },
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
width: 150,
|
||||
fixed: 'right',
|
||||
slots: { default: 'actions' },
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user