代码调整
This commit is contained in:
parent
360973274c
commit
6fadd63dfd
@ -229,13 +229,13 @@ export function publisMapCityList(data) {
|
||||
});
|
||||
}
|
||||
|
||||
/** 新版地图根据仿真mapId获取仿真地图数据 */
|
||||
export function getNewMapDataByMapId(mapId) {
|
||||
return request({
|
||||
url: `/api/map/${mapId}/mapData`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
// /** 新版地图根据仿真mapId获取仿真地图数据 */
|
||||
// export function getNewMapDataByMapId(mapId) {
|
||||
// return request({
|
||||
// url: `/api/map/${mapId}/mapData`,
|
||||
// method: 'get'
|
||||
// });
|
||||
// }
|
||||
/** 发布地图根据id生成子系统及权限 */
|
||||
export function generateAncillaryData(mapId) {
|
||||
return request({
|
||||
|
@ -1,5 +1,6 @@
|
||||
import store from '@/store/index_APP_TARGET';
|
||||
import { getPublishMapVersionById, getPublishMapDetailById, getNewMapDataByMapId} from '@/api/jmap/map';
|
||||
import { getPublishMapVersionById, getPublishMapDetailById} from '@/api/jmap/map';
|
||||
// getNewMapDataByMapId
|
||||
// import { getNewMapDataByGroup } from '@/api/simulation';
|
||||
|
||||
// 获取地图版本数据,和store里面的map版本做比较,如果不同
|
||||
@ -48,7 +49,7 @@ export function loadMapDataById(mapId, type = 'mapPreview') {
|
||||
|
||||
export function loadNewMapDataByMapId(mapId) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getNewMapDataByMapId(mapId).then(resp => {
|
||||
getPublishMapDetailById(mapId).then(resp => {
|
||||
covertData(resp.data, 'mapId', resolve);
|
||||
}).catch(error => {
|
||||
reject(error);
|
||||
|
Loading…
Reference in New Issue
Block a user