1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-11 03:20:24 +08:00

add /api/getUserRegex

This commit is contained in:
源文雨
2023-04-21 00:29:25 +08:00
parent f65874cf52
commit 155420d0a7
10 changed files with 337 additions and 276 deletions

View File

@@ -4,4 +4,5 @@ export default {
workbench: '工作台',
analysis: '分析页',
account: '用户管理',
regex: '试卷解析配置',
}

View File

@@ -19,6 +19,10 @@ const menu: MenuModule = {
path: 'account',
name: t('routes.dashboard.account'),
},
{
path: 'regex',
name: t('routes.dashboard.regex'),
},
],
},
}

View File

@@ -43,6 +43,15 @@ const dashboard: AppRouteModule = {
roles: [RoleEnum.SUPER],
},
},
{
path: 'regex',
name: 'Regex',
component: () => import('/@/views/dashboard/regex/index.vue'),
meta: {
// affix: true,
title: t('routes.dashboard.regex'),
},
},
],
}

View File

@@ -1,6 +1,6 @@
import { FormSchema } from '/@/components/Form'
const colProps = {
span: 8,
span: 24,
}
export const schemas: FormSchema[] = [
@@ -8,80 +8,56 @@ export const schemas: FormSchema[] = [
field: 'title',
component: 'Input',
colProps,
label: '标题',
helpMessage: '目标的服务对象',
componentProps: {
placeholder: '请描述你服务的客户,内部客户直接 @姓名/工号',
},
label: '试卷标题',
defaultValue: 'more 吗',
},
{
field: 'class',
component: 'Input',
colProps,
label: '客户',
helpMessage: '目标的服务对象',
componentProps: {
placeholder: '请描述你服务的客户,内部客户直接 @姓名/工号',
},
label: '课程名称',
defaultValue: 'more 吗',
},
{
field: 'opencl',
component: 'Input',
colProps,
label: '客户',
helpMessage: '目标的服务对象',
componentProps: {
placeholder: '请描述你服务的客户,内部客户直接 @姓名/工号',
},
label: '开/闭卷',
defaultValue: 'more 吗',
},
{
field: 'date',
component: 'Input',
colProps,
label: '客户',
helpMessage: '目标的服务对象',
componentProps: {
placeholder: '请描述你服务的客户,内部客户直接 @姓名/工号',
},
label: '考试日期',
defaultValue: 'more 吗',
},
{
field: 'time',
component: 'Input',
colProps,
label: '客户',
helpMessage: '目标的服务对象',
componentProps: {
placeholder: '请描述你服务的客户,内部客户直接 @姓名/工号',
},
label: '考试时长',
defaultValue: 'more 吗',
},
{
field: 'rate',
component: 'Input',
colProps,
label: '客户',
helpMessage: '目标的服务对象',
componentProps: {
placeholder: '请描述你服务的客户,内部客户直接 @姓名/工号',
},
label: '成绩占比',
defaultValue: 'more 吗',
},
{
field: 'major',
component: 'Input',
colProps,
label: '客户',
helpMessage: '目标的服务对象',
componentProps: {
placeholder: '请描述你服务的客户,内部客户直接 @姓名/工号',
},
label: '大题题号',
defaultValue: 'more 吗',
},
{
field: 'sub',
component: 'Input',
colProps,
label: '客户',
helpMessage: '目标的服务对象',
componentProps: {
placeholder: '请描述你服务的客户,内部客户直接 @姓名/工号',
},
label: '小题题号',
defaultValue: 'more 吗',
},
]

View File

@@ -1,6 +1,6 @@
<template>
<PageWrapper
title="基础表单"
:title="t('routes.dashboard.regex')"
contentBackground
content=" 表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。"
contentClass="p-4"
@@ -14,11 +14,13 @@
import { schemas } from './data'
import { useMessage } from '/@/hooks/web/useMessage'
import { PageWrapper } from '/@/components/Page'
import { useI18n } from '/@/hooks/web/useI18n'
export default defineComponent({
name: 'FormBasicPage',
components: { BasicForm, PageWrapper },
setup() {
const { t } = useI18n()
const { createMessage } = useMessage()
const [register, { validate, setProps }] = useForm({
labelCol: {
@@ -57,7 +59,7 @@
} catch (error) {}
}
return { register }
return { t, register }
},
})
</script>