|
|
@@ -105,9 +105,9 @@
|
|
|
isDefaultSelect.value = value;
|
|
|
console.log('onChange');
|
|
|
},
|
|
|
- onselect: function () {
|
|
|
+ onSelect: function () {
|
|
|
console.log('onselect');
|
|
|
- emit('update-gps', { lat: null, lon: null });
|
|
|
+ emit('update-gps', { lat: null, lng: null });
|
|
|
},
|
|
|
options: [
|
|
|
{
|
|
|
@@ -201,7 +201,9 @@
|
|
|
];
|
|
|
|
|
|
const location = computed(() =>
|
|
|
- props.currentLatLng ? `${props.currentLatLng?.lat}, ${props.currentLatLng?.lng}` : '',
|
|
|
+ props.currentLatLng?.lat && props.currentLatLng?.lng
|
|
|
+ ? `${props.currentLatLng?.lat}, ${props.currentLatLng?.lng}`
|
|
|
+ : '',
|
|
|
);
|
|
|
const googleKey = computed(() => import.meta.env.VITE_GOOGLE_KEY);
|
|
|
|
|
|
@@ -254,14 +256,14 @@
|
|
|
if (!pro.lat && !pro.lon) {
|
|
|
console.log('没有地理信息');
|
|
|
pro.isShow = 0;
|
|
|
- emit('update-gps', { lat: null, log: null });
|
|
|
+ emit('update-gps', { lat: null, lng: null });
|
|
|
}
|
|
|
//@ts-ignore
|
|
|
if (pro.tempSlect === 2 && !pro.gpsNum) {
|
|
|
pro.lat = null;
|
|
|
pro.lon = null;
|
|
|
pro.isShow = 0;
|
|
|
- emit('update-gps', { lat: null, log: null });
|
|
|
+ emit('update-gps', { lat: null, lng: null });
|
|
|
}
|
|
|
console.log('save', pro);
|
|
|
await AddOptOrUpdateApi(pro);
|