diff --git a/src/views/company/edit.vue b/src/views/company/edit.vue index 0f608fd..ca9ac43 100644 --- a/src/views/company/edit.vue +++ b/src/views/company/edit.vue @@ -178,13 +178,18 @@ {{ city[regionType + "_name"] }} @@ -666,6 +671,7 @@ const formData = reactive({ village: "", brigade: "", address: "", + responsible_area: [], company_type: "", avatar: "", sex: "1", @@ -793,24 +799,24 @@ function openCompany() { } // 当前选择的负责区域列表 -const regionList = ref([]); +// const formData.responsible_area = ref([]); // 当前应当显示的区域 const regionType = ref(""); watch( () => formData[regionType.value], (newValue, oldValue) => { - regionList.value = []; - regionList.value.push(newValue); + formData.responsible_area.value = []; + formData.responsible_area.value.push(newValue); } ); // 多选区域 const handleCheckedCitiesChange = (value: string[]) => { - console.log(value); + // console.log("选的值", value); }; // 获取详情 const setFormData = async (data: Record) => { - console.log(formData); + // console.log(formData); for (const key in formData) { if (data[key] != null && data[key] != undefined) { @@ -1092,7 +1098,6 @@ const create = async () => { data.qualification.other_qualifications = JSON.stringify( data.qualification.other_qualifications ); - data[regionType.value] = regionList.value; if (route.query.id) { await apiCompanyEdit(data); } else {