liyongli 1 天之前
父节点
当前提交
64ef671a91
共有 2 个文件被更改,包括 15 次插入1 次删除
  1. 7 0
      src/view/fenghui/form1Recurrence.vue
  2. 8 1
      src/view/fenghui/formRecurrence.vue

+ 7 - 0
src/view/fenghui/form1Recurrence.vue

@@ -534,6 +534,13 @@ const initFormData = () => {
             subData[key] === '是' && formData.active2.push('共商人工智能发展治理')
             continue
         }
+        if (key === 'countryRegion') {
+            try {
+                formData.countryRegionName = lang[props.langType].countryRegionList.filter(item => item.value === subData[key])[0].text;
+            } catch (err) {
+                formData.countryRegionName = '';
+            }
+        }
         formData[relationship[key]] = subData[key];
     }
 }

+ 8 - 1
src/view/fenghui/formRecurrence.vue

@@ -556,6 +556,13 @@ const initFormData = () => {
             subData[key] === '是' && formData.active2.push('共商人工智能发展治理')
             continue
         }
+        if (key === 'countryRegion') {
+            try {
+                formData.countryRegionName = lang[props.langType].countryRegionList.filter(item => item.value === subData[key])[0].text;
+            } catch (err) {
+                formData.countryRegionName = '';
+            }
+        }
         formData[relationship[key]] = subData[key];
     }
 }
@@ -587,7 +594,7 @@ const onUnitTypeConfirm = (values) => {
 }
 const countryRegionConfirm = (values) => {
     showCountryRegion.value = false;
-    formData.countryRegionName = values.selectedOptions[0].text;
+    formData.countryRegionNam = values.selectedOptions[0].text;
     formData.countryRegion = values.selectedOptions[0].value;
 }