1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| import type { VxeGridProps } from '#/adapter/vxe-table';
|
| import { DictEnum } from '@vben/constants';
|
| import { renderDict } from '#/utils/render';
|
| export const columns: VxeGridProps['columns'] = [
| { type: 'checkbox', width: 60, fixed: 'left' },
| {
| title: '处理时间',
| field: 'handleTime',
| width: 200
| },
| {
| title: '操作用户',
| field: 'operaUserName',
| width: 160
| },
| {
| title: '操作',
| field: 'opera',
| width: 100,
| slots: {
| default: ({ row }) => {
| if (!row.opera) {
| return '';
| }
| return renderDict(row.opera, DictEnum.REPAIR_RECORD_HANDLE);
| }
| }
| },
| {
| title: '操作结果',
| field: 'operaResult',
| width: 160
| },
| {
| title: '',
| field: 'blank',
| minWidth: 100
| }
| ];
|
|