|
@@ -62,24 +62,14 @@
|
|
putSmUserID_layer: null,
|
|
putSmUserID_layer: null,
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- superMapInfo(type, obj,NB) {
|
|
|
|
|
|
+ superMapInfo(type, obj,NB, state) {
|
|
getConfigKey('superMap.iServer').then(response => {
|
|
getConfigKey('superMap.iServer').then(response => {
|
|
this.superMapRootUrl = response.msg;
|
|
this.superMapRootUrl = response.msg;
|
|
})
|
|
})
|
|
- let state = 6;
|
|
|
|
- if (this.$route.path.indexOf("/water")>-1){
|
|
|
|
- state=4;
|
|
|
|
|
|
+ if (state==undefined){
|
|
|
|
+ state = 6;
|
|
}
|
|
}
|
|
- if (this.$route.path.indexOf("/traffic")>-1){
|
|
|
|
- state=7;
|
|
|
|
- }
|
|
|
|
- if (this.$route.path.indexOf("/forest")>-1){
|
|
|
|
- state=2;
|
|
|
|
- }
|
|
|
|
- if (this.$route.path.indexOf("/resource")>-1){
|
|
|
|
- state=8;
|
|
|
|
- }
|
|
|
|
- queryMap(state).then(req => {
|
|
|
|
|
|
+ queryMap(state,this.$store.state.user.dept.deptId).then(req => {
|
|
req = req.sort(function(a, b) {
|
|
req = req.sort(function(a, b) {
|
|
return a.sort - b.sort
|
|
return a.sort - b.sort
|
|
})
|
|
})
|