diff --git a/favicon.ico b/favicon.ico
index 586e43b..ee64a52 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ
diff --git a/favicon.ico b/favicon.ico
index 586e43b..ee64a52 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ
diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue
index ee7f2a4..e6c3b12 100644
--- a/src/components/Map/MarsMap.vue
+++ b/src/components/Map/MarsMap.vue
@@ -47,7 +47,11 @@
default: ''
}
},
-
+ data() {
+ return {
+ lastEntity: null
+ }
+ },
mounted() {
const { mars3d } = this
if (this.appendToBody) {
@@ -194,6 +198,7 @@
})
this.map.addLayer(geoJsonLayer1)
},
+ // 添加省地块
addProvincePolygon() {
const { mars3d, Cesium } = this
var graphicLayer = new mars3d.layer.DivLayer()
@@ -206,7 +211,6 @@
const coordinates = (features[i].geometry.coordinates[0][0]).map(item => {
return [item[0], item[1], 0]
})
- console.log(features[i].geometry.coordinates)
const graphic = new mars3d.graphic.PolygonEntity({
positions: coordinates,
style: {
@@ -246,8 +250,48 @@
})
graphicLayer.addGraphic(graphic)
}
+ // graphicLayer.on(mars3d.EventType.mouseOver, event => {
+ // console.log('鼠标移入图层', event)
+ // console.log(event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.highlightedEntity(entity)
+ // }
+ // })
+ // graphicLayer.on(mars3d.EventType.mouseOut, event => {
+ // console.log('鼠标移出图层', event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.clearLastHighlightedEntity()
+ // }
+ // })
}
})
+ },
+ // 高亮
+ highlightedEntity(entity) {
+ if (!entity || !entity.polygon) {
+ return
+ }
+ const color = entity.polygon.material.color
+ const outline = entity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#1ff5ff')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = entity
+ },
+ // 清除高亮
+ clearLastHighlightedEntity() {
+ const { lastEntity } = this
+ if (lastEntity == null) {
+ return
+ }
+ var color = lastEntity.polygon.material.color
+ const outline = lastEntity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#3a77da')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = null
}
}
}
diff --git a/favicon.ico b/favicon.ico
index 586e43b..ee64a52 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ
diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue
index ee7f2a4..e6c3b12 100644
--- a/src/components/Map/MarsMap.vue
+++ b/src/components/Map/MarsMap.vue
@@ -47,7 +47,11 @@
default: ''
}
},
-
+ data() {
+ return {
+ lastEntity: null
+ }
+ },
mounted() {
const { mars3d } = this
if (this.appendToBody) {
@@ -194,6 +198,7 @@
})
this.map.addLayer(geoJsonLayer1)
},
+ // 添加省地块
addProvincePolygon() {
const { mars3d, Cesium } = this
var graphicLayer = new mars3d.layer.DivLayer()
@@ -206,7 +211,6 @@
const coordinates = (features[i].geometry.coordinates[0][0]).map(item => {
return [item[0], item[1], 0]
})
- console.log(features[i].geometry.coordinates)
const graphic = new mars3d.graphic.PolygonEntity({
positions: coordinates,
style: {
@@ -246,8 +250,48 @@
})
graphicLayer.addGraphic(graphic)
}
+ // graphicLayer.on(mars3d.EventType.mouseOver, event => {
+ // console.log('鼠标移入图层', event)
+ // console.log(event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.highlightedEntity(entity)
+ // }
+ // })
+ // graphicLayer.on(mars3d.EventType.mouseOut, event => {
+ // console.log('鼠标移出图层', event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.clearLastHighlightedEntity()
+ // }
+ // })
}
})
+ },
+ // 高亮
+ highlightedEntity(entity) {
+ if (!entity || !entity.polygon) {
+ return
+ }
+ const color = entity.polygon.material.color
+ const outline = entity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#1ff5ff')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = entity
+ },
+ // 清除高亮
+ clearLastHighlightedEntity() {
+ const { lastEntity } = this
+ if (lastEntity == null) {
+ return
+ }
+ var color = lastEntity.polygon.material.color
+ const outline = lastEntity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#3a77da')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = null
}
}
}
diff --git a/src/permission.js b/src/permission.js
index 0d677e4..eb6c110 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -8,7 +8,7 @@
NProgress.configure({ showSpinner: false })// NProgress configuration
-const whiteList = ['/login', 'config/baseconfig', '/full/mapLayer'] // 不重定向白名单
+const whiteList = ['/login', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/waterThreat', '/full/sinkThreat'] // 不重定向白名单
// 全局钩子
router.beforeEach((to, from, next) => {
NProgress.start() // 加载进度条
diff --git a/favicon.ico b/favicon.ico
index 586e43b..ee64a52 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ
diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue
index ee7f2a4..e6c3b12 100644
--- a/src/components/Map/MarsMap.vue
+++ b/src/components/Map/MarsMap.vue
@@ -47,7 +47,11 @@
default: ''
}
},
-
+ data() {
+ return {
+ lastEntity: null
+ }
+ },
mounted() {
const { mars3d } = this
if (this.appendToBody) {
@@ -194,6 +198,7 @@
})
this.map.addLayer(geoJsonLayer1)
},
+ // 添加省地块
addProvincePolygon() {
const { mars3d, Cesium } = this
var graphicLayer = new mars3d.layer.DivLayer()
@@ -206,7 +211,6 @@
const coordinates = (features[i].geometry.coordinates[0][0]).map(item => {
return [item[0], item[1], 0]
})
- console.log(features[i].geometry.coordinates)
const graphic = new mars3d.graphic.PolygonEntity({
positions: coordinates,
style: {
@@ -246,8 +250,48 @@
})
graphicLayer.addGraphic(graphic)
}
+ // graphicLayer.on(mars3d.EventType.mouseOver, event => {
+ // console.log('鼠标移入图层', event)
+ // console.log(event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.highlightedEntity(entity)
+ // }
+ // })
+ // graphicLayer.on(mars3d.EventType.mouseOut, event => {
+ // console.log('鼠标移出图层', event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.clearLastHighlightedEntity()
+ // }
+ // })
}
})
+ },
+ // 高亮
+ highlightedEntity(entity) {
+ if (!entity || !entity.polygon) {
+ return
+ }
+ const color = entity.polygon.material.color
+ const outline = entity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#1ff5ff')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = entity
+ },
+ // 清除高亮
+ clearLastHighlightedEntity() {
+ const { lastEntity } = this
+ if (lastEntity == null) {
+ return
+ }
+ var color = lastEntity.polygon.material.color
+ const outline = lastEntity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#3a77da')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = null
}
}
}
diff --git a/src/permission.js b/src/permission.js
index 0d677e4..eb6c110 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -8,7 +8,7 @@
NProgress.configure({ showSpinner: false })// NProgress configuration
-const whiteList = ['/login', 'config/baseconfig', '/full/mapLayer'] // 不重定向白名单
+const whiteList = ['/login', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/waterThreat', '/full/sinkThreat'] // 不重定向白名单
// 全局钩子
router.beforeEach((to, from, next) => {
NProgress.start() // 加载进度条
diff --git a/src/router/index.js b/src/router/index.js
index 3a2a60e..2378caa 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -54,22 +54,34 @@
},
{
path: '/full/highConsequence',
- name: 'MapLayer',
+ name: 'HighConsequence',
component: () => import('@/views/maps/highConsequenceArea'),
meta: { title: '高后果区', icon: '' }
},
{
- path: '/full/mapLayer',
- name: 'MapLayer',
- component: () => import('@/views/maps/mapOverview'),
- meta: { title: '测试大屏', icon: '' }
+ path: '/full/storageTopic',
+ name: 'StorageTopic',
+ component: () => import('@/views/maps/storageTopic'),
+ meta: { title: '储备专题', icon: '' }
},
{
path: '/full/constructionThreat',
- name: 'MapLayer',
+ name: 'ConstructionThreat',
component: () => import('@/views/maps/constructionThreat'),
meta: { title: '第三方施工', icon: '' }
},
+ {
+ path: '/full/waterThreat',
+ name: 'WaterThreat',
+ component: () => import('@/views/maps/waterThreat'),
+ meta: { title: '水保隐患', icon: '' }
+ },
+ {
+ path: '/full/sinkThreat',
+ name: 'SinkThreat',
+ component: () => import('@/views/maps/sinkThreat'),
+ meta: { title: '塌陷专题', icon: '' }
+ },
// 九宫格
{ path: '/dashboard', component: () => import('@/views/dashboard/index'), hidden: true }
]
diff --git a/favicon.ico b/favicon.ico
index 586e43b..ee64a52 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ
diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue
index ee7f2a4..e6c3b12 100644
--- a/src/components/Map/MarsMap.vue
+++ b/src/components/Map/MarsMap.vue
@@ -47,7 +47,11 @@
default: ''
}
},
-
+ data() {
+ return {
+ lastEntity: null
+ }
+ },
mounted() {
const { mars3d } = this
if (this.appendToBody) {
@@ -194,6 +198,7 @@
})
this.map.addLayer(geoJsonLayer1)
},
+ // 添加省地块
addProvincePolygon() {
const { mars3d, Cesium } = this
var graphicLayer = new mars3d.layer.DivLayer()
@@ -206,7 +211,6 @@
const coordinates = (features[i].geometry.coordinates[0][0]).map(item => {
return [item[0], item[1], 0]
})
- console.log(features[i].geometry.coordinates)
const graphic = new mars3d.graphic.PolygonEntity({
positions: coordinates,
style: {
@@ -246,8 +250,48 @@
})
graphicLayer.addGraphic(graphic)
}
+ // graphicLayer.on(mars3d.EventType.mouseOver, event => {
+ // console.log('鼠标移入图层', event)
+ // console.log(event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.highlightedEntity(entity)
+ // }
+ // })
+ // graphicLayer.on(mars3d.EventType.mouseOut, event => {
+ // console.log('鼠标移出图层', event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.clearLastHighlightedEntity()
+ // }
+ // })
}
})
+ },
+ // 高亮
+ highlightedEntity(entity) {
+ if (!entity || !entity.polygon) {
+ return
+ }
+ const color = entity.polygon.material.color
+ const outline = entity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#1ff5ff')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = entity
+ },
+ // 清除高亮
+ clearLastHighlightedEntity() {
+ const { lastEntity } = this
+ if (lastEntity == null) {
+ return
+ }
+ var color = lastEntity.polygon.material.color
+ const outline = lastEntity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#3a77da')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = null
}
}
}
diff --git a/src/permission.js b/src/permission.js
index 0d677e4..eb6c110 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -8,7 +8,7 @@
NProgress.configure({ showSpinner: false })// NProgress configuration
-const whiteList = ['/login', 'config/baseconfig', '/full/mapLayer'] // 不重定向白名单
+const whiteList = ['/login', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/waterThreat', '/full/sinkThreat'] // 不重定向白名单
// 全局钩子
router.beforeEach((to, from, next) => {
NProgress.start() // 加载进度条
diff --git a/src/router/index.js b/src/router/index.js
index 3a2a60e..2378caa 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -54,22 +54,34 @@
},
{
path: '/full/highConsequence',
- name: 'MapLayer',
+ name: 'HighConsequence',
component: () => import('@/views/maps/highConsequenceArea'),
meta: { title: '高后果区', icon: '' }
},
{
- path: '/full/mapLayer',
- name: 'MapLayer',
- component: () => import('@/views/maps/mapOverview'),
- meta: { title: '测试大屏', icon: '' }
+ path: '/full/storageTopic',
+ name: 'StorageTopic',
+ component: () => import('@/views/maps/storageTopic'),
+ meta: { title: '储备专题', icon: '' }
},
{
path: '/full/constructionThreat',
- name: 'MapLayer',
+ name: 'ConstructionThreat',
component: () => import('@/views/maps/constructionThreat'),
meta: { title: '第三方施工', icon: '' }
},
+ {
+ path: '/full/waterThreat',
+ name: 'WaterThreat',
+ component: () => import('@/views/maps/waterThreat'),
+ meta: { title: '水保隐患', icon: '' }
+ },
+ {
+ path: '/full/sinkThreat',
+ name: 'SinkThreat',
+ component: () => import('@/views/maps/sinkThreat'),
+ meta: { title: '塌陷专题', icon: '' }
+ },
// 九宫格
{ path: '/dashboard', component: () => import('@/views/dashboard/index'), hidden: true }
]
diff --git a/src/router/modules/marsMap.js b/src/router/modules/marsMap.js
index f9672fd..02a883d 100644
--- a/src/router/modules/marsMap.js
+++ b/src/router/modules/marsMap.js
@@ -89,7 +89,7 @@
}, {
path: '/sinkTopic',
name: 'SinkTopic',
- component: () => import('@/views/maps/mapOverview'),
+ component: () => import('@/views/maps/sinkThreat'),
meta: { title: '塌陷专题', icon: '' }
}, {
path: '/waterThreatTopic',
diff --git a/favicon.ico b/favicon.ico
index 586e43b..ee64a52 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ
diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue
index ee7f2a4..e6c3b12 100644
--- a/src/components/Map/MarsMap.vue
+++ b/src/components/Map/MarsMap.vue
@@ -47,7 +47,11 @@
default: ''
}
},
-
+ data() {
+ return {
+ lastEntity: null
+ }
+ },
mounted() {
const { mars3d } = this
if (this.appendToBody) {
@@ -194,6 +198,7 @@
})
this.map.addLayer(geoJsonLayer1)
},
+ // 添加省地块
addProvincePolygon() {
const { mars3d, Cesium } = this
var graphicLayer = new mars3d.layer.DivLayer()
@@ -206,7 +211,6 @@
const coordinates = (features[i].geometry.coordinates[0][0]).map(item => {
return [item[0], item[1], 0]
})
- console.log(features[i].geometry.coordinates)
const graphic = new mars3d.graphic.PolygonEntity({
positions: coordinates,
style: {
@@ -246,8 +250,48 @@
})
graphicLayer.addGraphic(graphic)
}
+ // graphicLayer.on(mars3d.EventType.mouseOver, event => {
+ // console.log('鼠标移入图层', event)
+ // console.log(event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.highlightedEntity(entity)
+ // }
+ // })
+ // graphicLayer.on(mars3d.EventType.mouseOut, event => {
+ // console.log('鼠标移出图层', event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.clearLastHighlightedEntity()
+ // }
+ // })
}
})
+ },
+ // 高亮
+ highlightedEntity(entity) {
+ if (!entity || !entity.polygon) {
+ return
+ }
+ const color = entity.polygon.material.color
+ const outline = entity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#1ff5ff')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = entity
+ },
+ // 清除高亮
+ clearLastHighlightedEntity() {
+ const { lastEntity } = this
+ if (lastEntity == null) {
+ return
+ }
+ var color = lastEntity.polygon.material.color
+ const outline = lastEntity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#3a77da')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = null
}
}
}
diff --git a/src/permission.js b/src/permission.js
index 0d677e4..eb6c110 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -8,7 +8,7 @@
NProgress.configure({ showSpinner: false })// NProgress configuration
-const whiteList = ['/login', 'config/baseconfig', '/full/mapLayer'] // 不重定向白名单
+const whiteList = ['/login', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/waterThreat', '/full/sinkThreat'] // 不重定向白名单
// 全局钩子
router.beforeEach((to, from, next) => {
NProgress.start() // 加载进度条
diff --git a/src/router/index.js b/src/router/index.js
index 3a2a60e..2378caa 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -54,22 +54,34 @@
},
{
path: '/full/highConsequence',
- name: 'MapLayer',
+ name: 'HighConsequence',
component: () => import('@/views/maps/highConsequenceArea'),
meta: { title: '高后果区', icon: '' }
},
{
- path: '/full/mapLayer',
- name: 'MapLayer',
- component: () => import('@/views/maps/mapOverview'),
- meta: { title: '测试大屏', icon: '' }
+ path: '/full/storageTopic',
+ name: 'StorageTopic',
+ component: () => import('@/views/maps/storageTopic'),
+ meta: { title: '储备专题', icon: '' }
},
{
path: '/full/constructionThreat',
- name: 'MapLayer',
+ name: 'ConstructionThreat',
component: () => import('@/views/maps/constructionThreat'),
meta: { title: '第三方施工', icon: '' }
},
+ {
+ path: '/full/waterThreat',
+ name: 'WaterThreat',
+ component: () => import('@/views/maps/waterThreat'),
+ meta: { title: '水保隐患', icon: '' }
+ },
+ {
+ path: '/full/sinkThreat',
+ name: 'SinkThreat',
+ component: () => import('@/views/maps/sinkThreat'),
+ meta: { title: '塌陷专题', icon: '' }
+ },
// 九宫格
{ path: '/dashboard', component: () => import('@/views/dashboard/index'), hidden: true }
]
diff --git a/src/router/modules/marsMap.js b/src/router/modules/marsMap.js
index f9672fd..02a883d 100644
--- a/src/router/modules/marsMap.js
+++ b/src/router/modules/marsMap.js
@@ -89,7 +89,7 @@
}, {
path: '/sinkTopic',
name: 'SinkTopic',
- component: () => import('@/views/maps/mapOverview'),
+ component: () => import('@/views/maps/sinkThreat'),
meta: { title: '塌陷专题', icon: '' }
}, {
path: '/waterThreatTopic',
diff --git a/src/views/maps/constructionThreat.vue b/src/views/maps/constructionThreat.vue
index 8778698..afc00a5 100644
--- a/src/views/maps/constructionThreat.vue
+++ b/src/views/maps/constructionThreat.vue
@@ -366,7 +366,7 @@
+
+
diff --git a/favicon.ico b/favicon.ico
index 586e43b..ee64a52 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ
diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue
index ee7f2a4..e6c3b12 100644
--- a/src/components/Map/MarsMap.vue
+++ b/src/components/Map/MarsMap.vue
@@ -47,7 +47,11 @@
default: ''
}
},
-
+ data() {
+ return {
+ lastEntity: null
+ }
+ },
mounted() {
const { mars3d } = this
if (this.appendToBody) {
@@ -194,6 +198,7 @@
})
this.map.addLayer(geoJsonLayer1)
},
+ // 添加省地块
addProvincePolygon() {
const { mars3d, Cesium } = this
var graphicLayer = new mars3d.layer.DivLayer()
@@ -206,7 +211,6 @@
const coordinates = (features[i].geometry.coordinates[0][0]).map(item => {
return [item[0], item[1], 0]
})
- console.log(features[i].geometry.coordinates)
const graphic = new mars3d.graphic.PolygonEntity({
positions: coordinates,
style: {
@@ -246,8 +250,48 @@
})
graphicLayer.addGraphic(graphic)
}
+ // graphicLayer.on(mars3d.EventType.mouseOver, event => {
+ // console.log('鼠标移入图层', event)
+ // console.log(event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.highlightedEntity(entity)
+ // }
+ // })
+ // graphicLayer.on(mars3d.EventType.mouseOut, event => {
+ // console.log('鼠标移出图层', event)
+ // var entity = event.czmObject
+ // if (entity && entity.polygon) {
+ // this.clearLastHighlightedEntity()
+ // }
+ // })
}
})
+ },
+ // 高亮
+ highlightedEntity(entity) {
+ if (!entity || !entity.polygon) {
+ return
+ }
+ const color = entity.polygon.material.color
+ const outline = entity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#1ff5ff')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = entity
+ },
+ // 清除高亮
+ clearLastHighlightedEntity() {
+ const { lastEntity } = this
+ if (lastEntity == null) {
+ return
+ }
+ var color = lastEntity.polygon.material.color
+ const outline = lastEntity.polygon.outlineColor
+ const nclr = this.mars3d.Cesium.Color.fromCssColorString('#3a77da')
+ color.setValue(nclr)
+ outline.setValue(nclr)
+ this.lastEntity = null
}
}
}
diff --git a/src/permission.js b/src/permission.js
index 0d677e4..eb6c110 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -8,7 +8,7 @@
NProgress.configure({ showSpinner: false })// NProgress configuration
-const whiteList = ['/login', 'config/baseconfig', '/full/mapLayer'] // 不重定向白名单
+const whiteList = ['/login', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/waterThreat', '/full/sinkThreat'] // 不重定向白名单
// 全局钩子
router.beforeEach((to, from, next) => {
NProgress.start() // 加载进度条
diff --git a/src/router/index.js b/src/router/index.js
index 3a2a60e..2378caa 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -54,22 +54,34 @@
},
{
path: '/full/highConsequence',
- name: 'MapLayer',
+ name: 'HighConsequence',
component: () => import('@/views/maps/highConsequenceArea'),
meta: { title: '高后果区', icon: '' }
},
{
- path: '/full/mapLayer',
- name: 'MapLayer',
- component: () => import('@/views/maps/mapOverview'),
- meta: { title: '测试大屏', icon: '' }
+ path: '/full/storageTopic',
+ name: 'StorageTopic',
+ component: () => import('@/views/maps/storageTopic'),
+ meta: { title: '储备专题', icon: '' }
},
{
path: '/full/constructionThreat',
- name: 'MapLayer',
+ name: 'ConstructionThreat',
component: () => import('@/views/maps/constructionThreat'),
meta: { title: '第三方施工', icon: '' }
},
+ {
+ path: '/full/waterThreat',
+ name: 'WaterThreat',
+ component: () => import('@/views/maps/waterThreat'),
+ meta: { title: '水保隐患', icon: '' }
+ },
+ {
+ path: '/full/sinkThreat',
+ name: 'SinkThreat',
+ component: () => import('@/views/maps/sinkThreat'),
+ meta: { title: '塌陷专题', icon: '' }
+ },
// 九宫格
{ path: '/dashboard', component: () => import('@/views/dashboard/index'), hidden: true }
]
diff --git a/src/router/modules/marsMap.js b/src/router/modules/marsMap.js
index f9672fd..02a883d 100644
--- a/src/router/modules/marsMap.js
+++ b/src/router/modules/marsMap.js
@@ -89,7 +89,7 @@
}, {
path: '/sinkTopic',
name: 'SinkTopic',
- component: () => import('@/views/maps/mapOverview'),
+ component: () => import('@/views/maps/sinkThreat'),
meta: { title: '塌陷专题', icon: '' }
}, {
path: '/waterThreatTopic',
diff --git a/src/views/maps/constructionThreat.vue b/src/views/maps/constructionThreat.vue
index 8778698..afc00a5 100644
--- a/src/views/maps/constructionThreat.vue
+++ b/src/views/maps/constructionThreat.vue
@@ -366,7 +366,7 @@
+
+
diff --git a/src/views/maps/storageTopic.vue b/src/views/maps/storageTopic.vue
index fc01f51..8b6cfc0 100644
--- a/src/views/maps/storageTopic.vue
+++ b/src/views/maps/storageTopic.vue
@@ -10,7 +10,7 @@