|
|
@@ -7,6 +7,7 @@ import type { RuleItem } from 'async-validator';
|
|
|
import type { Ref } from 'vue';
|
|
|
import type { VolunteerInfo } from '@/api/inhert/VillageApi';
|
|
|
import { VillageClaimInfo } from '@/api/inhert/VillageApi';
|
|
|
+import { waitTimeOut } from '@imengyu/imengyu-utils';
|
|
|
|
|
|
function hasClaimType(formRef: Ref<IDynamicFormRef | undefined>, value: string) {
|
|
|
const type = formRef.value?.getValueByPath('type');
|
|
|
@@ -56,11 +57,14 @@ export function getClaimVillageForm(options: {
|
|
|
multiple: true,
|
|
|
vertical: true,
|
|
|
useCell: true,
|
|
|
- loadData: async () => [
|
|
|
- { text: '村民', value: 'villager' },
|
|
|
- { text: '志愿者', value: 'volunteer' },
|
|
|
- { text: '管理人员', value: 'staff' },
|
|
|
- ],
|
|
|
+ loadData: async () => {
|
|
|
+ await waitTimeOut(200);
|
|
|
+ return [
|
|
|
+ { text: '村民', value: 'villager' },
|
|
|
+ { text: '志愿者', value: 'volunteer' },
|
|
|
+ { text: '管理人员', value: 'staff' },
|
|
|
+ ]
|
|
|
+ },
|
|
|
} as CheckBoxListProps,
|
|
|
rules: [{ required: true, message: '请选择认领类型' }],
|
|
|
},
|