代码调整

This commit is contained in:
joylink_cuiweidong 2020-11-27 18:37:07 +08:00
parent 360973274c
commit 6fadd63dfd
2 changed files with 10 additions and 9 deletions

View File

@ -229,13 +229,13 @@ export function publisMapCityList(data) {
}); });
} }
/** 新版地图根据仿真mapId获取仿真地图数据 */ // /** 新版地图根据仿真mapId获取仿真地图数据 */
export function getNewMapDataByMapId(mapId) { // export function getNewMapDataByMapId(mapId) {
return request({ // return request({
url: `/api/map/${mapId}/mapData`, // url: `/api/map/${mapId}/mapData`,
method: 'get' // method: 'get'
}); // });
} // }
/** 发布地图根据id生成子系统及权限 */ /** 发布地图根据id生成子系统及权限 */
export function generateAncillaryData(mapId) { export function generateAncillaryData(mapId) {
return request({ return request({

View File

@ -1,5 +1,6 @@
import store from '@/store/index_APP_TARGET'; 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'; // import { getNewMapDataByGroup } from '@/api/simulation';
// 获取地图版本数据和store里面的map版本做比较如果不同 // 获取地图版本数据和store里面的map版本做比较如果不同
@ -48,7 +49,7 @@ export function loadMapDataById(mapId, type = 'mapPreview') {
export function loadNewMapDataByMapId(mapId) { export function loadNewMapDataByMapId(mapId) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getNewMapDataByMapId(mapId).then(resp => { getPublishMapDetailById(mapId).then(resp => {
covertData(resp.data, 'mapId', resolve); covertData(resp.data, 'mapId', resolve);
}).catch(error => { }).catch(error => {
reject(error); reject(error);