属地问题修改

dev
dengjia 2025-08-25 17:51:49 +08:00
parent 1503c3218a
commit ebc052b38d
3 changed files with 19 additions and 24 deletions

View File

@ -470,15 +470,12 @@ const fnGetData = async () => {
if (!props.corpInfoId) return;
const { data } = await getBusCompanyInfo({ id: props.corpInfoId });
form.value = data;
form.value.area = form.value.province
? [
form.value.province,
form.value.city,
form.value.county,
form.value.village,
form.value.street,
]
: [];
form.value.area = [];
if (form.value.province) form.value.area.push(form.value.province);
if (form.value.city) form.value.area.push(form.value.city);
if (form.value.county) form.value.area.push(form.value.county);
if (form.value.village) form.value.area.push(form.value.village);
if (form.value.street) form.value.area.push(form.value.street);
form.value.sectorId = data.sectorId.split(",");
form.value.address = form.value.longitude
? `${form.value.longitude}-${form.value.latitude}`

View File

@ -122,13 +122,12 @@ const fnGetData = async () => {
if (!props.corpInfoId) return;
const { data } = await getBusThirdPlatform({ id: props.corpInfoId });
form.value = data;
form.value.area = [
form.value.province,
form.value.city,
form.value.county,
form.value.village,
form.value.street,
];
form.value.area = [];
if (form.value.province) form.value.area.push(form.value.province);
if (form.value.city) form.value.area.push(form.value.city);
if (form.value.county) form.value.area.push(form.value.county);
if (form.value.village) form.value.area.push(form.value.village);
if (form.value.street) form.value.area.push(form.value.street);
};
fnGetData();
const appAreaRef = useTemplateRef("areaRef");

View File

@ -7,7 +7,7 @@
:options="dictionariesList"
:props="{ value: 'name', label: 'name', children: 'list' }"
></el-cascader> -->
<app-area-cascader v-model="form.area" check-strictly />
<app-area-cascader v-model="form.area" disabled check-strictly />
</template>
</app-form-builder>
<el-row v-if="form.menuList && form.menuList.length > 0">
@ -116,13 +116,12 @@ const fnGetData = async () => {
if (!props.corpInfoId) return;
const { data } = await getBusThirdPlatform({ id: props.corpInfoId });
form.value = data;
form.value.area = [
form.value.province,
form.value.city,
form.value.county,
form.value.village,
form.value.street,
];
form.value.area = [];
if (form.value.province) form.value.area.push(form.value.province);
if (form.value.city) form.value.area.push(form.value.city);
if (form.value.county) form.value.area.push(form.value.county);
if (form.value.village) form.value.area.push(form.value.village);
if (form.value.street) form.value.area.push(form.value.street);
};
fnGetData();
const fnClose = () => {