|
@@ -128,7 +128,7 @@ export function getFormConfig(): Partial<FormProps> {
|
|
|
{
|
|
|
field: `logintime`,
|
|
|
label: `最后登录`,
|
|
|
- component: 'RangePicker',
|
|
|
+ component: 'DatePicker',
|
|
|
colProps: {
|
|
|
xl: 12,
|
|
|
xxl: 8,
|
|
@@ -157,105 +157,6 @@ export function getFormConfig(): Partial<FormProps> {
|
|
|
xxl: 8,
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- field: `sort`,
|
|
|
- label: `排序字段`,
|
|
|
- component: 'Select',
|
|
|
- componentProps: {
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: 'ID',
|
|
|
- value: 'id',
|
|
|
- key: 'id',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '用户名',
|
|
|
- value: 'username',
|
|
|
- key: 'username',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '昵称',
|
|
|
- value: 'nickname',
|
|
|
- key: 'nickname',
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'Email',
|
|
|
- value: 'email',
|
|
|
- key: 'email',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '最后登录',
|
|
|
- value: 'logintime',
|
|
|
- key: 'logintime',
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- colProps: {
|
|
|
- xl: 12,
|
|
|
- xxl: 8,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: `order`,
|
|
|
- label: `排序方式`,
|
|
|
- component: 'Select',
|
|
|
- componentProps: {
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: '升序',
|
|
|
- value: 'asc',
|
|
|
- key: 'order',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '降序',
|
|
|
- value: 'desc',
|
|
|
- key: 'order',
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- colProps: {
|
|
|
- xl: 12,
|
|
|
- xxl: 8,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: `filter`,
|
|
|
- label: `筛选字段`,
|
|
|
- component: 'CheckboxGroup',
|
|
|
- componentProps: {
|
|
|
- options: [
|
|
|
- {
|
|
|
- label: 'ID',
|
|
|
- value: 'id',
|
|
|
- key: 'filter1',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '用户名',
|
|
|
- value: 'username',
|
|
|
- key: 'filter2',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '昵称',
|
|
|
- value: 'nickname',
|
|
|
- key: 'filter3',
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'Email',
|
|
|
- value: 'email',
|
|
|
- key: 'filter4',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '昵称',
|
|
|
- value: 'logintime',
|
|
|
- key: 'filter5',
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- colProps: {
|
|
|
- xl: 12,
|
|
|
- xxl: 8,
|
|
|
- },
|
|
|
- },
|
|
|
],
|
|
|
};
|
|
|
}
|
|
@@ -274,7 +175,7 @@ export const schemas: FormSchema[] = [
|
|
|
},
|
|
|
getPopupContainer: () => document.body,
|
|
|
},
|
|
|
- labelWidth: adaptWidth.labelWidth,
|
|
|
+ labelWidth: adaptWidth.adminLabelWidth,
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
@@ -284,7 +185,7 @@ export const schemas: FormSchema[] = [
|
|
|
field: 'username',
|
|
|
component: 'Input',
|
|
|
label: '用户名',
|
|
|
- labelWidth: adaptWidth.labelWidth,
|
|
|
+ labelWidth: adaptWidth.adminLabelWidth,
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
@@ -294,7 +195,7 @@ export const schemas: FormSchema[] = [
|
|
|
field: 'nickname',
|
|
|
component: 'Input',
|
|
|
label: '昵称',
|
|
|
- labelWidth: adaptWidth.labelWidth,
|
|
|
+ labelWidth: adaptWidth.adminLabelWidth,
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
@@ -304,7 +205,7 @@ export const schemas: FormSchema[] = [
|
|
|
field: 'email',
|
|
|
component: 'Input',
|
|
|
label: 'Email',
|
|
|
- labelWidth: adaptWidth.labelWidth,
|
|
|
+ labelWidth: adaptWidth.adminLabelWidth,
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
@@ -313,16 +214,17 @@ export const schemas: FormSchema[] = [
|
|
|
field: 'password',
|
|
|
component: 'InputPassword',
|
|
|
label: '密码',
|
|
|
- labelWidth: adaptWidth.labelWidth,
|
|
|
+ labelWidth: adaptWidth.adminLabelWidth,
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|
|
|
+ required: true,
|
|
|
},
|
|
|
{
|
|
|
field: 'loginfailure',
|
|
|
component: 'Input',
|
|
|
label: '失败次数',
|
|
|
- labelWidth: adaptWidth.labelWidth,
|
|
|
+ labelWidth: adaptWidth.adminLabelWidth,
|
|
|
defaultValue: 0,
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
@@ -339,7 +241,7 @@ export const schemas: FormSchema[] = [
|
|
|
{ label: '停用', value: 'locked' },
|
|
|
],
|
|
|
},
|
|
|
- labelWidth: adaptWidth.labelWidth,
|
|
|
+ labelWidth: adaptWidth.adminLabelWidth,
|
|
|
colProps: {
|
|
|
span: adaptWidth.elContainer,
|
|
|
},
|