|
@@ -56,6 +56,7 @@
|
|
|
|
|
|
|
|
import { useScript } from '/@/hooks/web/useScript';
|
|
import { useScript } from '/@/hooks/web/useScript';
|
|
|
const A_MAP_URL = 'https://webapi.amap.com/maps?v=2.0&key=e661b00bdf2c44cccf71ef6070ef41b8';
|
|
const A_MAP_URL = 'https://webapi.amap.com/maps?v=2.0&key=e661b00bdf2c44cccf71ef6070ef41b8';
|
|
|
|
|
+
|
|
|
// const A_MAP_URL = 'https://webapi.amap.com/maps?v=2.0&key=5a2d384532ae531bf99bd8487c4f03d2';
|
|
// const A_MAP_URL = 'https://webapi.amap.com/maps?v=2.0&key=5a2d384532ae531bf99bd8487c4f03d2';
|
|
|
// const A_MAP_URL = 'https://webapi.amap.com/maps?v=1.4.10&key=e661b00bdf2c44cccf71ef6070ef41b8';
|
|
// const A_MAP_URL = 'https://webapi.amap.com/maps?v=1.4.10&key=e661b00bdf2c44cccf71ef6070ef41b8';
|
|
|
|
|
|
|
@@ -71,6 +72,7 @@
|
|
|
const isUpdate = ref(true);
|
|
const isUpdate = ref(true);
|
|
|
const detailAddr = ref('');
|
|
const detailAddr = ref('');
|
|
|
const wrapRef = ref<HTMLDivElement | null>(null);
|
|
const wrapRef = ref<HTMLDivElement | null>(null);
|
|
|
|
|
+
|
|
|
interface AddressComponentType {
|
|
interface AddressComponentType {
|
|
|
city: string;
|
|
city: string;
|
|
|
district: string;
|
|
district: string;
|
|
@@ -264,10 +266,14 @@
|
|
|
const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
|
|
const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
|
|
|
resetFields();
|
|
resetFields();
|
|
|
setDrawerProps({ confirmLoading: false });
|
|
setDrawerProps({ confirmLoading: false });
|
|
|
|
|
+ console.log('data', !!data?.isUpdate);
|
|
|
isUpdate.value = !!data?.isUpdate;
|
|
isUpdate.value = !!data?.isUpdate;
|
|
|
|
|
|
|
|
if (unref(isUpdate)) {
|
|
if (unref(isUpdate)) {
|
|
|
console.log('data.record', data);
|
|
console.log('data.record', data);
|
|
|
|
|
+ setFieldsValue({
|
|
|
|
|
+ ...data.record,
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
initMap();
|
|
initMap();
|