Browse Source

修改表单默认值

wangwei 4 years ago
parent
commit
f5984b1744
2 changed files with 16 additions and 37 deletions
  1. 8 19
      src/views/member/member/customCom/unit/data.ts
  2. 8 18
      src/views/member/unit/data.ts

+ 8 - 19
src/views/member/member/customCom/unit/data.ts

@@ -401,8 +401,8 @@ export const schemas: FormSchema[] = [
     colProps: {
       span: adaptWidth.elContainer,
     },
-    defaultValue: '',
     componentProps: {
+      type: 'number',
       placeholder: '职工人数',
     },
   },
@@ -411,11 +411,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '党员数',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '党员数',
     },
   },
@@ -424,7 +424,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '电话',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -437,7 +436,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '传真',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -450,7 +448,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '邮编',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -463,7 +460,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '地址',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -477,11 +473,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '大专以上文化人数',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '大专以上文化人数',
     },
   },
@@ -490,11 +486,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '安置下岗人数',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '安置下岗人数',
     },
   },
@@ -503,7 +499,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '党、团工会情况',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -516,7 +511,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '网址',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -529,7 +523,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '电子邮箱',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -554,7 +547,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '高新技术企业认证部门',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -591,7 +583,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '外贸自营进出口权批准部门',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -628,7 +619,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '质量管理、质量保证系列认证标准认证部门',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -653,11 +643,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '注册资金(万元)',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '注册资金(万元)',
     },
     required: true,
@@ -667,11 +657,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '资产(万元)',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '资产(万元)',
     },
   },
@@ -680,11 +670,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '所有者权益(万元)',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '所有者权益(万元)',
     },
   },
@@ -693,11 +683,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '销售收入(万元)',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '销售收入(万元)',
     },
   },
@@ -706,7 +696,6 @@ export const schemas: FormSchema[] = [
     component: 'InputTextArea',
     label: '主要经营项目',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },

+ 8 - 18
src/views/member/unit/data.ts

@@ -402,6 +402,7 @@ export const schemas: FormSchema[] = [
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '职工人数',
     },
   },
@@ -410,11 +411,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '党员数',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '党员数',
     },
   },
@@ -423,7 +424,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '电话',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -436,7 +436,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '传真',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -449,7 +448,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '邮编',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -462,7 +460,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '地址',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -476,11 +473,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '大专以上文化人数',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '大专以上文化人数',
     },
   },
@@ -489,11 +486,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '安置下岗人数',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '安置下岗人数',
     },
   },
@@ -502,7 +499,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '党、团工会情况',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -515,7 +511,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '网址',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -528,7 +523,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '电子邮箱',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -553,7 +547,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '高新技术企业认证部门',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -590,7 +583,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '外贸自营进出口权批准部门',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -627,7 +619,6 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '质量管理、质量保证系列认证标准认证部门',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
@@ -652,11 +643,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '注册资金(万元)',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '注册资金(万元)',
     },
     required: true,
@@ -666,11 +657,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '资产(万元)',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '资产(万元)',
     },
   },
@@ -679,11 +670,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '所有者权益(万元)',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '所有者权益(万元)',
     },
   },
@@ -692,11 +683,11 @@ export const schemas: FormSchema[] = [
     component: 'Input',
     label: '销售收入(万元)',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },
     componentProps: {
+      type: 'number',
       placeholder: '销售收入(万元)',
     },
   },
@@ -705,7 +696,6 @@ export const schemas: FormSchema[] = [
     component: 'InputTextArea',
     label: '主要经营项目',
     labelWidth: adaptWidth.labelWidth,
-    defaultValue: '',
     colProps: {
       span: adaptWidth.elContainer,
     },