Commit a4118f3b authored by 郭铭瑶's avatar 郭铭瑶 🤘

添加测绘院地图链接

parent 27523232
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
font-size: 1.6vh; font-size: 1.6vh;
} }
</style> </style>
<script src="./static/jquery.min.js"></script>
<script type='text/javascript' src='http://168.168.112.76:8181/smimap/ShsmiGis.Bridge.js'></script>
<script type='text/javascript' src='https://api.map.baidu.com/api?v=2.0&ak=MvCb6BWu4jHR9TD0svHfO4bWlx9pA9HG'></script> <script type='text/javascript' src='https://api.map.baidu.com/api?v=2.0&ak=MvCb6BWu4jHR9TD0svHfO4bWlx9pA9HG'></script>
</head> </head>
<body> <body>
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
</template> </template>
<script> <script>
const {ShsmiGis} = window
import BaiduMap from './components/baidu' import BaiduMap from './components/baidu'
import ThemeTitle from './components/title' import ThemeTitle from './components/title'
import DayCheckSituation from './components/day-check-situation' import DayCheckSituation from './components/day-check-situation'
...@@ -72,6 +73,7 @@ export default { ...@@ -72,6 +73,7 @@ export default {
}, },
data() { data() {
return { return {
map: null,
showPersonModal: false, showPersonModal: false,
personLayout: [ personLayout: [
{ {
...@@ -236,7 +238,19 @@ export default { ...@@ -236,7 +238,19 @@ export default {
] ]
} }
}, },
mounted() {
this.$nextTick(this.initMap)
},
methods: { methods: {
initMap() {
new ShsmiGis.Bridge({
id: 'map',
url: 'http://168.168.112.76:8181/smimap/index.html',
onReady: function () {
console.log('地图创建完成')
}
})
},
handlePersonSelect(name) { handlePersonSelect(name) {
this.showPersonModal = true this.showPersonModal = true
}, },
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment