|
@@ -95,7 +95,7 @@ const villageInfoBuildingForm : SingleForm = [VillageBulidingInfo, {
|
|
|
{
|
|
{
|
|
|
label: '建筑中的故事',
|
|
label: '建筑中的故事',
|
|
|
name: 'story',
|
|
name: 'story',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入建筑中的故事',
|
|
placeholder: '请输入建筑中的故事',
|
|
@@ -179,12 +179,12 @@ const villageInfoBuildingForm : SingleForm = [VillageBulidingInfo, {
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '始建时间',
|
|
|
|
|
|
|
+ label: '始建时间(年)',
|
|
|
name: 'age',
|
|
name: 'age',
|
|
|
type: 'number',
|
|
type: 'number',
|
|
|
- defaultValue: 0,
|
|
|
|
|
|
|
+ defaultValue: 2025,
|
|
|
params: {
|
|
params: {
|
|
|
- min: 1900,
|
|
|
|
|
|
|
+ min: -50000,
|
|
|
max: 2000,
|
|
max: 2000,
|
|
|
},
|
|
},
|
|
|
rules: [{
|
|
rules: [{
|
|
@@ -195,7 +195,7 @@ const villageInfoBuildingForm : SingleForm = [VillageBulidingInfo, {
|
|
|
{
|
|
{
|
|
|
label: '功能特点',
|
|
label: '功能特点',
|
|
|
name: 'funcFeatures',
|
|
name: 'funcFeatures',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入功能特点',
|
|
placeholder: '请输入功能特点',
|
|
@@ -433,7 +433,7 @@ const villageInfoFolkCultureForm : SingleForm = [VillageBulidingInfo, {
|
|
|
{
|
|
{
|
|
|
label: '详情',
|
|
label: '详情',
|
|
|
name: 'details',
|
|
name: 'details',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入详情',
|
|
placeholder: '请输入详情',
|
|
@@ -494,7 +494,7 @@ const villageInfoFoodProductsForm : SingleForm = [VillageBulidingInfo, {
|
|
|
{
|
|
{
|
|
|
label: '详情',
|
|
label: '详情',
|
|
|
name: 'details',
|
|
name: 'details',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入详情',
|
|
placeholder: '请输入详情',
|
|
@@ -506,8 +506,53 @@ const villageInfoFoodProductsForm : SingleForm = [VillageBulidingInfo, {
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
}];
|
|
}];
|
|
|
-
|
|
|
|
|
-//TODO: 图片上传组件
|
|
|
|
|
|
|
+const villageCommonContent : FormDefine = {
|
|
|
|
|
+ items: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '标题',
|
|
|
|
|
+ name: 'title',
|
|
|
|
|
+ type: 'text',
|
|
|
|
|
+ defaultValue: '',
|
|
|
|
|
+ params: {
|
|
|
|
|
+ placeholder: '请输入标题',
|
|
|
|
|
+ },
|
|
|
|
|
+ rules: [{
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请输入标题',
|
|
|
|
|
+ }]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '内容',
|
|
|
|
|
+ name: 'content',
|
|
|
|
|
+ type: 'richtext',
|
|
|
|
|
+ defaultValue: '',
|
|
|
|
|
+ params: {
|
|
|
|
|
+ placeholder: '请输入内容',
|
|
|
|
|
+ maxLength: 1000,
|
|
|
|
|
+ },
|
|
|
|
|
+ rules: [{
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请输入内容',
|
|
|
|
|
+ }]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '图片',
|
|
|
|
|
+ name: 'images',
|
|
|
|
|
+ type: 'richtext',
|
|
|
|
|
+ defaultValue: '',
|
|
|
|
|
+ params: {
|
|
|
|
|
+ upload: useAliOssUploadCo('xiangyuan/common'),
|
|
|
|
|
+ maxFileSize: 1024 * 1024 * 20,
|
|
|
|
|
+ maxUploadCount: 20,
|
|
|
|
|
+ } as UploaderFieldProps,
|
|
|
|
|
+ rules: [{
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请输入内容',
|
|
|
|
|
+ }]
|
|
|
|
|
+ },
|
|
|
|
|
+ ]
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
//TODO: 关联的文化资源ID
|
|
//TODO: 关联的文化资源ID
|
|
|
|
|
|
|
|
const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
@@ -671,7 +716,7 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '村落类型',
|
|
|
|
|
|
|
+ label: '村落形成年代',
|
|
|
name: 'age',
|
|
name: 'age',
|
|
|
type: 'select-id',
|
|
type: 'select-id',
|
|
|
params: {
|
|
params: {
|
|
@@ -1005,7 +1050,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入概括',
|
|
placeholder: '请输入概括',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 300,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入概括',
|
|
message: '请输入概括',
|
|
@@ -1030,7 +1077,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入突出价值',
|
|
placeholder: '请输入突出价值',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 1000,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入突出价值',
|
|
message: '请输入突出价值',
|
|
@@ -1043,73 +1092,44 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
}],
|
|
}],
|
|
|
},
|
|
},
|
|
|
'cultural': {
|
|
'cultural': {
|
|
|
- [1]: [CommonInfoModel, {
|
|
|
|
|
- items: [
|
|
|
|
|
- {
|
|
|
|
|
- label: '内容',
|
|
|
|
|
- name: 'content',
|
|
|
|
|
- type: 'textarea',
|
|
|
|
|
- defaultValue: '',
|
|
|
|
|
- params: {
|
|
|
|
|
- placeholder: '请输入内容',
|
|
|
|
|
- },
|
|
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入内容',
|
|
|
|
|
- }]
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
- }],
|
|
|
|
|
- [2]: [CommonInfoModel, {
|
|
|
|
|
- items: [
|
|
|
|
|
- {
|
|
|
|
|
- label: '内容',
|
|
|
|
|
- name: 'content',
|
|
|
|
|
- type: 'textarea',
|
|
|
|
|
- defaultValue: '',
|
|
|
|
|
- params: {
|
|
|
|
|
- placeholder: '请输入内容',
|
|
|
|
|
- },
|
|
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入内容',
|
|
|
|
|
- }]
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
- }],
|
|
|
|
|
|
|
+ [1]: [CommonInfoModel, villageCommonContent],
|
|
|
|
|
+ [2]: [CommonInfoModel, villageCommonContent],
|
|
|
[3]: [CommonInfoModel, {
|
|
[3]: [CommonInfoModel, {
|
|
|
items: [
|
|
items: [
|
|
|
|
|
+ ...(villageCommonContent.items.slice(0, 2)),
|
|
|
{
|
|
{
|
|
|
- label: '内容',
|
|
|
|
|
- name: 'content',
|
|
|
|
|
- type: 'textarea',
|
|
|
|
|
|
|
+ label: '扫描件或图片',
|
|
|
|
|
+ name: 'images',
|
|
|
|
|
+ type: 'uploader',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
- placeholder: '请输入内容',
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ upload: useAliOssUploadCo('xiangyuan/cultural/scan'),
|
|
|
|
|
+ maxFileSize: 1024 * 1024 * 20,
|
|
|
|
|
+ maxUploadCount: 20,
|
|
|
|
|
+ } as UploaderFieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入内容',
|
|
|
|
|
|
|
+ message: '请上传扫描件或图片',
|
|
|
}]
|
|
}]
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
}],
|
|
}],
|
|
|
[4]: [CommonInfoModel, {
|
|
[4]: [CommonInfoModel, {
|
|
|
items: [
|
|
items: [
|
|
|
|
|
+ ...villageCommonContent.items,
|
|
|
{
|
|
{
|
|
|
- label: '内容',
|
|
|
|
|
- name: 'content',
|
|
|
|
|
- type: 'textarea',
|
|
|
|
|
|
|
+ label: '视频',
|
|
|
|
|
+ name: 'video',
|
|
|
|
|
+ type: 'uploader',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
- placeholder: '请输入内容',
|
|
|
|
|
- },
|
|
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入内容',
|
|
|
|
|
- }]
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ upload: useAliOssUploadCo('xiangyuan/cultural/video'),
|
|
|
|
|
+ chooseType: 'video',
|
|
|
|
|
+ maxFileSize: 1024 * 1024 * 20,
|
|
|
|
|
+ single: true,
|
|
|
|
|
+ } as UploaderFieldProps,
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
}],
|
|
}],
|
|
|
},
|
|
},
|
|
|
'story': {
|
|
'story': {
|
|
@@ -1180,7 +1200,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入简介',
|
|
placeholder: '请输入简介',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 500,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入简介',
|
|
message: '请输入简介',
|
|
@@ -1219,19 +1241,6 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '编号',
|
|
|
|
|
- name: 'code',
|
|
|
|
|
- type: 'text',
|
|
|
|
|
- defaultValue: '',
|
|
|
|
|
- params: {
|
|
|
|
|
- placeholder: '请输入编号',
|
|
|
|
|
- },
|
|
|
|
|
- rules: [{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入编号',
|
|
|
|
|
- }]
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
label: '位置',
|
|
label: '位置',
|
|
|
name: 'position',
|
|
name: 'position',
|
|
|
type: 'text',
|
|
type: 'text',
|
|
@@ -1283,13 +1292,24 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
}],
|
|
}],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
|
|
+ label: '编号',
|
|
|
|
|
+ name: 'code',
|
|
|
|
|
+ type: 'text',
|
|
|
|
|
+ defaultValue: '',
|
|
|
|
|
+ params: {
|
|
|
|
|
+ placeholder: '(可选)请输入编号',
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: '环境特点',
|
|
label: '环境特点',
|
|
|
name: 'environment',
|
|
name: 'environment',
|
|
|
type: 'textarea',
|
|
type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入环境特点',
|
|
placeholder: '请输入环境特点',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 500,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入环境特点',
|
|
message: '请输入环境特点',
|
|
@@ -1302,7 +1322,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入文化故事',
|
|
placeholder: '请输入文化故事',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 1000,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入文化故事',
|
|
message: '请输入文化故事',
|
|
@@ -1315,7 +1337,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入保存状况',
|
|
placeholder: '请输入保存状况',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 500,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入保存状况',
|
|
message: '请输入保存状况',
|
|
@@ -1328,7 +1352,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入功能特点',
|
|
placeholder: '请输入功能特点',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 300,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入功能特点',
|
|
message: '请输入功能特点',
|
|
@@ -1356,7 +1382,7 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
{
|
|
{
|
|
|
label: '自然环境',
|
|
label: '自然环境',
|
|
|
name: 'natural',
|
|
name: 'natural',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入自然环境',
|
|
placeholder: '请输入自然环境',
|
|
@@ -1369,7 +1395,7 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
{
|
|
{
|
|
|
label: '选址',
|
|
label: '选址',
|
|
|
name: 'siteSelection',
|
|
name: 'siteSelection',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入选址',
|
|
placeholder: '请输入选址',
|
|
@@ -1382,7 +1408,7 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
{
|
|
{
|
|
|
label: '格局',
|
|
label: '格局',
|
|
|
name: 'structure',
|
|
name: 'structure',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入格局',
|
|
placeholder: '请输入格局',
|
|
@@ -1395,7 +1421,7 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
{
|
|
{
|
|
|
label: '整体风貌',
|
|
label: '整体风貌',
|
|
|
name: 'overallStyle',
|
|
name: 'overallStyle',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入整体风貌',
|
|
placeholder: '请输入整体风貌',
|
|
@@ -1461,7 +1487,7 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
{
|
|
{
|
|
|
label: '营造智慧',
|
|
label: '营造智慧',
|
|
|
name: 'wisdom',
|
|
name: 'wisdom',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入营造智慧',
|
|
placeholder: '请输入营造智慧',
|
|
@@ -1672,9 +1698,13 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
{
|
|
{
|
|
|
label: '文化故事',
|
|
label: '文化故事',
|
|
|
name: 'content',
|
|
name: 'content',
|
|
|
- type: 'textarea',
|
|
|
|
|
|
|
+ type: 'richtext',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
- params: { placeholder: '文化故事' },
|
|
|
|
|
|
|
+ params: {
|
|
|
|
|
+ placeholder: '文化故事',
|
|
|
|
|
+ maxLength: 5000,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: []
|
|
rules: []
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -1796,7 +1826,7 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
{
|
|
{
|
|
|
label: '传承人情况',
|
|
label: '传承人情况',
|
|
|
name: 'inheritor',
|
|
name: 'inheritor',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入传承人情况',
|
|
placeholder: '请输入传承人情况',
|
|
@@ -2303,7 +2333,7 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
{
|
|
{
|
|
|
label: '描述',
|
|
label: '描述',
|
|
|
name: 'desc',
|
|
name: 'desc',
|
|
|
- type: 'text',
|
|
|
|
|
|
|
+ type: 'textarea',
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入描述',
|
|
placeholder: '请输入描述',
|
|
@@ -2340,7 +2370,7 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
}]
|
|
}]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '预计时长(分钟)',
|
|
|
|
|
|
|
+ label: '预计时长(小时)',
|
|
|
name: 'estimate',
|
|
name: 'estimate',
|
|
|
type: 'number',
|
|
type: 'number',
|
|
|
defaultValue: 1,
|
|
defaultValue: 1,
|
|
@@ -2419,7 +2449,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入特色',
|
|
placeholder: '请输入特色',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 300,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入特色',
|
|
message: '请输入特色',
|
|
@@ -2432,7 +2464,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入文化背景',
|
|
placeholder: '请输入文化背景',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 300,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入文化背景',
|
|
message: '请输入文化背景',
|
|
@@ -2445,7 +2479,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入精彩推荐',
|
|
placeholder: '请输入精彩推荐',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 300,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入精彩推荐',
|
|
message: '请输入精彩推荐',
|
|
@@ -2458,7 +2494,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入推荐描述',
|
|
placeholder: '请输入推荐描述',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 300,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入推荐描述',
|
|
message: '请输入推荐描述',
|
|
@@ -2471,7 +2509,9 @@ const villageInfoForm : Record<string, Record<number, SingleForm>> = {
|
|
|
defaultValue: '',
|
|
defaultValue: '',
|
|
|
params: {
|
|
params: {
|
|
|
placeholder: '请输入活动亮点',
|
|
placeholder: '请输入活动亮点',
|
|
|
- },
|
|
|
|
|
|
|
+ maxLength: 300,
|
|
|
|
|
+ showWordLimit: true,
|
|
|
|
|
+ } as FieldProps,
|
|
|
rules: [{
|
|
rules: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请输入活动亮点',
|
|
message: '请输入活动亮点',
|