代码调整
This commit is contained in:
parent
704e598e5f
commit
bd8d61da61
@ -207,7 +207,7 @@ export const UrlConfig = {
|
||||
},
|
||||
newDesignuser: {
|
||||
prefix: '/design/usermap/home',
|
||||
mapDraw: '/design/usermap/map/draw'
|
||||
mapDraw: '/lineDesign/usermap/map/draw'
|
||||
},
|
||||
publish: {
|
||||
runPlanEveryDay: '/publish/runPlan/everyDay',
|
||||
|
@ -1226,7 +1226,7 @@ const map = {
|
||||
}
|
||||
});
|
||||
const list = Object.values(dict);
|
||||
if (window.location.href.includes('/design/usermap/map/draw')) {
|
||||
if (window.location.href.includes('/lineDesign/usermap/map/draw')) {
|
||||
handleOperation(state, list);
|
||||
}
|
||||
commit('mapRender', list);
|
||||
|
@ -190,7 +190,7 @@ export default {
|
||||
this.$jlmap.on('dataZoom', this.onDataZoom, this);
|
||||
this.$jlmap.on('selected', this.onSelected, this);
|
||||
this.$jlmap.on('contextmenu', this.onContextMenu, this);
|
||||
if (this.$route.path.startsWith('/design/usermap/map/draw')) {
|
||||
if (this.$route.path.startsWith('/lineDesign/usermap/map/draw')) {
|
||||
this.$jlmap.on('keyboard', this.onKeyboard, this);
|
||||
} else {
|
||||
this.$jlmap.on('keyboard', this.onSimulationKeyboard, this);
|
||||
|
@ -273,7 +273,7 @@ export default {
|
||||
this.$jlmap.on('dataZoom', this.onDataZoom, this);
|
||||
this.$jlmap.on('selected', this.onSelected, this);
|
||||
this.$jlmap.on('contextmenu', this.onContextMenu, this);
|
||||
if (this.$route.path.startsWith('/design/usermap/map/draw')) {
|
||||
if (this.$route.path.startsWith('/lineDesign/usermap/map/draw')) {
|
||||
this.$jlmap.on('keyboard', this.onKeyboard, this);
|
||||
} else {
|
||||
this.$jlmap.on('keyboard', this.onSimulationKeyboard, this);
|
||||
|
@ -72,7 +72,7 @@ export default {
|
||||
this.cityMap.set(item.code, item.name);
|
||||
});
|
||||
if (this.IsProject) {
|
||||
res = await listPublishMap({project: this.project});
|
||||
res = await listPublishMap({projectCode: this.project});
|
||||
} else {
|
||||
res = await listPublishMap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user