diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..f11514d Binary files /dev/null and b/dist.zip differ diff --git a/src/views/geopoliticalCustomers/geopoliticalCustomersModal copy.vue b/src/views/geopoliticalCustomers/geopoliticalCustomersModal copy.vue new file mode 100644 index 0000000..7686107 --- /dev/null +++ b/src/views/geopoliticalCustomers/geopoliticalCustomersModal copy.vue @@ -0,0 +1,1942 @@ + + + + diff --git a/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue b/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue index 7686107..4dfac70 100644 --- a/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue +++ b/src/views/geopoliticalCustomers/geopoliticalCustomersModal.vue @@ -563,6 +563,9 @@ const formRef = ref() const provincesAndCitiesAndAutonomousOptions: any = ref([]) //省市区change const addressChange = async (value: any) => { + // if (infoWindows.value) { + // infoWindows.value.close() // 关闭气泡卡片 + // } formModel.detailAddress = '' if (value) { @@ -726,6 +729,9 @@ const handleSearch = (val: string) => { //小区a-select select事件 const handleSelect = (val: string) => { formModel.detailAddress = val + if (infoWindows.value && infoWindows.value.close) { + infoWindows.value.close() // 关闭气泡卡片 + } // map.value.clearMap() // formModel.customStoreEntities=[] // listData.value=[] @@ -934,6 +940,8 @@ const pagingQuery = (lng: number | undefined, lat: number | undefined) => { listData.value.length = 0 result.data && result.data.forEach((item: any) => { + // const disabled = ids.includes(Number(item.id)) + const disabled = ids.includes(Number(item.id)) listData.value.push({ title: item.storeName, @@ -1131,6 +1139,17 @@ const match = async (detailAddress: string) => { } else { if (title.value === '新建预约' && formModel.customStoreEntities.length !== 0) { matchregisterVisible.value = true + } else if (title.value === '编辑') { + const fields = ['address', 'detailAddress', 'radius'] // 指定要校验的字段名 + formRef.value + ?.validateFields(fields) + .then(() => { + idThen(detailAddress) + }) + .catch(() => { + // 校验失败 + console.log('校验失败') + }) } else { if (formModel.address && formModel.address.length === 0) { return message.info('请输入您的地址信息') @@ -1171,7 +1190,7 @@ const addStore = (item: any) => { formModel.customStoreEntities.push({ storeName: item.title, reservationTime: '', - storeId: item.id, + storeId: Number(item.id), reservationDate: '', option: item.option, disabled: item.disabled @@ -1508,15 +1527,15 @@ defineExpose({ if (opendata.type === 'audit') { getActiveKey() title.value = '编辑' - if (formModel.address.length !== 0) { - isAddressDisabled.value = true - } - if (formModel.radius) { - isRadiusDisabled.value = true - } - if (formModel.detailAddress) { - isDetailAddressDisabled.value = true - } + // if (formModel.address.length !== 0) { + // isAddressDisabled.value = true + // } + // if (formModel.radius) { + // isRadiusDisabled.value = true + // } + // if (formModel.detailAddress) { + // isDetailAddressDisabled.value = true + // } handleMapInit().then(() => { if (formModel.address?.length !== 0 && formModel.detailAddress && formModel.radius) { match(formModel.detailAddress) diff --git a/vite.config.ts b/vite.config.ts index 17cb009..4014482 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -32,7 +32,7 @@ export const serverAddress = 'http://39.100.77.21:8000' //线上ip // export const serverAddress = 'http://175.27.212.74:80' -//线上域名 +//线上域名,现在用这个 // export const serverAddress = 'https://byffp.top' // export const serverAddress = 'http://8.130.96.163:8100' // https://vitejs.dev/config/