Showing
1 changed file
with
29 additions
and
2 deletions
| @@ -11,6 +11,14 @@ export const columns: BasicColumn[] = [ | @@ -11,6 +11,14 @@ export const columns: BasicColumn[] = [ | ||
| 11 | width: 150, | 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 | title: '请求方式', | 22 | title: '请求方式', | 
| 15 | dataIndex: 'requestContentType', | 23 | dataIndex: 'requestContentType', | 
| 16 | width: 90, | 24 | width: 90, | 
| @@ -42,7 +50,7 @@ export const searchFormSchema: FormSchema[] = [ | @@ -42,7 +50,7 @@ export const searchFormSchema: FormSchema[] = [ | ||
| 42 | field: 'name', | 50 | field: 'name', | 
| 43 | label: '接口名称', | 51 | label: '接口名称', | 
| 44 | component: 'Input', | 52 | component: 'Input', | 
| 45 | - colProps: { span: 9 }, | 53 | + colProps: { span: 7 }, | 
| 46 | componentProps: { | 54 | componentProps: { | 
| 47 | maxLength: 36, | 55 | maxLength: 36, | 
| 48 | placeholder: '请输入接口名称', | 56 | placeholder: '请输入接口名称', | 
| @@ -52,7 +60,7 @@ export const searchFormSchema: FormSchema[] = [ | @@ -52,7 +60,7 @@ export const searchFormSchema: FormSchema[] = [ | ||
| 52 | field: 'state', | 60 | field: 'state', | 
| 53 | label: '发布状态', | 61 | label: '发布状态', | 
| 54 | component: 'Select', | 62 | component: 'Select', | 
| 55 | - colProps: { span: 9 }, | 63 | + colProps: { span: 7 }, | 
| 56 | componentProps: { | 64 | componentProps: { | 
| 57 | options: [ | 65 | options: [ | 
| 58 | { | 66 | { | 
| @@ -67,6 +75,25 @@ export const searchFormSchema: FormSchema[] = [ | @@ -67,6 +75,25 @@ export const searchFormSchema: FormSchema[] = [ | ||
| 67 | placeholder: '请选择发布状态', | 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 | //表单配置 |