Blame view

yudao-ui-admin-vue3/src/views/infra/apiErrorLog/apiErrorLog.data.ts 1.52 KB
8c74e527   xingyu   perf: aotu import...
1
  import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
80a3ae8d   xingyu   feat: add vue3(el...
2
3
  
  // CrudSchema
fd4bc8cc   xingyu4j   refactor: vxe
4
5
6
  const crudSchemas = reactive<VxeCrudSchema>({
    primaryKey: 'id',
    primaryType: 'seq',
e1a05c13   YunaiV   vue3:review 代码生成、...
7
    primaryTitle: '日志编号',
fd4bc8cc   xingyu4j   refactor: vxe
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
43
44
45
46
47
48
49
    action: true,
    actionWidth: '300',
    columns: [
      {
        title: '链路追踪',
        field: 'traceId',
        isTable: false
      },
      {
        title: '用户编号',
        field: 'userId',
        isSearch: true
      },
      {
        title: '用户类型',
        field: 'userType',
        dictType: DICT_TYPE.USER_TYPE,
        isSearch: true
      },
      {
        title: '应用名',
        field: 'applicationName',
        isSearch: true
      },
      {
        title: '请求方法名',
        field: 'requestMethod'
      },
      {
        title: '请求地址',
        field: 'requestUrl',
        isSearch: true
      },
      {
        title: '异常发生时间',
        field: 'exceptionTime',
        formatter: 'formatDate',
        search: {
          show: true,
          itemRender: {
            name: 'XDataTimePicker'
          }
93a97cd5   xingyu   perf: 优化表单校验和查询参数
50
        }
80a3ae8d   xingyu   feat: add vue3(el...
51
      },
fd4bc8cc   xingyu4j   refactor: vxe
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
      {
        title: '异常名',
        field: 'exceptionName'
      },
      {
        title: '处理状态',
        field: 'processStatus',
        dictType: DICT_TYPE.INFRA_API_ERROR_LOG_PROCESS_STATUS,
        dictClass: 'number',
        isSearch: true
      },
      {
        title: '处理人',
        field: 'processUserId',
        isTable: false
      },
      {
        title: '处理时间',
        field: 'processTime',
        formatter: 'formatDate',
        isTable: false
80a3ae8d   xingyu   feat: add vue3(el...
73
      }
fd4bc8cc   xingyu4j   refactor: vxe
74
75
76
    ]
  })
  export const { allSchemas } = useVxeCrudSchemas(crudSchemas)