mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-11 19:50:24 +08:00
67 lines
1.2 KiB
TypeScript
67 lines
1.2 KiB
TypeScript
import { FormSchema } from '/@/components/Form'
|
|
import { getUserRegex } from '/@/api/dashboard'
|
|
const colProps = {
|
|
span: 24,
|
|
}
|
|
|
|
const userregex = await getUserRegex()
|
|
|
|
export const schemas: FormSchema[] = [
|
|
{
|
|
field: 'title',
|
|
component: 'Input',
|
|
colProps,
|
|
label: '试卷标题',
|
|
defaultValue: userregex.Title,
|
|
},
|
|
{
|
|
field: 'class',
|
|
component: 'Input',
|
|
colProps,
|
|
label: '课程名称',
|
|
defaultValue: userregex.Class,
|
|
},
|
|
{
|
|
field: 'opencl',
|
|
component: 'Input',
|
|
colProps,
|
|
label: '开/闭卷',
|
|
defaultValue: userregex.OpenCl,
|
|
},
|
|
{
|
|
field: 'date',
|
|
component: 'Input',
|
|
colProps,
|
|
label: '考试日期',
|
|
defaultValue: userregex.Date,
|
|
},
|
|
{
|
|
field: 'time',
|
|
component: 'Input',
|
|
colProps,
|
|
label: '考试时长',
|
|
defaultValue: userregex.Time,
|
|
},
|
|
{
|
|
field: 'rate',
|
|
component: 'Input',
|
|
colProps,
|
|
label: '成绩占比',
|
|
defaultValue: userregex.Rate,
|
|
},
|
|
{
|
|
field: 'major',
|
|
component: 'Input',
|
|
colProps,
|
|
label: '大题题号',
|
|
defaultValue: userregex.Major,
|
|
},
|
|
{
|
|
field: 'sub',
|
|
component: 'Input',
|
|
colProps,
|
|
label: '小题题号',
|
|
defaultValue: userregex.Sub,
|
|
},
|
|
]
|