|
@@ -118,7 +118,6 @@ const caseId = computed(() => {
|
|
|
}
|
|
|
});
|
|
|
onMounted(async () => {
|
|
|
- console.log("mapId", props);
|
|
|
let list = await getcaseMap({});
|
|
|
mapOptions.value = list.map((ele) => {
|
|
|
return { ...ele, label: ele.name, mapUrl: JSON.parse(ele.mapUrl) };
|
|
@@ -128,10 +127,11 @@ onMounted(async () => {
|
|
|
// return {...ele, layer: L.tileLayer(ele.url)}
|
|
|
// })
|
|
|
// mapOptions.value = layerList
|
|
|
+ console.log("mapId", list[0], mapOptions.value[0].mapUrl[0].tempUrl);
|
|
|
if(route.name == 'drawShareFile'){
|
|
|
caseInfoData.value = {
|
|
|
- mapId: 1,
|
|
|
- mapUrl: '//wprd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}&layer=6&token=YOUR_API_KEY'
|
|
|
+ mapUrl : mapOptions.value[0].mapUrl[0].tempUrl,
|
|
|
+ mapId : mapOptions.value[0].id
|
|
|
}
|
|
|
}else{
|
|
|
caseInfoData.value = await getCaseInfo(caseId.value);
|