调整接口

This commit is contained in:
fan 2019-11-04 13:29:51 +08:00
parent b87fa71979
commit 347e49f55c
3 changed files with 5 additions and 31 deletions

View File

@ -10,9 +10,9 @@ export function getPublishMapList(params) {
}
/** 根据皮肤获取发布地图列表*/
export function getPublishMapListBySkinCode(skinCode) {
export function getPublishMapListByLineCode(lineCode) {
return request({
url: `/api/map/${skinCode}/list`,
url: `/api/map/${lineCode}/list`,
method: 'get'
});
}

View File

@ -1,15 +1,5 @@
import request from '@/utils/request';
/**
* 获取地图速度等级列表
*/
export function getSpeedLevels(skinCode) {
return request({
url: `/api/runPlan/draft/${skinCode}/speed`,
method: 'get'
});
}
/**
* 新建地图速度等级列表
*/
@ -52,7 +42,7 @@ export function queryRunPlan(planId) {
});
}
// 根据skinCode查询发布运行图列表
// 根据mapId查询发布运行图列表
export function queryRunPlanList(mapId) {
return request({
url: `/api/runPlan/template/${mapId}/list`,
@ -108,14 +98,6 @@ export function importRunPlan(data) {
});
}
/** 获取运行图停车点列表*/
export function getRunPlanStopPointList(skinCode) {
return request({
url: `/api/runPlan/draft/stopPoint/${skinCode}`,
method: 'get'
});
}
/** 运行图*/
export function getRpListByMapId(mapId) {
return request({
@ -297,14 +279,6 @@ export function deleteRunPlanEveryDay(planId) {
});
}
/** 获取地图运行图的车次号*/
// export function getPublishMapTrainNos(skinCode) {
// return request({
// url: `/api/runPlan/daily/${skinCode}/trainNos`,
// method: 'get'
// });
// }
/** 分页查询加载计划*/
export function getRunPlanLoadList(params) {
return request({

View File

@ -20,7 +20,7 @@
</template>
<script>
import { getPublishMapListBySkinCode } from '@/api/jmap/map';
import { getPublishMapListByLineCode } from '@/api/jmap/map';
export default {
data() {
@ -50,7 +50,7 @@ export default {
this.formMdoel.planId = row.id;
this.formMdoel.mapId = '';
this.show = true;
getPublishMapListBySkinCode(row.skinCode).then(resp => {
getPublishMapListByLineCode(row.skinCode).then(resp => {
this.mapList = resp.data;
});
},