Showing
1 changed file
with
29 additions
and
2 deletions
... | ... | @@ -11,6 +11,14 @@ export const columns: BasicColumn[] = [ |
11 | 11 | width: 150, |
12 | 12 | }, |
13 | 13 | { |
14 | + title: '接口类型', | |
15 | + dataIndex: 'interfaceType', | |
16 | + width: 80, | |
17 | + format(text) { | |
18 | + return text === 'SYSTEM' ? '系统默认' : '自定义'; | |
19 | + }, | |
20 | + }, | |
21 | + { | |
14 | 22 | title: '请求方式', |
15 | 23 | dataIndex: 'requestContentType', |
16 | 24 | width: 90, |
... | ... | @@ -42,7 +50,7 @@ export const searchFormSchema: FormSchema[] = [ |
42 | 50 | field: 'name', |
43 | 51 | label: '接口名称', |
44 | 52 | component: 'Input', |
45 | - colProps: { span: 9 }, | |
53 | + colProps: { span: 7 }, | |
46 | 54 | componentProps: { |
47 | 55 | maxLength: 36, |
48 | 56 | placeholder: '请输入接口名称', |
... | ... | @@ -52,7 +60,7 @@ export const searchFormSchema: FormSchema[] = [ |
52 | 60 | field: 'state', |
53 | 61 | label: '发布状态', |
54 | 62 | component: 'Select', |
55 | - colProps: { span: 9 }, | |
63 | + colProps: { span: 7 }, | |
56 | 64 | componentProps: { |
57 | 65 | options: [ |
58 | 66 | { |
... | ... | @@ -67,6 +75,25 @@ export const searchFormSchema: FormSchema[] = [ |
67 | 75 | placeholder: '请选择发布状态', |
68 | 76 | }, |
69 | 77 | }, |
78 | + { | |
79 | + field: 'interfaceType', | |
80 | + label: '接口类型', | |
81 | + component: 'Select', | |
82 | + colProps: { span: 7 }, | |
83 | + componentProps: { | |
84 | + options: [ | |
85 | + { | |
86 | + label: '系统默认', | |
87 | + value: 'SYSTEM', | |
88 | + }, | |
89 | + { | |
90 | + label: '自定义', | |
91 | + value: 'CUSTOM', | |
92 | + }, | |
93 | + ], | |
94 | + placeholder: '请选择接口类型', | |
95 | + }, | |
96 | + }, | |
70 | 97 | ]; |
71 | 98 | |
72 | 99 | //表单配置 | ... | ... |