修复镇级公司详情不选中地址的问题

This commit is contained in:
weipengfei 2023-10-24 17:53:38 +08:00
parent 48bc4f6331
commit 58716ed3cc

View File

@ -219,7 +219,6 @@
formData[regionType] == city.id || formData[regionType] == city.id ||
city.disabled city.disabled
" "
:checked="city[regionType + '_code'] == formData[regionType]"
v-for="city in datas[regionType + 'Options']" v-for="city in datas[regionType + 'Options']"
:key="city[regionType + '_name']" :key="city[regionType + '_name']"
:label=" :label="
@ -693,7 +692,6 @@ if (route.query.isshow) {
} }
const acceptFileTypes = ref(".png, .jpg, .jpeg, image/png, image/jpeg"); const acceptFileTypes = ref(".png, .jpg, .jpeg, image/png, image/jpeg");
console.log(isDisabled);
// //
const indexType = ref(0); const indexType = ref(0);
@ -896,6 +894,7 @@ const setFormData = async (data: Record<any, any>) => {
formData[key] = data[key]; formData[key] = data[key];
} }
} }
console.log(formData);
}; };
const getDetail = async (row: Record<string, any>) => { const getDetail = async (row: Record<string, any>) => {
@ -980,7 +979,7 @@ function otherdelete() {
email: "", email: "",
}); });
} }
function company_type_change(type: any) { function company_type_change(type: any, clear: boolean | undefined = true) {
// //
const arr = [30, 14, 15]; const arr = [30, 14, 15];
if (arr.indexOf(type) > -1) { if (arr.indexOf(type) > -1) {
@ -1007,7 +1006,7 @@ function company_type_change(type: any) {
formData.street = ""; formData.street = "";
formData.area = ""; formData.area = "";
} }
formData.responsible_area = []; // if (clear) formData.responsible_area = []; //
partyDisabled.value = true; partyDisabled.value = true;
indexType.value = 30; indexType.value = 30;
regionType.value = "street"; regionType.value = "street";
@ -1029,7 +1028,7 @@ function company_type_change(type: any) {
formData.street = ""; formData.street = "";
formData.area = ""; formData.area = "";
} }
formData.responsible_area = []; // if (clear) formData.responsible_area = []; //
// partyDisabled.value = true; // partyDisabled.value = true;
// indexType.value = 30; // indexType.value = 30;
regionType.value = "street"; regionType.value = "street";
@ -1209,7 +1208,7 @@ const getDetails = async () => {
// fileList.value[0].name = '' // fileList.value[0].name = ''
// } // }
company_type_change(formData.company_type); company_type_change(formData.company_type, false);
}; };
const clickdelete = (index) => { const clickdelete = (index) => {
if (!route.query.read) { if (!route.query.read) {