diff --git a/src/api/jmap/map.js b/src/api/jmap/map.js index f3026cbf5..28ab6b000 100644 --- a/src/api/jmap/map.js +++ b/src/api/jmap/map.js @@ -264,3 +264,10 @@ export function getSectionListByStationCode(id, stationCode) { method: 'get' }); } +/** 查询地图下所有的区段 */ +export function getSectionListByMapId(id) { + return request({ + url: `/api/map/${id}/sections`, + method: 'get' + }); +} diff --git a/src/api/simulation.js b/src/api/simulation.js index 9b81181df..a02097d8a 100644 --- a/src/api/simulation.js +++ b/src/api/simulation.js @@ -221,9 +221,9 @@ export function executeScriptNew(group) { } /** 处理ibp盘事件 */ -export function handlerIbpEvent(group, button, stationCode) { +export function handlerIbpEvent(group, button, stationCode, buttonCode) { return request({ - url: `/simulation/${group}/ibp/${button}?stationCode=${stationCode}`, + url: `/simulation/${group}/ibp/${button}?stationCode=${stationCode}&buttonCode=${buttonCode}`, method: 'put' }); } diff --git a/src/scripts/ConstDic.js b/src/scripts/ConstDic.js index d30a5ab57..de77fb762 100644 --- a/src/scripts/ConstDic.js +++ b/src/scripts/ConstDic.js @@ -119,7 +119,8 @@ export const IbpOperation = { XXKM: {operate: '08', event: 'XXKM', name: '下行屏蔽门开门'}, SXKM: {operate: '10', event: 'SXKM', name: '上行屏蔽门开门'}, XXYS: {operate: '09', event: 'XXYS', name: '下行钥匙'}, - SXYS: {operate: '11', event: 'SXYS', name: '上行钥匙'} + SXYS: {operate: '11', event: 'SXYS', name: '上行钥匙'}, + PRERESET: {operate: '12', event: 'PRERESET', name: '计轴复位'} }; /** diff --git a/src/views/ibp/ibpDraw/ibpOperate/ibpButton.vue b/src/views/ibp/ibpDraw/ibpOperate/ibpButton.vue index c3c993d63..3e0c93d05 100644 --- a/src/views/ibp/ibpDraw/ibpOperate/ibpButton.vue +++ b/src/views/ibp/ibpDraw/ibpOperate/ibpButton.vue @@ -34,6 +34,16 @@ /> + + + + + {{ buttonText }} {{ $t('global.delete') }} @@ -44,6 +54,7 @@