Blame view

yudao-ui-admin-vue3/src/views/infra/apiErrorLog/apiErrorLog.data.ts 1.6 KB
80a3ae8d   xingyu   feat: add vue3(el...
1
  import { reactive } from 'vue'
80a3ae8d   xingyu   feat: add vue3(el...
2
  import { DICT_TYPE } from '@/utils/dict'
fd4bc8cc   xingyu4j   refactor: vxe
3
  import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
80a3ae8d   xingyu   feat: add vue3(el...
4
5
  
  // CrudSchema
fd4bc8cc   xingyu4j   refactor: vxe
6
7
8
  const crudSchemas = reactive<VxeCrudSchema>({
    primaryKey: 'id',
    primaryType: 'seq',
e1a05c13   YunaiV   vue3:review 代码生成、...
9
    primaryTitle: '日志编号',
fd4bc8cc   xingyu4j   refactor: vxe
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
50
51
    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: 优化表单校验和查询参数
52
        }
80a3ae8d   xingyu   feat: add vue3(el...
53
      },
fd4bc8cc   xingyu4j   refactor: vxe
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
      {
        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...
75
      }
fd4bc8cc   xingyu4j   refactor: vxe
76
77
78
    ]
  })
  export const { allSchemas } = useVxeCrudSchemas(crudSchemas)