diff --git a/package.json b/package.json index 7453a14..b14cb3b 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "hotkeys-js": "^3.10.0", "html2canvas": "^1.4.1", "jsencrypt": "^3.3.1", + "leaflet": "^1.9.4", "lodash-es": "^4.17.21", "mitt": "^3.0.0", "mockjs": "^1.1.0", diff --git a/package.json b/package.json index 7453a14..b14cb3b 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "hotkeys-js": "^3.10.0", "html2canvas": "^1.4.1", "jsencrypt": "^3.3.1", + "leaflet": "^1.9.4", "lodash-es": "^4.17.21", "mitt": "^3.0.0", "mockjs": "^1.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7673a86..5eaa8d1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ jsencrypt: specifier: ^3.3.1 version: 3.3.1 + leaflet: + specifier: ^1.9.4 + version: 1.9.4 lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -5287,6 +5290,10 @@ bin-pack: 1.0.2 dev: true + /leaflet@1.9.4: + resolution: {integrity: sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==} + dev: false + /levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} diff --git a/package.json b/package.json index 7453a14..b14cb3b 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "hotkeys-js": "^3.10.0", "html2canvas": "^1.4.1", "jsencrypt": "^3.3.1", + "leaflet": "^1.9.4", "lodash-es": "^4.17.21", "mitt": "^3.0.0", "mockjs": "^1.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7673a86..5eaa8d1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ jsencrypt: specifier: ^3.3.1 version: 3.3.1 + leaflet: + specifier: ^1.9.4 + version: 1.9.4 lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -5287,6 +5290,10 @@ bin-pack: 1.0.2 dev: true + /leaflet@1.9.4: + resolution: {integrity: sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==} + dev: false + /levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} diff --git a/public/config/config.json b/public/config/config.json index fdd3bd1..d9e3716 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -9,15 +9,15 @@ "DataVUrl":[ { "name": "碳足迹监测", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" }, { "name": "碳足迹评价", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" }, { "name": "碳足迹预警", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" } ] } diff --git a/package.json b/package.json index 7453a14..b14cb3b 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "hotkeys-js": "^3.10.0", "html2canvas": "^1.4.1", "jsencrypt": "^3.3.1", + "leaflet": "^1.9.4", "lodash-es": "^4.17.21", "mitt": "^3.0.0", "mockjs": "^1.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7673a86..5eaa8d1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ jsencrypt: specifier: ^3.3.1 version: 3.3.1 + leaflet: + specifier: ^1.9.4 + version: 1.9.4 lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -5287,6 +5290,10 @@ bin-pack: 1.0.2 dev: true + /leaflet@1.9.4: + resolution: {integrity: sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==} + dev: false + /levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} diff --git a/public/config/config.json b/public/config/config.json index fdd3bd1..d9e3716 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -9,15 +9,15 @@ "DataVUrl":[ { "name": "碳足迹监测", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" }, { "name": "碳足迹评价", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" }, { "name": "碳足迹预警", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" } ] } diff --git a/public/img/icon-marker.png b/public/img/icon-marker.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/img/icon-marker.png Binary files differ diff --git a/package.json b/package.json index 7453a14..b14cb3b 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "hotkeys-js": "^3.10.0", "html2canvas": "^1.4.1", "jsencrypt": "^3.3.1", + "leaflet": "^1.9.4", "lodash-es": "^4.17.21", "mitt": "^3.0.0", "mockjs": "^1.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7673a86..5eaa8d1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ jsencrypt: specifier: ^3.3.1 version: 3.3.1 + leaflet: + specifier: ^1.9.4 + version: 1.9.4 lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -5287,6 +5290,10 @@ bin-pack: 1.0.2 dev: true + /leaflet@1.9.4: + resolution: {integrity: sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==} + dev: false + /levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} diff --git a/public/config/config.json b/public/config/config.json index fdd3bd1..d9e3716 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -9,15 +9,15 @@ "DataVUrl":[ { "name": "碳足迹监测", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" }, { "name": "碳足迹评价", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" }, { "name": "碳足迹预警", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" } ] } diff --git a/public/img/icon-marker.png b/public/img/icon-marker.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/img/icon-marker.png Binary files differ diff --git a/src/components.d.ts b/src/components.d.ts index 9e9fd9f..4c4a4e3 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -38,6 +38,7 @@ InfoWindow: typeof import('./components/map/infoWindow.vue')['default'] InfoWindow2: typeof import('./components/map/infoWindow2.vue')['default'] InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] + Leaflet: typeof import('./components/map/leaflet.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MapBak: typeof import('./components/map-bak/index.vue')['default'] diff --git a/package.json b/package.json index 7453a14..b14cb3b 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "hotkeys-js": "^3.10.0", "html2canvas": "^1.4.1", "jsencrypt": "^3.3.1", + "leaflet": "^1.9.4", "lodash-es": "^4.17.21", "mitt": "^3.0.0", "mockjs": "^1.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7673a86..5eaa8d1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ jsencrypt: specifier: ^3.3.1 version: 3.3.1 + leaflet: + specifier: ^1.9.4 + version: 1.9.4 lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -5287,6 +5290,10 @@ bin-pack: 1.0.2 dev: true + /leaflet@1.9.4: + resolution: {integrity: sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==} + dev: false + /levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} diff --git a/public/config/config.json b/public/config/config.json index fdd3bd1..d9e3716 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -9,15 +9,15 @@ "DataVUrl":[ { "name": "碳足迹监测", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" }, { "name": "碳足迹评价", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" }, { "name": "碳足迹预警", - "url": "https://share.shanhaibi.com/6705f423dc67f/" + "url": "https://share.shanhaibi.com/670e1ecdca09d/" } ] } diff --git a/public/img/icon-marker.png b/public/img/icon-marker.png new file mode 100644 index 0000000..4f68e9a --- /dev/null +++ b/public/img/icon-marker.png Binary files differ diff --git a/src/components.d.ts b/src/components.d.ts index 9e9fd9f..4c4a4e3 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -38,6 +38,7 @@ InfoWindow: typeof import('./components/map/infoWindow.vue')['default'] InfoWindow2: typeof import('./components/map/infoWindow2.vue')['default'] InfoWindowHot: typeof import('./components/map/infoWindowHot.vue')['default'] + Leaflet: typeof import('./components/map/leaflet.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MapBak: typeof import('./components/map-bak/index.vue')['default'] diff --git a/src/components/SelectLocationMap/index.vue b/src/components/SelectLocationMap/index.vue index 2c7064d..d725932 100644 --- a/src/components/SelectLocationMap/index.vue +++ b/src/components/SelectLocationMap/index.vue @@ -17,12 +17,15 @@ const cancel = () => { dialogFormVisible.value = false } +const position = ref([]) // 确认 const confirm = () => { + $emit('confirm', position.value) dialogFormVisible.value = false } const location = (data: number[]) => { - $emit('confirm', data) + // $emit('confirm', data) + position.value = data } defineExpose({ initDialog, @@ -34,7 +37,7 @@ v-model="dialogFormVisible" title="选择位置" append-to-body width="1000px" :close-on-click-modal="false" top="12vh" > - +