12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
- const { t } = useI18n() // 国际化
- // crudSchemas
- const crudSchemas = reactive<VxeCrudSchema>({
- primaryKey: 'id',
- primaryType: null,
- action: true,
- columns: [
- {
- title: '任务编号',
- field: 'id',
- table: {
- width: 320
- }
- },
- {
- title: '任务名称',
- field: 'name',
- isSearch: true
- },
- {
- title: '所属流程',
- field: 'processInstance.name'
- },
- {
- title: '流程发起人',
- field: 'processInstance.startUserNickname'
- },
- {
- title: t('common.status'),
- field: 'result',
- dictType: DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT,
- dictClass: 'number',
- isSearch: true
- },
- {
- title: '原因',
- field: 'reason'
- },
- {
- title: t('common.createTime'),
- field: 'createTime',
- formatter: 'formatDate',
- table: {
- width: 180
- }
- }
- ]
- })
- export const { allSchemas } = useVxeCrudSchemas(crudSchemas)
|