干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2024-05-27 fa3ac93010bea3805438ee3ab0a182bfbf7423da
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
43
44
45
46
47
48
49
50
51
52
import { BasicColumn, FormSchema } from '/@/components/Table';
 
export const columns: BasicColumn[] = [
  {
    title: '路由ID',
    dataIndex: 'routerId',
    width: 200,
    align: 'left',
  },
  {
    title: '路由名称',
    dataIndex: 'name',
    width: 200,
  },
  {
    title: '路由URI',
    dataIndex: 'uri',
    width: 200,
  },
  {
    title: '状态',
    dataIndex: 'status',
    slots: { customRender: 'status' },
    width: 200,
  },
];
 
export const formSchema: FormSchema[] = [
  {
    field: 'name',
    label: '路由ID',
    component: 'Input',
    required: true,
  },
  {
    field: 'name',
    label: '路由名称',
    component: 'InputNumber',
    required: true,
  },
  {
    field: 'uri',
    label: '路由URI',
    component: 'Input',
  },
  {
    field: 'predicates',
    label: '路由条件',
    slot: 'predicates',
    component: 'Input',
  },
];