123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- import { FormSchema } from '/@/components/Form';
- const basicOptions: SelectOptions = [
- {
- label: '付晓晓',
- value: '1',
- },
- {
- label: '周毛毛',
- value: '2',
- },
- ];
- const storeTypeOptions: SelectOptions = [
- {
- label: '私密',
- value: '1',
- },
- {
- label: '公开',
- value: '2',
- },
- ];
- export const schemas: FormSchema[] = [
- {
- field: 'f1',
- component: 'Input',
- label: '仓库名',
- required: true,
- },
- {
- field: 'f2',
- component: 'Input',
- label: '仓库域名',
- required: true,
- componentProps: {
- addonBefore: 'http://',
- addonAfter: 'com',
- },
- colProps: {
- offset: 2,
- },
- },
- {
- field: 'f3',
- component: 'Select',
- label: '仓库管理员',
- componentProps: {
- options: basicOptions,
- },
- required: true,
- colProps: {
- offset: 2,
- },
- },
- {
- field: 'f4',
- component: 'Select',
- label: '审批人',
- componentProps: {
- options: basicOptions,
- },
- required: true,
- },
- {
- field: 'f5',
- component: 'RangePicker',
- label: '生效日期',
- required: true,
- colProps: {
- offset: 2,
- },
- },
- {
- field: 'f6',
- component: 'Select',
- label: '仓库类型',
- componentProps: {
- options: storeTypeOptions,
- },
- required: true,
- colProps: {
- offset: 2,
- },
- },
- ];
- export const taskSchemas: FormSchema[] = [
- {
- field: 't1',
- component: 'Input',
- label: '任务名',
- required: true,
- },
- {
- field: 't2',
- component: 'Input',
- label: '任务描述',
- required: true,
- colProps: {
- offset: 2,
- },
- },
- {
- field: 't3',
- component: 'Select',
- label: '执行人',
- componentProps: {
- options: basicOptions,
- },
- required: true,
- colProps: {
- offset: 2,
- },
- },
- {
- field: 't4',
- component: 'Select',
- label: '责任人',
- componentProps: {
- options: basicOptions,
- },
- required: true,
- },
- {
- field: 't5',
- component: 'TimePicker',
- label: '生效日期',
- required: true,
- componentProps: {
- style: { width: '100%' },
- },
- colProps: {
- offset: 2,
- },
- },
- {
- field: 't6',
- component: 'Select',
- label: '任务类型',
- componentProps: {
- options: storeTypeOptions,
- },
- required: true,
- colProps: {
- offset: 2,
- },
- },
- ];
|