|
@@ -51,21 +51,15 @@ export function getClaimVillageForm(options: {
|
|
|
{
|
|
{
|
|
|
label: '认领类型',
|
|
label: '认领类型',
|
|
|
name: 'type',
|
|
name: 'type',
|
|
|
- type: 'check-box-list',
|
|
|
|
|
|
|
+ type: 'radio-value',
|
|
|
defaultValue: ['villager'],
|
|
defaultValue: ['villager'],
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
- multiple: true,
|
|
|
|
|
- vertical: true,
|
|
|
|
|
- useCell: true,
|
|
|
|
|
- loadData: async () => {
|
|
|
|
|
- await waitTimeOut(200);
|
|
|
|
|
- return [
|
|
|
|
|
- { text: '村民', value: 'villager' },
|
|
|
|
|
- { text: '志愿者', value: 'volunteer' },
|
|
|
|
|
- { text: '管理人员', value: 'staff' },
|
|
|
|
|
- ]
|
|
|
|
|
- },
|
|
|
|
|
- } as CheckBoxListProps,
|
|
|
|
|
|
|
+ options: [
|
|
|
|
|
+ { text: '村民', value: 'villager' },
|
|
|
|
|
+ { text: '志愿者', value: 'volunteer' },
|
|
|
|
|
+ { text: '管理人员', value: 'staff' },
|
|
|
|
|
+ ]
|
|
|
|
|
+ } as RadioValueProps,
|
|
|
rules: [{ required: true, message: '请选择认领类型' }],
|
|
rules: [{ required: true, message: '请选择认领类型' }],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -123,7 +117,7 @@ export function getClaimVillageForm(options: {
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
placeholder: '请说明认领该村落的原因',
|
|
placeholder: '请说明认领该村落的原因',
|
|
|
showWordLimit: true,
|
|
showWordLimit: true,
|
|
|
- maxLength: 200,
|
|
|
|
|
|
|
+ maxLength: 5000,
|
|
|
} as FieldProps,
|
|
} as FieldProps,
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|