diff --git a/dist.tar b/dist.tar index 74846c9..ec4385e 100644 Binary files a/dist.tar and b/dist.tar differ diff --git a/src/api/dataList/enterprise.js b/src/api/dataList/enterprise.js index 0de6157..c815c96 100644 --- a/src/api/dataList/enterprise.js +++ b/src/api/dataList/enterprise.js @@ -16,6 +16,13 @@ export function companyAdd(data) { data, }); } +// 公司企业信息删除 +export function companyDelete(ids) { + return request({ + url: `/business/enterprise/${ids}`, + method: "delete", + }); +} // 公司企业详细信息 export function companyDetail(id) { return request({ diff --git a/src/views/components/ExpertForm/index.vue b/src/views/components/ExpertForm/index.vue index 13070a3..cab8465 100644 --- a/src/views/components/ExpertForm/index.vue +++ b/src/views/components/ExpertForm/index.vue @@ -85,20 +85,7 @@ - - - - + @@ -217,7 +204,11 @@ - + { formValid = false; } const cityFormValid = await cityFormRef.value.validateForm(); - + const fieldFormValid = await fieldFormRef.value.validateForm(); + console.log(fieldFormValid); const keywordsFormValid = await keywordsFormRef.value.validateForm(); if (formType.value == 1) { - const researchsFormValid = await researchsFormRef.value.validateForm(); + //个人 + const researchsFormValid = await researchsFormRef.value.validateForm(); // 研究方向验证 return ( - formValid && cityFormValid && keywordsFormValid && researchsFormValid + formValid && + cityFormValid && + fieldFormValid && + keywordsFormValid && + researchsFormValid ); } else if (formType.value == 2) { - const directionsFormValid = await directionsFormRef.value.validateForm(); + //企业 + const directionsFormValid = await directionsFormRef.value.validateForm(); //生产方向验证 return ( - formValid && cityFormValid && keywordsFormValid && directionsFormValid + formValid && + cityFormValid && + fieldFormValid && + keywordsFormValid && + directionsFormValid ); } else { throw "未知的formType"; diff --git a/src/views/components/FieldOptions/index.vue b/src/views/components/FieldOptions/index.vue index 45ff1d4..5fa381c 100644 --- a/src/views/components/FieldOptions/index.vue +++ b/src/views/components/FieldOptions/index.vue @@ -1,14 +1,14 @@