|
@@ -13,63 +13,55 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
[1]: [CommonInfoModel, (form) => ({
|
|
[1]: [CommonInfoModel, (form) => ({
|
|
|
formItems: [
|
|
formItems: [
|
|
|
{
|
|
{
|
|
|
- label: '村落名称',
|
|
|
|
|
|
|
+ label: '名称',
|
|
|
name: 'name',
|
|
name: 'name',
|
|
|
type: 'text',
|
|
type: 'text',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
- placeholder: '请输入您的村落名称,例如:后埔',
|
|
|
|
|
|
|
+ placeholder: '请输入名称,例如:后埔',
|
|
|
},
|
|
},
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入村落名称',
|
|
|
|
|
|
|
+ message: '请输入名称',
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- label: '村落编码',
|
|
|
|
|
|
|
+ /* {
|
|
|
|
|
+ label: '编码',
|
|
|
name: 'code',
|
|
name: 'code',
|
|
|
type: 'text',
|
|
type: 'text',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
- placeholder: '请输入村落编码,例如330106',
|
|
|
|
|
|
|
+ placeholder: '请输入编码,例如330106',
|
|
|
},
|
|
},
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入村落编码',
|
|
|
|
|
|
|
+ message: '请输入编码',
|
|
|
}]
|
|
}]
|
|
|
- },
|
|
|
|
|
|
|
+ }, */
|
|
|
{
|
|
{
|
|
|
- label: '村落地址',
|
|
|
|
|
|
|
+ label: '地址',
|
|
|
name: 'cityAddress',
|
|
name: 'cityAddress',
|
|
|
type: 'select-city',
|
|
type: 'select-city',
|
|
|
defaultValue: () => [],
|
|
defaultValue: () => [],
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
- placeholder: '请点击这里选择村落地址或右侧者从地图选择',
|
|
|
|
|
|
|
+ placeholder: '请点击这里选择地址或右侧者从地图选择',
|
|
|
onSelectedTownship: (v: string, code: string) => {
|
|
onSelectedTownship: (v: string, code: string) => {
|
|
|
form.value.setValueByPath('township', v);
|
|
form.value.setValueByPath('township', v);
|
|
|
form.value.setValueByPath('code', code);
|
|
form.value.setValueByPath('code', code);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请选择村落地址',
|
|
|
|
|
- }],
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '村落乡镇',
|
|
|
|
|
|
|
+ label: '所在乡镇(街道)',
|
|
|
name: 'township',
|
|
name: 'township',
|
|
|
type: 'text',
|
|
type: 'text',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
- placeholder: '请输入村落所在乡镇',
|
|
|
|
|
|
|
+ placeholder: '请输入所在乡镇(街道)',
|
|
|
},
|
|
},
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入村落所在乡镇',
|
|
|
|
|
- }]
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '村落类型',
|
|
|
|
|
|
|
+ label: '类型',
|
|
|
name: 'villageType',
|
|
name: 'villageType',
|
|
|
type: 'radio-id',
|
|
type: 'radio-id',
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
@@ -80,13 +72,61 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
text: p.title,
|
|
text: p.title,
|
|
|
})),
|
|
})),
|
|
|
} as RadioIdFieldProps,
|
|
} as RadioIdFieldProps,
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请选择类型',
|
|
|
|
|
- }],
|
|
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
- }), { title: '行政区划', typeName: '', }],
|
|
|
|
|
|
|
+ }), { title: '行政区划', typeName: '', order: 1 }],
|
|
|
|
|
+ [5]: [CommonInfoModel, () => ({
|
|
|
|
|
+ formItems: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ type: 'flat-group',
|
|
|
|
|
+ childrenColProps: { span: 24 },
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '概括',
|
|
|
|
|
+ name: 'overview',
|
|
|
|
|
+ type: 'richtext',
|
|
|
|
|
+ defaultValue: '',
|
|
|
|
|
+ additionalProps: {
|
|
|
|
|
+ placeholder: '请输入整体概括信息',
|
|
|
|
|
+ maxLength: 300,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '突出价值',
|
|
|
|
|
+ name: 'prominent',
|
|
|
|
|
+ type: 'richtext',
|
|
|
|
|
+ defaultValue: '',
|
|
|
|
|
+ additionalProps: {
|
|
|
|
|
+ placeholder: '请输入突出价值信息',
|
|
|
|
|
+ maxLength: 300,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ type: 'flat-group',
|
|
|
|
|
+ childrenColProps: { span: 24 },
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '相关视频(可选)',
|
|
|
|
|
+ name: 'video',
|
|
|
|
|
+ type: 'uploader',
|
|
|
|
|
+ defaultValue: '',
|
|
|
|
|
+ additionalProps: {
|
|
|
|
|
+ upload: useAliOssUploadCo('xiangyuan/cultural/video'),
|
|
|
|
|
+ chooseType: 'video',
|
|
|
|
|
+ maxFileSize: 1024 * 1024 * 20,
|
|
|
|
|
+ single: true,
|
|
|
|
|
+ } as UploaderFieldProps,
|
|
|
|
|
+ },
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ ]
|
|
|
|
|
+ }), { title: '综述', typeName: '', order: 2 }],
|
|
|
[2]: [VillageEnvInfo, () => ({
|
|
[2]: [VillageEnvInfo, () => ({
|
|
|
formItems: [
|
|
formItems: [
|
|
|
{
|
|
{
|
|
@@ -96,10 +136,6 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
additionalProps: {},
|
|
additionalProps: {},
|
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入村落经纬度',
|
|
|
|
|
- }]
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '海拔',
|
|
label: '海拔',
|
|
@@ -107,16 +143,12 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
type: 'number',
|
|
type: 'number',
|
|
|
defaultValue: 0,
|
|
defaultValue: 0,
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
- placeholder: '请输入村落海拔',
|
|
|
|
|
|
|
+ placeholder: '请输入海拔',
|
|
|
min: -1000,
|
|
min: -1000,
|
|
|
max: 10000,
|
|
max: 10000,
|
|
|
step: 10,
|
|
step: 10,
|
|
|
addonAfter: 'M',
|
|
addonAfter: 'M',
|
|
|
},
|
|
},
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入村落海拔',
|
|
|
|
|
- }]
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '地形地貌特征(多选)',
|
|
label: '地形地貌特征(多选)',
|
|
@@ -133,47 +165,35 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
,
|
|
,
|
|
|
} as CheckBoxListProps,
|
|
} as CheckBoxListProps,
|
|
|
defaultValue: [],
|
|
defaultValue: [],
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请选择类型',
|
|
|
|
|
- }],
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '村域面积',
|
|
|
|
|
|
|
+ label: '地域面积',
|
|
|
name: 'area',
|
|
name: 'area',
|
|
|
type: 'number',
|
|
type: 'number',
|
|
|
defaultValue: 0,
|
|
defaultValue: 0,
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
- placeholder: '请输入村域面积',
|
|
|
|
|
|
|
+ placeholder: '请输入地域面积',
|
|
|
min: 0,
|
|
min: 0,
|
|
|
max: 10000,
|
|
max: 10000,
|
|
|
step: 1,
|
|
step: 1,
|
|
|
addonAfter: '平方公里',
|
|
addonAfter: '平方公里',
|
|
|
},
|
|
},
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入村域面积',
|
|
|
|
|
- }]
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '村庄占地面积',
|
|
|
|
|
|
|
+ label: '建筑占地面积',
|
|
|
name: 'villageArea',
|
|
name: 'villageArea',
|
|
|
type: 'number',
|
|
type: 'number',
|
|
|
defaultValue: 0,
|
|
defaultValue: 0,
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
- placeholder: '请输入村庄占地面积',
|
|
|
|
|
|
|
+ placeholder: '请输入占地面积',
|
|
|
min: 0,
|
|
min: 0,
|
|
|
max: 10000,
|
|
max: 10000,
|
|
|
step: 1,
|
|
step: 1,
|
|
|
addonAfter: '亩',
|
|
addonAfter: '亩',
|
|
|
},
|
|
},
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入村庄占地面积',
|
|
|
|
|
- }]
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '村落形成年代',
|
|
|
|
|
|
|
+ label: '形成年代',
|
|
|
name: 'age',
|
|
name: 'age',
|
|
|
type: 'select-id',
|
|
type: 'select-id',
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
@@ -186,13 +206,9 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
,
|
|
,
|
|
|
} as PickerIdFieldProps,
|
|
} as PickerIdFieldProps,
|
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请选择类型',
|
|
|
|
|
- }],
|
|
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
- }), { title: '地理信息', typeName: '', }],
|
|
|
|
|
|
|
+ }), { title: '地理信息', typeName: '', order: 3 }],
|
|
|
[3]: [CommonInfoModel, () => ({
|
|
[3]: [CommonInfoModel, () => ({
|
|
|
formItems: [
|
|
formItems: [
|
|
|
{
|
|
{
|
|
@@ -210,10 +226,6 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
,
|
|
,
|
|
|
} as PickerIdFieldProps,
|
|
} as PickerIdFieldProps,
|
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请选择非遗最高级别',
|
|
|
|
|
- }],
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '传统建筑数量',
|
|
label: '传统建筑数量',
|
|
@@ -225,13 +237,9 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
max: 10000,
|
|
max: 10000,
|
|
|
step: 1,
|
|
step: 1,
|
|
|
},
|
|
},
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入传统建筑数量',
|
|
|
|
|
- }]
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '列入历史文化名村级别',
|
|
|
|
|
|
|
+ label: '列入历史文化名村(社)级别',
|
|
|
name: 'historyLevel',
|
|
name: 'historyLevel',
|
|
|
type: 'select-id',
|
|
type: 'select-id',
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
@@ -244,13 +252,9 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
,
|
|
,
|
|
|
} as PickerIdFieldProps,
|
|
} as PickerIdFieldProps,
|
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请选择类型',
|
|
|
|
|
- }],
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '列入特色景观旅游名村级别',
|
|
|
|
|
|
|
+ label: '列入特色景观旅游名村(社)级别',
|
|
|
name: 'touristLevel',
|
|
name: 'touristLevel',
|
|
|
type: 'select-id',
|
|
type: 'select-id',
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
@@ -263,21 +267,13 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
,
|
|
,
|
|
|
} as PickerIdFieldProps,
|
|
} as PickerIdFieldProps,
|
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
formProps: { showRightArrow: true } as FieldProps,
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请选择类型',
|
|
|
|
|
- }],
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '列入少数民族特色村寨试点示范',
|
|
|
|
|
|
|
+ label: '列入少数民族特色村寨(社)试点示范',
|
|
|
name: 'isFeaturedVillage',
|
|
name: 'isFeaturedVillage',
|
|
|
type: 'check-box-int',
|
|
type: 'check-box-int',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
additionalProps: {},
|
|
additionalProps: {},
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请选择类型',
|
|
|
|
|
- }],
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '其他认定级别',
|
|
label: '其他认定级别',
|
|
@@ -285,12 +281,12 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
type: 'text',
|
|
type: 'text',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
- placeholder: '(可选)输入村落其他认定级别',
|
|
|
|
|
|
|
+ placeholder: '(可选)输入其他认定级别',
|
|
|
},
|
|
},
|
|
|
rules: []
|
|
rules: []
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
- }), { title: '建设与保护', typeName: '', }],
|
|
|
|
|
|
|
+ }), { title: '建设与保护', typeName: '', order: 4 }],
|
|
|
[4]: [CommonInfoModel, () => ({
|
|
[4]: [CommonInfoModel, () => ({
|
|
|
formItems: [
|
|
formItems: [
|
|
|
{
|
|
{
|
|
@@ -307,10 +303,6 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
placeholder: '请输入主要民族',
|
|
placeholder: '请输入主要民族',
|
|
|
},
|
|
},
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入主要民族',
|
|
|
|
|
- }]
|
|
|
|
|
},
|
|
},
|
|
|
...[
|
|
...[
|
|
|
{
|
|
{
|
|
@@ -466,7 +458,8 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
placeholder: '(可选)输入其他服务业',
|
|
placeholder: '(可选)输入其他服务业',
|
|
|
},
|
|
},
|
|
|
- rules: []
|
|
|
|
|
|
|
+ rules: [],
|
|
|
|
|
+ show: { callback: (_, m) => m.otherIndustries === 238 }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '其他农业',
|
|
label: '其他农业',
|
|
@@ -476,70 +469,11 @@ export const villageInfoOverviewForm : GroupForm = {
|
|
|
additionalProps: {
|
|
additionalProps: {
|
|
|
placeholder: '(可选)输入其他农业',
|
|
placeholder: '(可选)输入其他农业',
|
|
|
},
|
|
},
|
|
|
- rules: []
|
|
|
|
|
|
|
+ rules: [] ,
|
|
|
|
|
+ show: { callback: (_, m) => m.otherIndustries === 128 }
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
- }), { title: '人口与经济', typeName: '', }],
|
|
|
|
|
- [5]: [CommonInfoModel, () => ({
|
|
|
|
|
- formItems: [
|
|
|
|
|
- {
|
|
|
|
|
- name: '',
|
|
|
|
|
- type: 'flat-group',
|
|
|
|
|
- childrenColProps: { span: 24 },
|
|
|
|
|
- children: [
|
|
|
|
|
- {
|
|
|
|
|
- label: '概括',
|
|
|
|
|
- name: 'overview',
|
|
|
|
|
- type: 'richtext',
|
|
|
|
|
- defaultValue: '',
|
|
|
|
|
- additionalProps: {
|
|
|
|
|
- placeholder: '请输入村落整体概括信息',
|
|
|
|
|
- maxLength: 300,
|
|
|
|
|
- showWordLimit: true,
|
|
|
|
|
- } as FieldProps,
|
|
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入概括',
|
|
|
|
|
- }]
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '突出价值',
|
|
|
|
|
- name: 'prominent',
|
|
|
|
|
- type: 'richtext',
|
|
|
|
|
- defaultValue: '',
|
|
|
|
|
- additionalProps: {
|
|
|
|
|
- placeholder: '请输入村落突出价值信息',
|
|
|
|
|
- maxLength: 300,
|
|
|
|
|
- showWordLimit: true,
|
|
|
|
|
- } as FieldProps,
|
|
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入突出价值',
|
|
|
|
|
- }]
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '',
|
|
|
|
|
- type: 'flat-group',
|
|
|
|
|
- childrenColProps: { span: 24 },
|
|
|
|
|
- children: [
|
|
|
|
|
- {
|
|
|
|
|
- label: '相关视频(可选)',
|
|
|
|
|
- name: 'video',
|
|
|
|
|
- type: 'uploader',
|
|
|
|
|
- defaultValue: '',
|
|
|
|
|
- additionalProps: {
|
|
|
|
|
- upload: useAliOssUploadCo('xiangyuan/cultural/video'),
|
|
|
|
|
- chooseType: 'video',
|
|
|
|
|
- maxFileSize: 1024 * 1024 * 20,
|
|
|
|
|
- single: true,
|
|
|
|
|
- } as UploaderFieldProps,
|
|
|
|
|
- },
|
|
|
|
|
- ]
|
|
|
|
|
- },
|
|
|
|
|
- ]
|
|
|
|
|
- }), { title: '村落综述', typeName: '', }],
|
|
|
|
|
|
|
+ }), { title: '人口与经济', typeName: '', order: 5 }],
|
|
|
}
|
|
}
|