From 30be7bc70527c26cd59402f25f0d49e28e8f7c2c Mon Sep 17 00:00:00 2001 From: wangpeng Date: Thu, 11 Apr 2024 11:26:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E8=A1=8C=E4=B8=9A=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=BC=96=E8=BE=91=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/enterprise_management/information/edit.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/enterprise_management/information/edit.vue b/src/views/enterprise_management/information/edit.vue index 45bc85a..e4a18b5 100644 --- a/src/views/enterprise_management/information/edit.vue +++ b/src/views/enterprise_management/information/edit.vue @@ -214,9 +214,10 @@ - @@ -452,6 +453,7 @@ import LayoutTerritory from "@/components/territory/index.vue"; import LayoutIndustry from "@/components/industry/index.vue"; import LayoutEconomicType from "@/components/economic_type/index.vue"; import LayoutUpload from "@/components/upload/index.vue"; +import LayoutLearningTrainType from "@/components/learning_train_type/index.vue"; import { layoutFnGetEnterpriseScale, layoutFnGetEnterpriseStatus, @@ -653,11 +655,15 @@ const fnSubmit = debounce( data.form.CORP_TYPE3 = data.form.INDUSTRYALL[2] || ""; data.form.CORP_TYPE4 = data.form.INDUSTRYALL[3] || ""; data.form.CORP_TYPE_NAME = industryCascaderRef.value.getCheckedNodes(); - data.form.INDUSTRY_NAME = industryTypeRef.value.getCheckedNodes(); const formData = new FormData(); Object.keys(data.form).forEach((key) => { formData.append(key, data.form[key]); }); + formData.delete("INDUSTRY_TYPE"); + formData.delete("INDUSTRY_NAME"); + const { name, id } = industryTypeRef.value.getIndustryTypeCurrentCheckAll(); + formData.append("INDUSTRY_TYPE", id); + formData.append("INDUSTRY_NAME", name.join("/")); for (let i = 0; i < data.form.bus_images.length; i++) { data.form.bus_images[i].raw && formData.append("imgFiles", data.form.bus_images[i].raw);