|
|
@@ -0,0 +1,82 @@
|
|
|
+import { FormSchema } from '/@/components/Form';
|
|
|
+import { radioSwitch } from '/@/utils/filters';
|
|
|
+
|
|
|
+// 表单新增编辑
|
|
|
+export const dataFormSchema: FormSchema[] = [
|
|
|
+ {
|
|
|
+ label: '系统LOGO',
|
|
|
+ field: 'logo',
|
|
|
+ component: 'Input',
|
|
|
+ slot: 'logo',
|
|
|
+ colProps: {
|
|
|
+ span: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '系统名称',
|
|
|
+ field: 'name',
|
|
|
+ required: true,
|
|
|
+ component: 'Input',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入系统名称',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '系统版本',
|
|
|
+ field: 'version',
|
|
|
+ required: true,
|
|
|
+ component: 'Input',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入系统版本',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '版权信息',
|
|
|
+ field: 'copyRight',
|
|
|
+ required: true,
|
|
|
+ component: 'Input',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入版权信息',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '版权链接URL',
|
|
|
+ field: 'copyRightUrl',
|
|
|
+ component: 'Input',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入版权链接URL',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '系统默认密码',
|
|
|
+ field: 'defaultPsw',
|
|
|
+ required: true,
|
|
|
+ component: 'Input',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入系统默认密码',
|
|
|
+ },
|
|
|
+ colProps: {
|
|
|
+ span: 8,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '验证码开关',
|
|
|
+ field: 'captchaOpen',
|
|
|
+ required: true,
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: radioSwitch,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '系统描述',
|
|
|
+ field: 'copyRight',
|
|
|
+ component: 'InputTextArea',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入系统描述',
|
|
|
+ },
|
|
|
+ colProps: {
|
|
|
+ span: 24,
|
|
|
+ },
|
|
|
+ },
|
|
|
+];
|