代码调整

This commit is contained in:
fan 2022-10-13 10:11:54 +08:00
parent 704e598e5f
commit bd8d61da61
5 changed files with 5 additions and 5 deletions

View File

@ -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',

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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();
}