Ver Fonte

fix: APP企业录入调整

zhangying há 9 meses atrás
pai
commit
7df356094e

+ 3 - 3
h5app/src/views/pages/company/edit.vue

@@ -412,7 +412,7 @@ export default defineComponent({
         estateCategoryID: "",
         tagID:null,
         website:null,
-        companyModel: "",
+        companyModel: 0,
         regionCode: null,
         streetCode: null,
         workSituation: null,
@@ -538,13 +538,13 @@ export default defineComponent({
           {min: 10000, model: 7}
         ];
         const workSituation = formState.dataModel.workSituation;
-        formState.dataModel.companyModel = "";  // 默认值,如果所有范围都不匹配
+        formState.dataModel.companyModel = 1;  // 默认值,如果所有范围都不匹配
         for (const range of workSituationRanges) {
           if (
               (range.min === undefined || workSituation >= range.min) &&
               (range.max === undefined || workSituation <= range.max)
           ) {
-            formState.dataModel.companyModel = range.model + "";
+            formState.dataModel.companyModel = range.model;
             break;
           }
         }

+ 3 - 3
h5app/src/views/pages/jobUserInfo/companyEdit.vue

@@ -385,7 +385,7 @@ export default defineComponent({
         estateCategoryID: "",
         tagID:null,
         website:null,
-        companyModel: "",
+        companyModel: 0,
         regionCode: null,
         streetCode: null,
         workSituation: null,
@@ -473,13 +473,13 @@ export default defineComponent({
           {min: 10000, model: 7}
         ];
         const workSituation = formState.dataModel.workSituation;
-        formState.dataModel.companyModel = "";  // 默认值,如果所有范围都不匹配
+        formState.dataModel.companyModel = 1;  // 默认值,如果所有范围都不匹配
         for (const range of workSituationRanges) {
           if (
               (range.min === undefined || workSituation >= range.min) &&
               (range.max === undefined || workSituation <= range.max)
           ) {
-            formState.dataModel.companyModel = range.model + "";
+            formState.dataModel.companyModel = range.model;
             break;
           }
         }