刘翔宇-旅管家 3 years ago
parent 9f024c3a21
commit c877cc7697

@ -15,9 +15,6 @@
</script>
<script type="text/javascript" src='https://webapi.amap.com/maps?v=1.4.11&key=53919608dd142b8d4498b43bfdef0792&plugin=AMap.PlaceSearch'></script>
<script src="https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
<!-- 天地图 -->
<script src="http://api.tianditu.gov.cn/api?v=4.0&tk=82526d64e8504a0341f775c087863825" type="text/javascript"></script>
<!-- <script src="http://gisserver.tianditu.com/tiandituService/wms"></script> -->
<link rel="stylesheet" href="https://js.arcgis.com/3.41/esri/css/esri.css">
<script src="https://js.arcgis.com/3.41/"></script>

@ -77,6 +77,22 @@ export function generaMenu(routes, data) {
}
}]
})
} else if (item.url === "##") {
routes.push({
path: item.path,
component: Layout,
children: [{
path: item.path,
name: item.name,
component: () => import('@/views/rain/map'),
meta: {
title: item.name,
id: item.id,
roles: ['admin'],
icon: item.icon
}
}]
})
} else {
var path = item.url;
if (item.path != "null" && item.path != null && item.path != "") {
@ -127,7 +143,7 @@ const actions = {
//console.log(JSON.stringify(data))
Object.assign(loadMenuData, data)
asyncRoutes.length=0;
asyncRoutes.length = 0;
generaMenu(asyncRoutes, loadMenuData)
let accessedRoutes
if (roles.includes('admin')) {

@ -204,11 +204,10 @@
group_id: "",
allow_menu_ids: ""
},
rules: {
name: [{
required: true,
message: '请填写',
message: '请填写名',
trigger: 'blur',
}],
username: [{

@ -0,0 +1,16 @@
<template>
<div style="height: 100vh;">
<iframe name="iframeMap" id="iframeYuguanMap" src="http://192.168.60.22:8081/Html/Page/Index.html" width="100%"
height="100%" scrolling="auto" frameborder="0"></iframe>
</div>
</template>
<script>
export default {
mounted() {
this.$store.dispatch('app/toggleSideBar')
}
}
</script>
<style>
</style>
Loading…
Cancel
Save