Преглед на файлове

🎨 优化富文本编辑器最大字数弹窗问题,增加采集字数限制

快乐的梦鱼 преди 2 седмици
родител
ревизия
d06ca14293

+ 1 - 1
src/pages/dig/admin/data/volunteer.ts

@@ -142,7 +142,7 @@ export function getVolunteerForm(options: {
             additionalProps: { 
               placeholder: '请输入个人介绍',
               showWordLimit: true,
-              maxLength: 200,
+              maxLength: 5000,
             } as FieldProps,
           },
           ...(options.canSetCatalog ? [{ 

+ 1 - 0
src/pages/dig/components/sp-editor/components/sp-editor/sp-editor.vue

@@ -748,6 +748,7 @@ export default {
 					confirmText: '确定',
 					showCancel: false,
 					success: () => {
+            this.editorCtx.undo();
 						this.$emit('overMax', { html, text }, this.editorId)
 					}
 				})

+ 13 - 13
src/pages/dig/forms/data/building.ts

@@ -121,7 +121,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: {
               placeholder: '请输入建筑中的故事',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
             },
             rules:  [{
@@ -136,7 +136,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: {
               placeholder: '请输入功能特点',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
             },
             rules:  [] 
@@ -298,7 +298,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '修缮过程',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
              },
             rules: []
@@ -310,7 +310,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '建筑风貌',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
              },
             rules: []
@@ -322,7 +322,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '院落布局',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
              },
             rules: []
@@ -360,7 +360,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '屋面形式说明',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
             },
             rules: []
@@ -389,7 +389,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '围护墙体说明',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
             },
             rules: []
@@ -418,7 +418,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '地面做法说明',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
              },
             rules: []
@@ -446,7 +446,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '历史功能',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
             },
             rules: []
@@ -475,7 +475,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '其他现状用途',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
             },
             rules: []
@@ -487,7 +487,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '改扩建情况及维修状况',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
             },
             rules: []
@@ -499,7 +499,7 @@ export function villageInfoBuildingForm(title: string) : SingleForm  {
             defaultValue: '',
             additionalProps: { 
               placeholder: '改扩建情况及维修状况说明',
-              maxLength: 200,
+              maxLength: 5000,
               showWordLimit: true, 
              },
             rules: []
@@ -548,7 +548,7 @@ export const villageInfoDistributionForm : SingleForm = [CommonInfoModel, (r) =>
       defaultValue: '',
       additionalProps: {
         placeholder: '请输入营造智慧',
-        maxLength: 200,
+        maxLength: 5000,
         showWordLimit: true, 
       },
       rules:  [{

+ 1 - 1
src/pages/dig/forms/data/common.ts

@@ -44,7 +44,7 @@ export function villageCommonContent (ref: Ref<IDynamicFormRef>, options: {
             defaultValue: '',
             additionalProps: {
               placeholder: '请输入介绍内容正文',
-              maxLength: 1000,
+              maxLength: 5000,
             },
             rules: [{
               required: true,

+ 4 - 4
src/pages/dig/forms/data/element.ts

@@ -90,7 +90,7 @@ export const vilElementForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入环境特点',
-            maxLength: 500,
+            maxLength: 1000,
             showWordLimit: true, 
           } as FieldProps,
           rules:  [] 
@@ -102,7 +102,7 @@ export const vilElementForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入功能特点',
-            maxLength: 300,
+            maxLength: 1000,
             showWordLimit: true, 
           } as FieldProps,
           rules:  [] 
@@ -114,7 +114,7 @@ export const vilElementForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入保存状况',
-            maxLength: 500,
+            maxLength: 1000,
             showWordLimit: true, 
           } as FieldProps,
           rules:  [] 
@@ -126,7 +126,7 @@ export const vilElementForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入文化故事',
-            maxLength: 1000,
+            maxLength: 5000,
             showWordLimit: true, 
           } as FieldProps,
           rules:  [] 

+ 5 - 5
src/pages/dig/forms/data/environment.ts

@@ -24,7 +24,7 @@ export const villageInfoEnvironmentForm : SingleForm= [CommonInfoModel, (r) => (
       defaultValue: '',
       additionalProps: {
         placeholder: '请输入自然环境',
-        maxLength: 200,
+        maxLength: 5000,
         showWordLimit: true, 
       },
       rules:  [{
@@ -39,7 +39,7 @@ export const villageInfoEnvironmentForm : SingleForm= [CommonInfoModel, (r) => (
       defaultValue: '',
       additionalProps: {
         placeholder: '请输入选址',
-        maxLength: 200,
+        maxLength: 5000,
         showWordLimit: true, 
       },
       rules:  [{
@@ -54,7 +54,7 @@ export const villageInfoEnvironmentForm : SingleForm= [CommonInfoModel, (r) => (
       defaultValue: '',
       additionalProps: {
         placeholder: '请输入格局',
-        maxLength: 200,
+        maxLength: 5000,
         showWordLimit: true, 
       },
       rules:  [{
@@ -69,7 +69,7 @@ export const villageInfoEnvironmentForm : SingleForm= [CommonInfoModel, (r) => (
       defaultValue: '',
       additionalProps: {
         placeholder: '请输入整体风貌',
-        maxLength: 200,
+        maxLength: 5000,
         showWordLimit: true, 
       },
       rules:  [{
@@ -84,7 +84,7 @@ export const villageInfoEnvironmentForm : SingleForm= [CommonInfoModel, (r) => (
       defaultValue: '',
       additionalProps: {
         placeholder: '请输入农业遗产',
-        maxLength: 200,
+        maxLength: 5000,
         showWordLimit: true, 
       },
       rules:  [{

+ 1 - 1
src/pages/dig/forms/data/food.ts

@@ -25,7 +25,7 @@ export function villageInfoFoodProductsForm(title: string) : SingleForm {
         defaultValue: '',
         additionalProps: {
           placeholder: '请输入详情',
-          maxLength: 200,
+          maxLength: 5000,
           showWordLimit: true, 
         },
         rules:  [{

+ 1 - 1
src/pages/dig/forms/data/ich.ts

@@ -114,7 +114,7 @@ export const ichFormItems : SingleForm = [CommonInfoModel, (m) => ({
           show: { callback: (_, m) => m.isInheritor == 1 },
           additionalProps: {
             placeholder: '请输入传承人情况',
-            maxLength: 200,
+            maxLength: 5000,
             showWordLimit: true, 
           },
           rules:  [{

+ 3 - 3
src/pages/dig/forms/data/overview.ts

@@ -90,7 +90,7 @@ export const villageInfoOverviewForm : GroupForm = {
             defaultValue: '',
             additionalProps: {
               placeholder: '请输入整体概括信息',
-              maxLength: 300,
+              maxLength: 1000,
               showWordLimit: true, 
             } as FieldProps,
           },
@@ -101,7 +101,7 @@ export const villageInfoOverviewForm : GroupForm = {
             defaultValue: '',
             additionalProps: {
               placeholder: '请输入突出价值信息',
-              maxLength: 300,
+              maxLength: 1000,
               showWordLimit: true, 
             } as FieldProps,
           },
@@ -325,7 +325,7 @@ export const villageInfoOverviewForm : GroupForm = {
                 additionalProps: {
                   min: 1900,
                   max: 2100,
-                  step: 10,
+                  step: 1,
                 },
                 formProps: {
                   labelWidth: '0rpx',

+ 1 - 1
src/pages/dig/forms/data/relic.ts

@@ -113,7 +113,7 @@ export const villageInfoRelicForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入简介',
-            maxLength: 200,
+            maxLength: 5000,
             showWordLimit: true, 
           },
           rules:  [{

+ 6 - 6
src/pages/dig/forms/data/travel.ts

@@ -505,7 +505,7 @@ export const villageInfoRouteForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入描述',
-            maxLength: 200,
+            maxLength: 5000,
             showWordLimit: true, 
           },
           rules:  [{
@@ -644,7 +644,7 @@ export const villageInfoRouteForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入特色',
-            maxLength: 300,
+            maxLength: 1000,
             showWordLimit: true, 
           } as FieldProps,
           rules:  [{
@@ -659,7 +659,7 @@ export const villageInfoRouteForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入文化背景',
-            maxLength: 300,
+            maxLength: 1000,
             showWordLimit: true, 
           } as FieldProps,
           rules:  [{
@@ -674,7 +674,7 @@ export const villageInfoRouteForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入精彩推荐',
-            maxLength: 300,
+            maxLength: 1000,
             showWordLimit: true, 
           } as FieldProps,
           rules:  [{
@@ -689,7 +689,7 @@ export const villageInfoRouteForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入推荐描述',
-            maxLength: 300,
+            maxLength: 1000,
             showWordLimit: true, 
           } as FieldProps,
           rules:  [{
@@ -704,7 +704,7 @@ export const villageInfoRouteForm : SingleForm = [CommonInfoModel, (r) => ({
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入活动亮点',
-            maxLength: 300,
+            maxLength: 1000,
             showWordLimit: true, 
           } as FieldProps,
           rules:  [{

+ 1 - 1
src/pages/dig/forms/forms.ts

@@ -123,7 +123,7 @@ const villageInfoForm : Record<number, GroupForm> = {
           defaultValue: '',
           additionalProps: {
             placeholder: '请输入描述',
-            maxLength: 200,
+            maxLength: 5000,
             showWordLimit: true,
           } as FieldProps,
           rules: []

+ 1 - 1
src/pages/home/light/form/claim.ts

@@ -125,7 +125,7 @@ export function getClaimVillageForm(options: {
             additionalProps: {
               placeholder: '请说明认领该村社的原因,可加快审核速度',
               showWordLimit: true,
-              maxLength: 200,
+              maxLength: 5000,
             } as FieldProps,
           },
         ],

+ 1 - 1
src/pages/home/light/form/volunteer.ts

@@ -152,7 +152,7 @@ export function getVolunteerForm(options: {
             additionalProps: { 
               placeholder: '请输入个人介绍',
               showWordLimit: true,
-              maxLength: 200,
+              maxLength: 5000,
             } as FieldProps,
           },
           ...(options.canSetCatalog ? [{