| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- import { FormSchema, BasicColumn } from '/@/components/Table';
- export const tableColumns: BasicColumn[] = [
- {
- title: 'API名称',
- dataIndex: 'apiName',
- key: 'apiName',
- align: 'center',
- },
- {
- title: '请求路径',
- dataIndex: 'reqUrl',
- key: 'reqUrl',
- align: 'center',
- },
- {
- title: 'HTTP方法',
- dataIndex: 'reqMethod',
- key: 'reqMethod',
- align: 'center',
- },
- {
- title: '参数',
- dataIndex: 'reqParam',
- key: 'reqParam',
- align: 'center',
- },
- {
- title: '状态',
- dataIndex: 'apiStatus',
- key: 'apiStatus',
- align: 'center',
- },
- {
- title: '操作',
- dataIndex: 'action',
- width: 120,
- align: 'center',
- slots: { customRender: 'action' },
- },
- ];
- export const formAddSchema: FormSchema[] = [
- {
- field: 'apiName',
- label: '接口名称',
- required: true,
- component: 'Input',
- },
- {
- field: 'reqUrl',
- label: '请求路径',
- required: true,
- component: 'Input',
- },
- {
- field: 'reqMethod',
- label: '请求方式',
- required: true,
- component: 'Input',
- },
- ];
|