From 0aa66dcedffba1073dc51b1a3ab558cd1ffbf197 Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期四, 11 六月 2026 16:36:50 +0800
Subject: [PATCH] 更换地图key
---
screen/public/index.html | 4 ++--
estate-frontend-v2024/src/views/business/forms/edit-project-form.jsx | 4 ++--
estate-frontend-v2024/src/views/map/component/MapComponent.js | 6 +++---
screen/src/view/projectHome/index.vue | 4 ++--
estate-frontend-v2024/src/views/screenSetting/forms/edit-accidentMessage-form.jsx | 2 +-
screen/src/view/home/index.vue | 4 ++--
screen/src/view/accidentCase/index.vue | 2 +-
estate-frontend-v2024/src/views/common/constants.js | 4 ++--
8 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/estate-frontend-v2024/src/views/business/forms/edit-project-form.jsx b/estate-frontend-v2024/src/views/business/forms/edit-project-form.jsx
index c219590..9ba6c72 100644
--- a/estate-frontend-v2024/src/views/business/forms/edit-project-form.jsx
+++ b/estate-frontend-v2024/src/views/business/forms/edit-project-form.jsx
@@ -19,7 +19,7 @@
import { flatPath, formatNodeForCascader, getDepartmentRoot } from "../../../api/hierarchy";
window._AMapSecurityConfig = {
- securityJsCode: 'ba4138d0c0efb13d1d5fd10df08bb0d1',
+ securityJsCode: '93f97fa744d6922ff21c53e4b4981064',
}
const { Option } = Select;
@@ -197,7 +197,7 @@
initMap = () => {
AMapLoader.load({
- key: "1c53e2a2bb2218895e9a9f672df36840",
+ key: "6edc6798d22e5a46660ff46560b1e612",
plugins: ['AMap.ToolBar', 'AMap.AutoComplete', 'AMap.PlaceSearch', 'AMap.Geocoder', 'AMap.Marker'],
}).then((AMap) => {
this.AMap = AMap;
diff --git a/estate-frontend-v2024/src/views/common/constants.js b/estate-frontend-v2024/src/views/common/constants.js
index c70673b..f3af921 100644
--- a/estate-frontend-v2024/src/views/common/constants.js
+++ b/estate-frontend-v2024/src/views/common/constants.js
@@ -4,8 +4,8 @@
// export const BASE_URL = 'http://47.93.28.249:8181'
// export const BASE_URL = 'http://192.168.110.188:8182'; //测试
-export const BASE_URL = 'http://192.168.110.111:8182'; //测试
-// export const BASE_URL = 'http://47.108.113.190:8182';
+// export const BASE_URL = 'http://192.168.110.111:8182'; //测试
+export const BASE_URL = 'http://47.108.113.190:8182';
// export const SCREEN_URL = 'http://221.182.45.100:8087/#/'; 测试
export const SCREEN_URL = 'http://xllpgzx.com/screen/#/';
diff --git a/estate-frontend-v2024/src/views/map/component/MapComponent.js b/estate-frontend-v2024/src/views/map/component/MapComponent.js
index 86b9b39..e1841f8 100644
--- a/estate-frontend-v2024/src/views/map/component/MapComponent.js
+++ b/estate-frontend-v2024/src/views/map/component/MapComponent.js
@@ -5,7 +5,7 @@
import {projectTypeMap} from "../../common/constants";
window._AMapSecurityConfig = {
- securityJsCode: 'ba4138d0c0efb13d1d5fd10df08bb0d1',
+ securityJsCode: '93f97fa744d6922ff21c53e4b4981064',
}
// const geocoder = new AMap.Geocoder({
// apiKey: '62d95204ea3dfb3061cd678bd8e40995'
@@ -23,7 +23,7 @@
// 2.dom渲染成功后进行map对象的创建
componentDidMount() {
AMapLoader.load({
- key: "1c53e2a2bb2218895e9a9f672df36840", // 申请好的Web端开发者Key,首次调用 load 时必填
+ key: "6edc6798d22e5a46660ff46560b1e612", // 申请好的Web端开发者Key,首次调用 load 时必填
// version:"2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
plugins: ['AMap.Scale'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
AMapUI: {
@@ -209,4 +209,4 @@
}
//导出地图组建类
-export default MapComponent;
\ No newline at end of file
+export default MapComponent;
diff --git a/estate-frontend-v2024/src/views/screenSetting/forms/edit-accidentMessage-form.jsx b/estate-frontend-v2024/src/views/screenSetting/forms/edit-accidentMessage-form.jsx
index f51792c..231bb4a 100644
--- a/estate-frontend-v2024/src/views/screenSetting/forms/edit-accidentMessage-form.jsx
+++ b/estate-frontend-v2024/src/views/screenSetting/forms/edit-accidentMessage-form.jsx
@@ -63,7 +63,7 @@
getDistrictData = (keyword = "", level = 0) => {
// subdistrict=1 只获取下一级
- const url = `https://restapi.amap.com/v3/config/district?keywords=${keyword}&subdistrict=1&key=aeec2a4b436322753dd2458fde89506b`;
+ const url = `https://restapi.amap.com/v3/config/district?keywords=${keyword}&subdistrict=1&key=af882f8998e5c0f8eadfdeac4a8ccf87`;
return fetch(url)
.then(response => response.json())
.then(data => {
diff --git a/screen/public/index.html b/screen/public/index.html
index 302b3c6..7117c4f 100644
--- a/screen/public/index.html
+++ b/screen/public/index.html
@@ -9,7 +9,7 @@
<script src="https://cache.amap.com/lbs/static/es5.min.js"></script>
<script type="text/javascript">
window._AMapSecurityConfig = {
- securityJsCode: "c75eccf0742998b2ea43823e08cacccd",
+ securityJsCode: "93f97fa744d6922ff21c53e4b4981064",
};
</script>
<script src="https://webapi.amap.com/loader.js"></script>
@@ -26,4 +26,4 @@
<!-- built files will be auto injected -->
</body>
-</html>
\ No newline at end of file
+</html>
diff --git a/screen/src/view/accidentCase/index.vue b/screen/src/view/accidentCase/index.vue
index 6aeb4e5..e20b80c 100644
--- a/screen/src/view/accidentCase/index.vue
+++ b/screen/src/view/accidentCase/index.vue
@@ -311,7 +311,7 @@
// 获取高德地图区域数据
getDistrictData (keyword = '', level = 0) {
- const url = `https://restapi.amap.com/v3/config/district?keywords=${keyword}&subdistrict=1&key=aeec2a4b436322753dd2458fde89506b`
+ const url = `https://restapi.amap.com/v3/config/district?keywords=${keyword}&subdistrict=1&key=af882f8998e5c0f8eadfdeac4a8ccf87`
return fetch(url)
.then((response) => response.json())
.then((data) => {
diff --git a/screen/src/view/home/index.vue b/screen/src/view/home/index.vue
index fae578a..9082f0f 100644
--- a/screen/src/view/home/index.vue
+++ b/screen/src/view/home/index.vue
@@ -869,7 +869,7 @@
this.activeTab = Number(sessionStorage.getItem('activeTab'))
}
this.mapPromise = window.AMapLoader.load({
- key: '232929db1cb31f26d42b3645a7456154',
+ key: '6edc6798d22e5a46660ff46560b1e612',
version: '2.0',
plugins: ['AMap.DistrictSearch', 'AMap.Geocoder'],
AMapUI: {
@@ -1175,7 +1175,7 @@
setMapload () {
if (!this.mapPromise) {
this.mapPromise = window.AMapLoader.load({
- key: '232929db1cb31f26d42b3645a7456154',
+ key: '6edc6798d22e5a46660ff46560b1e612',
version: '2.0',
plugins: ['AMap.DistrictSearch', 'AMap.Geocoder'],
AMapUI: {
diff --git a/screen/src/view/projectHome/index.vue b/screen/src/view/projectHome/index.vue
index a043e3f..802a4f4 100644
--- a/screen/src/view/projectHome/index.vue
+++ b/screen/src/view/projectHome/index.vue
@@ -851,7 +851,7 @@
(typeof AMapLoader !== 'undefined' ? AMapLoader : null)
if (!loader) return
this.mapPromise = loader.load({
- key: '232929db1cb31f26d42b3645a7456154',
+ key: '6edc6798d22e5a46660ff46560b1e612',
version: '2.0',
plugins: ['AMap.Geocoder']
})
@@ -1373,7 +1373,7 @@
return Promise.reject(new Error('AMapLoader is not available'))
}
this.mapPromise = loader.load({
- key: '232929db1cb31f26d42b3645a7456154',
+ key: '6edc6798d22e5a46660ff46560b1e612',
version: '2.0',
plugins: ['AMap.Geocoder']
})
--
Gitblit v1.7.1