|
|
@@ -24,6 +24,7 @@ import type { FormProps } from '@/components/form/Form.vue';
|
|
|
import type { PickerIdFieldProps } from '@/components/dynamic/wrappers/PickerIdField';
|
|
|
import type { UploaderFieldProps } from '@/components/form/UploaderField.vue';
|
|
|
import { useImageSimpleUploadCo } from '@/common/components/upload/ImageUploadCo';
|
|
|
+import CommonContent from '@/api/CommonContent';
|
|
|
|
|
|
const loading = ref(false);
|
|
|
|
|
|
@@ -45,12 +46,11 @@ const formDefine : IDynamicFormOptions = {
|
|
|
type: 'select-id',
|
|
|
additionalProps: {
|
|
|
loadData: async () => {
|
|
|
- /* (await ContributeApi.getCanClaimVallageList())
|
|
|
+ return (await CommonContent.getContributeColumnList())
|
|
|
.map((p) => ({
|
|
|
value: p.id,
|
|
|
- text: p.villageName,
|
|
|
- })) */
|
|
|
- return []
|
|
|
+ text: p.name,
|
|
|
+ }));
|
|
|
},
|
|
|
},
|
|
|
rules: [{
|
|
|
@@ -236,6 +236,7 @@ async function submit() {
|
|
|
title: '有必填项未填写,请检查',
|
|
|
icon: 'none',
|
|
|
});
|
|
|
+ return;
|
|
|
}
|
|
|
try {
|
|
|
loading.value = true;
|