forked from integrated_whb/integrated_whb_vue
培训行业类型编辑异常
parent
14a8be1d8d
commit
30be7bc705
|
@ -214,9 +214,10 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="培训行业类型" prop="INDUSTRY_TYPE">
|
||||
<layout-industry-type
|
||||
<layout-learning-train-type
|
||||
ref="industryTypeRef"
|
||||
v-model="data.form.INDUSTRY_TYPE"
|
||||
type="industryType"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue