diff --git a/FlowerGully/package.json b/FlowerGully/package.json index ab62f4dd62d9711bf3ca77e472a6f4380a50edde..061a1389f6e3bd2e3688f3938ab4f8761f9a0895 100644 --- a/FlowerGully/package.json +++ b/FlowerGully/package.json @@ -23,6 +23,7 @@ "nprogress": "0.2.0", "path-to-regexp": "2.4.0", "vue": "2.6.10", + "vue-baidu-map": "^0.21.22", "vue-router": "3.0.6", "vuex": "3.1.0" }, diff --git a/FlowerGully/src/App.vue b/FlowerGully/src/App.vue index ec9032c1c638e918ec97e413aa081993a95048f4..f668ec649b97d1e945d634fca9d7287c2fe5544d 100644 --- a/FlowerGully/src/App.vue +++ b/FlowerGully/src/App.vue @@ -9,3 +9,6 @@ export default { name: 'App' } + + \ No newline at end of file diff --git a/FlowerGully/src/main.js b/FlowerGully/src/main.js index 6111b9b1f7599cd87d09a6e977a0b33ff759b492..de3ce42abed3d3ba867d37630484eee7382aaf27 100644 --- a/FlowerGully/src/main.js +++ b/FlowerGully/src/main.js @@ -9,6 +9,7 @@ import '@/styles/index.scss' // global css import App from './App' import store from './store' import router from './router' +import BaiduMap from 'vue-baidu-map' import '@/icons' // icon import '@/permission' // permission control @@ -27,6 +28,10 @@ axios.defaults.baseURL = 'http://localhost:3000/api/'; Vue.use(ElementUI) Vue.config.productionTip = false +Vue.use(BaiduMap, { + // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */ + ak: 'apKWrd8UhmG4WNy4oX3GpoZlg3Fg7sRr' +}) new Vue({ el: '#app', diff --git a/FlowerGully/src/views/BasicInformation/Variety.vue b/FlowerGully/src/views/BasicInformation/Variety.vue index aa57300943c10f8cb5d9a3ee90d4ec602fe078ad..3cb08934d4f58794b08c23f1ea74916cdf489d63 100644 --- a/FlowerGully/src/views/BasicInformation/Variety.vue +++ b/FlowerGully/src/views/BasicInformation/Variety.vue @@ -69,27 +69,18 @@ - - - - - -
-
- - -
-
-
- - 取 消 - 确 定 - -
-
+ 品种名称 +

品种图片

+ + + 取 消 + 确 定 +
diff --git a/FlowerGully/src/views/BasicInformation/compoents/BaseAddition.vue b/FlowerGully/src/views/BasicInformation/compoents/BaseAddition.vue index b4a08be9f9eed3d42558bdb5cf559ff90a76da4a..63ccbe9e0043b33f5909c27ee3f0cc523f39ca06 100644 --- a/FlowerGully/src/views/BasicInformation/compoents/BaseAddition.vue +++ b/FlowerGully/src/views/BasicInformation/compoents/BaseAddition.vue @@ -6,9 +6,8 @@ -
- -
+ +
@@ -59,6 +58,10 @@ export default { props: ['showDialog', 'message'], data() { return { + // 定位位置 + center: { lng: 114.228026, lat: 27.527942 }, + // 地图放大等级 + zoom: 12, ruleForm: { id: null, //大棚id baseName: '',//基地名字 @@ -214,4 +217,9 @@ export default { display: flex; justify-content: center; } + +// 去除百度地图的图标 根据实际情况看是否要加样式穿透(::v-deep) +::v-deep .anchorBL { + display: none !important; +} \ No newline at end of file diff --git a/FlowerGully/src/views/BasicInformation/compoents/GreenhouseAdd.vue b/FlowerGully/src/views/BasicInformation/compoents/GreenhouseAdd.vue index c833d40ba1bc33183c3abfa12490e47f953eeb27..1bf54f54e7c0a9287cac77a8c961658483f84130 100644 --- a/FlowerGully/src/views/BasicInformation/compoents/GreenhouseAdd.vue +++ b/FlowerGully/src/views/BasicInformation/compoents/GreenhouseAdd.vue @@ -6,9 +6,8 @@ -
- -
+ +
@@ -54,11 +53,16 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/FlowerGully/src/views/Equipment/VideoMonitoring.vue b/FlowerGully/src/views/Equipment/VideoMonitoring.vue index 75ffa69da0a137d6d6088b5f805f1537cfe059b5..8ec8906dae6c532e9fc85b65cd46fa1048845a86 100644 --- a/FlowerGully/src/views/Equipment/VideoMonitoring.vue +++ b/FlowerGully/src/views/Equipment/VideoMonitoring.vue @@ -32,7 +32,7 @@ - +