Merge remote-tracking branch 'origin/dev' into test
This commit is contained in:
commit
8dc726bbe1
@ -108,5 +108,12 @@ export default {
|
|||||||
getRealDeviceFailed: 'Failed to get real device failed',
|
getRealDeviceFailed: 'Failed to get real device failed',
|
||||||
mapDataError: 'Map data error',
|
mapDataError: 'Map data error',
|
||||||
runningChartDataError: 'Running chart data error',
|
runningChartDataError: 'Running chart data error',
|
||||||
runningChartIsNotLoaded: 'Running chart is not loaded'
|
runningChartIsNotLoaded: 'Running chart is not loaded',
|
||||||
|
runningDataError: 'Running data error',
|
||||||
|
systemError: 'System error',
|
||||||
|
simulationDoesNotExist: 'Simulation does not exist',
|
||||||
|
simulationOperationIsNotDefined: 'The simulation operation is not defined',
|
||||||
|
simulationOperationFailed: 'The simulation operation failed',
|
||||||
|
operationConflict: 'Operation conflict',
|
||||||
|
simulationOperationProcessingMethodNotFound: 'Simulation operation processing method not found'
|
||||||
};
|
};
|
||||||
|
@ -586,5 +586,6 @@ export default {
|
|||||||
logicalSectionStartOffset: 'Logical section start offset:',
|
logicalSectionStartOffset: 'Logical section start offset:',
|
||||||
logicalSectionEndOffset: 'Logical section start offset:',
|
logicalSectionEndOffset: 'Logical section start offset:',
|
||||||
associateSwitchSection: 'Associate switch section:',
|
associateSwitchSection: 'Associate switch section:',
|
||||||
failedToSetParkingPointOffset: 'failed to set parking point offset: the actual length of the section is less than the offset distance.'
|
failedToSetParkingPointOffset: 'failed to set parking point offset: the actual length of the section is less than the offset distance.',
|
||||||
|
correlationWindow: 'Correlation window'
|
||||||
};
|
};
|
||||||
|
@ -108,5 +108,12 @@ export default {
|
|||||||
getRealDeviceFailed: '获取真实设备失败!',
|
getRealDeviceFailed: '获取真实设备失败!',
|
||||||
mapDataError: '地图数据错误',
|
mapDataError: '地图数据错误',
|
||||||
runningChartDataError: '运行图数据错误',
|
runningChartDataError: '运行图数据错误',
|
||||||
runningChartIsNotLoaded: '运行图未加载'
|
runningChartIsNotLoaded: '运行图未加载',
|
||||||
|
runningDataError: '运行数据错误',
|
||||||
|
systemError: '系统错误',
|
||||||
|
simulationDoesNotExist: '仿真不存在',
|
||||||
|
simulationOperationIsNotDefined: '仿真操做未定义',
|
||||||
|
simulationOperationFailed: '仿真操做执行失败',
|
||||||
|
operationConflict: '操做冲突',
|
||||||
|
simulationOperationProcessingMethodNotFound: '仿真操做处理方法未找到'
|
||||||
};
|
};
|
||||||
|
@ -579,5 +579,6 @@ export default {
|
|||||||
logicalSectionStartOffset: '逻辑区段起点偏移:',
|
logicalSectionStartOffset: '逻辑区段起点偏移:',
|
||||||
logicalSectionEndOffset: '逻辑区段终点偏移:',
|
logicalSectionEndOffset: '逻辑区段终点偏移:',
|
||||||
associateSwitchSection: '关联道岔区段:',
|
associateSwitchSection: '关联道岔区段:',
|
||||||
failedToSetParkingPointOffset: '设置停车点偏移量失败:区段实际长度小于偏移距离。'
|
failedToSetParkingPointOffset: '设置停车点偏移量失败:区段实际长度小于偏移距离。',
|
||||||
|
correlationWindow: '关联车次窗'
|
||||||
};
|
};
|
||||||
|
@ -132,6 +132,9 @@ class SkinCode extends defaultStyle {
|
|||||||
endWidth: 1.5, // 尽头分隔符宽度
|
endWidth: 1.5, // 尽头分隔符宽度
|
||||||
endColor: '#7F7F7F', // 尽头分隔符颜色
|
endColor: '#7F7F7F', // 尽头分隔符颜色
|
||||||
color: '#7F7F7F' // 区段边界符颜色
|
color: '#7F7F7F' // 区段边界符颜色
|
||||||
|
},
|
||||||
|
block: {
|
||||||
|
special: false, // 区段特殊显示
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -352,6 +355,10 @@ class SkinCode extends defaultStyle {
|
|||||||
inversionColor: '#9C9D09', // 道岔反位颜色
|
inversionColor: '#9C9D09', // 道岔反位颜色
|
||||||
monolockColor: '#870E10' // 道岔单锁颜色
|
monolockColor: '#870E10' // 道岔单锁颜色
|
||||||
},
|
},
|
||||||
|
sectionAction: {
|
||||||
|
flag: false, // 道岔 关联区段显示
|
||||||
|
spareColor: '#5b5b5b', // 区段显示颜色
|
||||||
|
},
|
||||||
core: {
|
core: {
|
||||||
length: 6 // 道岔单边长度
|
length: 6 // 道岔单边长度
|
||||||
},
|
},
|
||||||
|
@ -132,6 +132,9 @@ class SkinCode extends defaultStyle {
|
|||||||
endWidth: 1.5, // 尽头分隔符宽度
|
endWidth: 1.5, // 尽头分隔符宽度
|
||||||
endColor: '#FFFFFF', // 尽头分隔符颜色
|
endColor: '#FFFFFF', // 尽头分隔符颜色
|
||||||
color: 'white' // 区段边界符颜色
|
color: 'white' // 区段边界符颜色
|
||||||
|
},
|
||||||
|
block: {
|
||||||
|
special: false, // 区段特殊显示
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -344,6 +347,10 @@ class SkinCode extends defaultStyle {
|
|||||||
inversionColor: 'lightgreen', // 道岔反位颜色
|
inversionColor: 'lightgreen', // 道岔反位颜色
|
||||||
monolockColor: '#FFFFFF' // 道岔单锁颜色
|
monolockColor: '#FFFFFF' // 道岔单锁颜色
|
||||||
},
|
},
|
||||||
|
sectionAction: {
|
||||||
|
flag: false, // 道岔 关联区段显示
|
||||||
|
spareColor: '#5b5b5b', // 区段显示颜色
|
||||||
|
},
|
||||||
core: {
|
core: {
|
||||||
length: 10 // 道岔单边长度
|
length: 10 // 道岔单边长度
|
||||||
},
|
},
|
||||||
|
@ -135,6 +135,9 @@ class SkinCode extends defaultStyle {
|
|||||||
},
|
},
|
||||||
shuttleBack: { // 折返进路 (存在此对象 显示折返箭头)
|
shuttleBack: { // 折返进路 (存在此对象 显示折返箭头)
|
||||||
distance: 5 // 限速线距离区段距离
|
distance: 5 // 限速线距离区段距离
|
||||||
|
},
|
||||||
|
block: {
|
||||||
|
special: false, // 区段特殊显示
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -349,6 +352,10 @@ class SkinCode extends defaultStyle {
|
|||||||
inversionColor: '#FFFF00', // 道岔反位颜色
|
inversionColor: '#FFFF00', // 道岔反位颜色
|
||||||
monolockColor: '#FFFFFF' // 道岔单锁颜色
|
monolockColor: '#FFFFFF' // 道岔单锁颜色
|
||||||
},
|
},
|
||||||
|
sectionAction: {
|
||||||
|
flag: false, // 道岔 关联区段显示
|
||||||
|
spareColor: '#5b5b5b', // 区段显示颜色
|
||||||
|
},
|
||||||
core: {
|
core: {
|
||||||
length: 6 // 道岔单边长度
|
length: 6 // 道岔单边长度
|
||||||
},
|
},
|
||||||
|
@ -125,6 +125,9 @@ class SkinCode extends defaultStyle {
|
|||||||
endWidth: 3.5, // 尽头分隔符宽度
|
endWidth: 3.5, // 尽头分隔符宽度
|
||||||
endColor: '#3F3F3F', // 尽头分隔符颜色
|
endColor: '#3F3F3F', // 尽头分隔符颜色
|
||||||
color: '#3149C3' // 区段边界符颜色
|
color: '#3149C3' // 区段边界符颜色
|
||||||
|
},
|
||||||
|
block: {
|
||||||
|
special: false, // 区段特殊显示
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -335,6 +338,10 @@ class SkinCode extends defaultStyle {
|
|||||||
inversionColor: '#9C9D09', // 道岔反位颜色
|
inversionColor: '#9C9D09', // 道岔反位颜色
|
||||||
monolockColor: '#870E10' // 道岔单锁颜色
|
monolockColor: '#870E10' // 道岔单锁颜色
|
||||||
},
|
},
|
||||||
|
sectionAction: {
|
||||||
|
flag: false, // 道岔 关联区段显示
|
||||||
|
spareColor: '#5b5b5b', // 区段显示颜色
|
||||||
|
},
|
||||||
core: {
|
core: {
|
||||||
length: 6 // 道岔单边长度
|
length: 6 // 道岔单边长度
|
||||||
},
|
},
|
||||||
|
@ -90,17 +90,17 @@ class SkinCode extends defaultStyle {
|
|||||||
width: 5, // 区段宽度
|
width: 5, // 区段宽度
|
||||||
beyondWidth: 1, // 区段宽超出宽度
|
beyondWidth: 1, // 区段宽超出宽度
|
||||||
invadeColor: '#EF0C08', // 区段侵入颜色
|
invadeColor: '#EF0C08', // 区段侵入颜色
|
||||||
spareColor: '#3F3F3F', // 区段空闲颜色
|
spareColor: '#ffff00', // 区段空闲颜色 (黄色)
|
||||||
communicationOccupiedColor: '#FF329A', // 区段通信车占用颜色
|
communicationOccupiedColor: '#ff0000', // 区段通信车占用颜色 红色
|
||||||
unCommunicationOccupiedColor: '#FE0000', // 区段非通讯车占用颜色
|
unCommunicationOccupiedColor: '#ff0000', // 区段非通讯车占用颜色 红色
|
||||||
routeLockColor: '#FFFFFF', // 区段路由锁定颜色
|
routeLockColor: '#00FF00', // 区段路由锁定颜色
|
||||||
faultLockColor: '#9B4A0A', // 区段故障锁定颜色
|
faultLockColor: '#9B4A0A', // 区段故障锁定颜色
|
||||||
undefinedColor: '#0071C1', // 区段未定义颜色
|
undefinedColor: '#0071C1', // 区段未定义颜色
|
||||||
protectionLockedColor: '#FEFF00', // 保护区段锁闭(未用)
|
protectionLockedColor: '#FEFF00', // 保护区段锁闭(未用)
|
||||||
blockColor: '#800080', // 区段封锁颜色
|
blockColor: '#000080', // 区段封锁颜色 深蓝色
|
||||||
atcExcisionColor: '#A0522D', // 区段atc切除颜色
|
atcExcisionColor: '#A0522D', // 区段atc切除颜色
|
||||||
atsExcisionColor: '#A0522D', // 区段ats切除颜色
|
atsExcisionColor: '#A0522D', // 区段ats切除颜色
|
||||||
timeReleaseColor: '#3F3F3F', // 区段延时释放颜色
|
timeReleaseColor: '#ffff00', // 区段延时释放颜色
|
||||||
protectiveLockColor: '#FFFF00', // 区段保护锁闭
|
protectiveLockColor: '#FFFF00', // 区段保护锁闭
|
||||||
protectiveTimeReleaseColor: '#0071C1', // 区段保护延时解锁
|
protectiveTimeReleaseColor: '#0071C1', // 区段保护延时解锁
|
||||||
logicalColor: '#FFFF00', // 逻辑区段颜色 (未用)
|
logicalColor: '#FFFF00', // 逻辑区段颜色 (未用)
|
||||||
@ -125,6 +125,9 @@ class SkinCode extends defaultStyle {
|
|||||||
endWidth: 3.5, // 尽头分隔符宽度
|
endWidth: 3.5, // 尽头分隔符宽度
|
||||||
endColor: '#3F3F3F', // 尽头分隔符颜色
|
endColor: '#3F3F3F', // 尽头分隔符颜色
|
||||||
color: '#3149C3' // 区段边界符颜色
|
color: '#3149C3' // 区段边界符颜色
|
||||||
|
},
|
||||||
|
block: {
|
||||||
|
special: true, // 区段特殊显示
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -333,13 +336,17 @@ class SkinCode extends defaultStyle {
|
|||||||
position: 0, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: 0, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
offset: { x: 0, y: 8 }, // 道岔名称与区段距离
|
offset: { x: 0, y: 8 }, // 道岔名称与区段距离
|
||||||
fontSize: 11, // 字体大小
|
fontSize: 11, // 字体大小
|
||||||
fontColor: '#C0C0C0', // 道岔名称颜色
|
fontColor: '#fff', // 道岔名称颜色
|
||||||
fontWeight: 'bold', // 字体粗细
|
fontWeight: 'bold', // 字体粗细
|
||||||
borderColor: '#FE0000', // 道岔边框颜色
|
borderColor: 'red', // 道岔边框颜色
|
||||||
lossColor: '#FFFFFF', // 道岔失去颜色
|
lossColor: '#FFFFFF', // 道岔失去颜色
|
||||||
locateColor: '#00FF00', // 道岔定位颜色
|
locateColor: '#fff', // 道岔定位颜色
|
||||||
inversionColor: '#9C9D09', // 道岔反位颜色
|
inversionColor: '#fff', // 道岔反位颜色
|
||||||
monolockColor: '#870E10' // 道岔单锁颜色
|
monolockColor: '#fff' // 道岔单锁颜色
|
||||||
|
},
|
||||||
|
sectionAction: {
|
||||||
|
flag: true, // 道岔 关联区段显示
|
||||||
|
spareColor: '#5b5b5b', // 区段显示颜色
|
||||||
},
|
},
|
||||||
core: {
|
core: {
|
||||||
splice: true, // 哈尔滨特殊显示
|
splice: true, // 哈尔滨特殊显示
|
||||||
@ -347,13 +354,18 @@ class SkinCode extends defaultStyle {
|
|||||||
},
|
},
|
||||||
block: { // 道岔封锁配置
|
block: { // 道岔封锁配置
|
||||||
blockName: 'default', // 默认道岔封锁类型
|
blockName: 'default', // 默认道岔封锁类型
|
||||||
nameBorderShow: true, // 道岔名称是否有包围框 显示
|
nameBorderShow: false, // 道岔名称是否有包围框 显示
|
||||||
contentRectShow: false // 道岔封锁显示
|
contentRectShow: false, // 道岔封锁显示
|
||||||
|
contentRectColor: '#fff', // 道岔封锁名称颜色
|
||||||
|
rhomboidShow: true, // 道岔单独显示
|
||||||
},
|
},
|
||||||
monolock: { // 道岔单锁配置
|
monolock: { // 道岔单锁配置
|
||||||
locationColor: '#ea282c', // 道岔单锁定位颜色 (红色)
|
locationColor: '#fff', // 道岔单锁定位颜色 (红色)
|
||||||
inversionColor: '#ea282c', // 道岔单锁反位颜色 (红色)
|
inversionColor: '#fff', // 道岔单锁反位颜色 (红色)
|
||||||
rectShow: false // 道岔单锁 矩形框是否显示
|
nameBorderShow: true, // 道岔名称是否有包围框 显示
|
||||||
|
rectShow: false, // 道岔单锁 矩形框是否显示
|
||||||
|
rectWidth: 18, // 矩形框 宽高
|
||||||
|
rectBorderColor: 'red' // 矩形边框颜色
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -469,7 +481,7 @@ class SkinCode extends defaultStyle {
|
|||||||
trainServerOffset: { x: 26, y: 1 }// 列车服务号偏移
|
trainServerOffset: { x: 26, y: 1 }// 列车服务号偏移
|
||||||
},
|
},
|
||||||
trainTarget: {
|
trainTarget: {
|
||||||
tripNumberPrefix: '0000', // 车次号前缀
|
tripNumberPrefix: '<', // 车次号前缀
|
||||||
defaultDirectionCode: 'D', // 默认车次号1
|
defaultDirectionCode: 'D', // 默认车次号1
|
||||||
defaultTripNumber: 'CCC', // 默认车次号2
|
defaultTripNumber: 'CCC', // 默认车次号2
|
||||||
trainTargetOffset: { x: 42, y: 1 }// 列车车次号偏移
|
trainTargetOffset: { x: 42, y: 1 }// 列车车次号偏移
|
||||||
@ -489,7 +501,7 @@ class SkinCode extends defaultStyle {
|
|||||||
trainHeadFillColor: '#EF0C08'// 列车车头矩形填充颜色
|
trainHeadFillColor: '#EF0C08'// 列车车头矩形填充颜色
|
||||||
},
|
},
|
||||||
common: {
|
common: {
|
||||||
trainHeight: 17, // 列车高度
|
trainHeight: 30, // 列车高度
|
||||||
trainHeadDistance: 2, // 列车和车头之间的间距
|
trainHeadDistance: 2, // 列车和车头之间的间距
|
||||||
trainWidth: 76, // 列车长度
|
trainWidth: 76, // 列车长度
|
||||||
trainTextFontSize: 15, // 列车字号
|
trainTextFontSize: 15, // 列车字号
|
||||||
@ -505,11 +517,11 @@ class SkinCode extends defaultStyle {
|
|||||||
},
|
},
|
||||||
trainStatusStyle: {
|
trainStatusStyle: {
|
||||||
destinationStatus: [
|
destinationStatus: [
|
||||||
{ status: '01', showColor: '#FFFFFF' },
|
{ status: '01', showColor: '#FFFF00' },
|
||||||
{ status: '02', showColor: '#00FF00' },
|
{ status: '02', showColor: '#00FF00' },
|
||||||
{ status: '03', showColor: '#3265FF' },
|
{ status: '03', showColor: '#3265FF' },
|
||||||
{ status: '04', showColor: '#9B4A09' },
|
{ status: '04', showColor: '#FF14E9' },
|
||||||
{ status: '05', showColor: '#EF0C08' },
|
{ status: '05', showColor: '#FF0000' },
|
||||||
{ status: '06', showColor: '#FFFFFF' },
|
{ status: '06', showColor: '#FFFFFF' },
|
||||||
{ status: '07', showColor: '#FFFF00' }
|
{ status: '07', showColor: '#FFFF00' }
|
||||||
], // 目的地状态 01准点 02早点 03严重早点 04晚点 05严重晚点 06头码车 07ATP切除
|
], // 目的地状态 01准点 02早点 03严重早点 04晚点 05严重晚点 06头码车 07ATP切除
|
||||||
|
@ -132,6 +132,9 @@ class SkinCode extends defaultStyle {
|
|||||||
endWidth: 1.5, // 尽头分隔符宽度
|
endWidth: 1.5, // 尽头分隔符宽度
|
||||||
endColor: '#FFFFFF', // 尽头分隔符颜色
|
endColor: '#FFFFFF', // 尽头分隔符颜色
|
||||||
color: 'white' // 区段边界符颜色
|
color: 'white' // 区段边界符颜色
|
||||||
|
},
|
||||||
|
block: {
|
||||||
|
special: false, // 区段特殊显示
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -345,6 +348,10 @@ class SkinCode extends defaultStyle {
|
|||||||
inversionColor: '#FFFF00', // 道岔反位颜色
|
inversionColor: '#FFFF00', // 道岔反位颜色
|
||||||
monolockColor: '#FFFFFF' // 道岔单锁颜色
|
monolockColor: '#FFFFFF' // 道岔单锁颜色
|
||||||
},
|
},
|
||||||
|
sectionAction: {
|
||||||
|
flag: false, // 道岔 关联区段显示
|
||||||
|
spareColor: '#5b5b5b', // 区段显示颜色
|
||||||
|
},
|
||||||
core: {
|
core: {
|
||||||
length: 10 // 道岔单边长度
|
length: 10 // 道岔单边长度
|
||||||
},
|
},
|
||||||
|
@ -28,7 +28,7 @@ class Status {
|
|||||||
}
|
}
|
||||||
handleSection(device) {
|
handleSection(device) {
|
||||||
this.statusObj = {
|
this.statusObj = {
|
||||||
blockade: device.blockade, // 是否封锁
|
blockade: device.blockade, // 轨道是否封锁
|
||||||
routeLock: device.routeLock, // 是否进路锁闭
|
routeLock: device.routeLock, // 是否进路锁闭
|
||||||
overlapLock: device.overlapLock, // 进路延续保护锁闭
|
overlapLock: device.overlapLock, // 进路延续保护锁闭
|
||||||
ctOccupied: device.ctOccupied, // 通信车占用
|
ctOccupied: device.ctOccupied, // 通信车占用
|
||||||
@ -98,6 +98,10 @@ class Status {
|
|||||||
this.statusObj = {
|
this.statusObj = {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
handleTrainWindow(device) {
|
||||||
|
this.statusObj = {
|
||||||
|
};
|
||||||
|
}
|
||||||
getStatus() {
|
getStatus() {
|
||||||
return this.statusObj;
|
return this.statusObj;
|
||||||
}
|
}
|
||||||
|
@ -240,8 +240,17 @@ class Jlmap {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
setUpdateMapDevice(list) {
|
||||||
|
store.dispatch('map/updateMapDevice', list);
|
||||||
|
(list || []).forEach(elem => {
|
||||||
|
const code = elem.code;
|
||||||
|
const type = elem._type;
|
||||||
|
const oDevice = this.mapDevice[code] || deviceFactory(type, elem);
|
||||||
|
this.hookHandle(oDevice, elem)
|
||||||
|
});
|
||||||
|
}
|
||||||
update(list) {
|
update(list) {
|
||||||
|
this.setUpdateMapDevice(list || []); // 增加一个 前数据 处理 为了在区段中 获取全部的 道岔信息
|
||||||
(list || []).forEach(elem => {
|
(list || []).forEach(elem => {
|
||||||
const code = elem.code;
|
const code = elem.code;
|
||||||
const type = elem._type;
|
const type = elem._type;
|
||||||
@ -258,9 +267,9 @@ class Jlmap {
|
|||||||
if (elem.dispose) {
|
if (elem.dispose) {
|
||||||
this.$painter.delete(oDevice);
|
this.$painter.delete(oDevice);
|
||||||
} else {
|
} else {
|
||||||
if (this.hookHandle(oDevice, elem)) {
|
// if (this.hookHandle(oDevice, elem)) {
|
||||||
this.$painter.update(oDevice);
|
this.$painter.update(oDevice);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,8 +26,7 @@ export default class ELines extends Group {
|
|||||||
shape[`y1`] = model.points[0].y;
|
shape[`y1`] = model.points[0].y;
|
||||||
shape[`x2`] = model.points[model.points.length - 1].x;
|
shape[`x2`] = model.points[model.points.length - 1].x;
|
||||||
shape[`y2`] = model.points[model.points.length - 1].y;
|
shape[`y2`] = model.points[model.points.length - 1].y;
|
||||||
|
this.section = new BezierCurve({
|
||||||
this.add(new BezierCurve({
|
|
||||||
isLine: true,
|
isLine: true,
|
||||||
zlevel: this.zlevel,
|
zlevel: this.zlevel,
|
||||||
progressive: model.progressive,
|
progressive: model.progressive,
|
||||||
@ -39,7 +38,8 @@ export default class ELines extends Group {
|
|||||||
stroke: model.style.Section.line.spareColor,
|
stroke: model.style.Section.line.spareColor,
|
||||||
fillOpacity: 0
|
fillOpacity: 0
|
||||||
}
|
}
|
||||||
}));
|
});
|
||||||
|
this.add(this.section);
|
||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < (model.points.length - 1); i++) {
|
for (let i = 0; i < (model.points.length - 1); i++) {
|
||||||
this.add(new Line({
|
this.add(new Line({
|
||||||
@ -71,6 +71,18 @@ export default class ELines extends Group {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hide() {
|
||||||
|
this.eachChild((child) => {
|
||||||
|
child.hide();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
show() {
|
||||||
|
this.eachChild((child) => {
|
||||||
|
// console.log(child);
|
||||||
|
child.show();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
animateStyle(loop, animates) {
|
animateStyle(loop, animates) {
|
||||||
if (animates && animates.length) {
|
if (animates && animates.length) {
|
||||||
this.eachChild((child) => {
|
this.eachChild((child) => {
|
||||||
|
187
src/jmapNew/shape/Section/EblockLines.js
Normal file
187
src/jmapNew/shape/Section/EblockLines.js
Normal file
@ -0,0 +1,187 @@
|
|||||||
|
import Group from 'zrender/src/container/Group';
|
||||||
|
import Line from 'zrender/src/graphic/shape/Line';
|
||||||
|
import BezierCurve from 'zrender/src/graphic/shape/BezierCurve';
|
||||||
|
import {
|
||||||
|
cubicSubdivide,
|
||||||
|
quadraticAt,
|
||||||
|
cubicAt,
|
||||||
|
quadraticDerivativeAt,
|
||||||
|
cubicDerivativeAt } from 'zrender/src/core/curve';
|
||||||
|
import * as vec2 from 'zrender/src/core/vector';
|
||||||
|
|
||||||
|
/** 创建区段线集合*/
|
||||||
|
export default class ELines extends Group {
|
||||||
|
constructor(model) {
|
||||||
|
super();
|
||||||
|
this.model = model;
|
||||||
|
this.zlevel = model.zlevel;
|
||||||
|
this.z = model.z;
|
||||||
|
this.create(model);
|
||||||
|
}
|
||||||
|
|
||||||
|
create(model) {
|
||||||
|
/** 创建区段*/
|
||||||
|
if (model && model.points.length > 1) {
|
||||||
|
if (model.isCurve) { // 曲线 用贝塞尔曲线绘图 封锁 必须4个点来绘图
|
||||||
|
const shape = {};
|
||||||
|
for (let i = 1; i < (model.points.length - 1); i++) {
|
||||||
|
shape[`cpx${i}`] = model.points[i].x;
|
||||||
|
shape[`cpy${i}`] = model.points[i].y;
|
||||||
|
}
|
||||||
|
|
||||||
|
shape[`x1`] = model.points[0].x;
|
||||||
|
shape[`y1`] = model.points[0].y;
|
||||||
|
shape[`x2`] = model.points[model.points.length - 1].x;
|
||||||
|
shape[`y2`] = model.points[model.points.length - 1].y;
|
||||||
|
this.section = new BezierCurve({
|
||||||
|
isLine: true,
|
||||||
|
zlevel: this.zlevel,
|
||||||
|
progressive: model.progressive,
|
||||||
|
z: this.z + 1,
|
||||||
|
culling: true,
|
||||||
|
shape: this.couvert(shape),
|
||||||
|
style: {
|
||||||
|
lineWidth: model.style.Section.line.width,
|
||||||
|
stroke: model.style.Section.line.blockColor,
|
||||||
|
fillOpacity: 0
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.add(this.section);
|
||||||
|
} else {
|
||||||
|
if (model.points.length == 2) {
|
||||||
|
const spaceX= (model.points[1].x - model.points[0].x) / 3;
|
||||||
|
const spaceY= (model.points[1].y - model.points[0].y) / 3;
|
||||||
|
this.sectionM = new Line({
|
||||||
|
isLine: true,
|
||||||
|
zlevel: this.zlevel,
|
||||||
|
progressive: model.progressive,
|
||||||
|
z: this.z,
|
||||||
|
shape: {
|
||||||
|
x1: model.points[0].x + spaceX,
|
||||||
|
y1: model.points[0].y + spaceY,
|
||||||
|
x2: model.points[0].x + spaceX + spaceX,
|
||||||
|
y2: model.points[0].y + spaceY + spaceY
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
lineWidth: model.style.Section.line.width,
|
||||||
|
stroke: model.style.Section.line.blockColor
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.add(this.sectionM);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setStyle(styles) {
|
||||||
|
this.eachChild((child) => {
|
||||||
|
if (child.setStyle && child.isLine) {
|
||||||
|
child.setStyle(styles);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
hide() {
|
||||||
|
this.eachChild((child) => {
|
||||||
|
child.hide();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
show() {
|
||||||
|
this.eachChild((child) => {
|
||||||
|
child.show();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
animateStyle(loop, animates) {
|
||||||
|
if (animates && animates.length) {
|
||||||
|
this.eachChild((child) => {
|
||||||
|
if (child.animateStyle && child.isLine) {
|
||||||
|
let an = child.animateStyle(loop);
|
||||||
|
animates.forEach(elem => {
|
||||||
|
an = an.when(elem.time, elem.styles);
|
||||||
|
});
|
||||||
|
an.start();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stopAnimation(flag) {
|
||||||
|
this.eachChild((child) => {
|
||||||
|
if (child.stopAnimation && child.isLine) {
|
||||||
|
child.stopAnimation(flag);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
setBorderVisible(isVisible) {
|
||||||
|
this.lineBorder && this.lineBorder.hide();
|
||||||
|
if (isVisible) {
|
||||||
|
this.lineBorder && this.lineBorder.show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 寻找相同的曲线点位
|
||||||
|
someVectorAt(shape, t, isTangent) {
|
||||||
|
var cpx2 = shape.cpx2;
|
||||||
|
var cpy2 = shape.cpy2;
|
||||||
|
if (cpx2 === null || cpy2 === null) {
|
||||||
|
return [
|
||||||
|
(isTangent ? cubicDerivativeAt : cubicAt)(shape.x1, shape.cpx1, shape.cpx2, shape.x2, t),
|
||||||
|
(isTangent ? cubicDerivativeAt : cubicAt)(shape.y1, shape.cpy1, shape.cpy2, shape.y2, t)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return [
|
||||||
|
(isTangent ? quadraticDerivativeAt : quadraticAt)(shape.x1, shape.cpx1, shape.x2, t),
|
||||||
|
(isTangent ? quadraticDerivativeAt : quadraticAt)(shape.y1, shape.cpy1, shape.y2, t)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 重新计算居中距离点
|
||||||
|
couvert(shape) {
|
||||||
|
let out = [];
|
||||||
|
var x1 = shape.x1;
|
||||||
|
var y1 = shape.y1;
|
||||||
|
var x2 = shape.x2;
|
||||||
|
var y2 = shape.y2;
|
||||||
|
var cpx1 = shape.cpx1;
|
||||||
|
var cpy1 = shape.cpy1;
|
||||||
|
var cpx2 = shape.cpx2;
|
||||||
|
var cpy2 = shape.cpy2;
|
||||||
|
|
||||||
|
cubicSubdivide(
|
||||||
|
x1, cpx1, cpx2, x2, 0.3, out
|
||||||
|
);
|
||||||
|
var n_x1 = out[3];
|
||||||
|
cubicSubdivide(
|
||||||
|
x1, cpx1, cpx2, x2, 0.7, out
|
||||||
|
);
|
||||||
|
var n_x2 = out[3];
|
||||||
|
|
||||||
|
cubicSubdivide(
|
||||||
|
y1, cpy1, cpy2, y2, 0.3, out
|
||||||
|
);
|
||||||
|
var n_y1 = out[3];
|
||||||
|
cubicSubdivide(
|
||||||
|
y1, cpy1, cpy2, y2, 0.7, out
|
||||||
|
);
|
||||||
|
var n_y2 = out[3];
|
||||||
|
|
||||||
|
var p = this.someVectorAt(shape, 0.5, true);
|
||||||
|
var v = vec2.normalize(p, p);
|
||||||
|
|
||||||
|
var x0 = Math.sqrt((Math.pow(cpx1-x1, 2)+Math.pow(x2-cpx2, 2))/2, 2);
|
||||||
|
var y0 = Math.sqrt((Math.pow(cpy1-y1, 2)+Math.pow(y2-cpy2, 2))/2, 2);
|
||||||
|
|
||||||
|
return {
|
||||||
|
x1: n_x1,
|
||||||
|
y1: n_y1,
|
||||||
|
x2: n_x2,
|
||||||
|
y2: n_y2,
|
||||||
|
cpx1: (cpx1+cpx2)/2 + v[1]*x0*0.128,
|
||||||
|
cpy1: (cpy1+cpy2)/2 + v[0]*y0*0.128
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
@ -3,6 +3,7 @@ import ETextName from '../element/ETextName'; // 名称文字 (共有)
|
|||||||
import ERelease from './ERelease'; // 线段 (共有)
|
import ERelease from './ERelease'; // 线段 (共有)
|
||||||
import ELimitLines from './ELimitLines'; // 区段限速 (私有)
|
import ELimitLines from './ELimitLines'; // 区段限速 (私有)
|
||||||
import ELines from './ELines'; // 创建多线条 曲线 (私有)
|
import ELines from './ELines'; // 创建多线条 曲线 (私有)
|
||||||
|
import EblockLines from './EblockLines'; // 区段封锁特有
|
||||||
import ESeparator from './ESeparator'; // 分隔符 (私有)
|
import ESeparator from './ESeparator'; // 分隔符 (私有)
|
||||||
import EMouse from './EMouse';
|
import EMouse from './EMouse';
|
||||||
import { EAxle } from './EAxle'; // 创建计轴 (私有)
|
import { EAxle } from './EAxle'; // 创建计轴 (私有)
|
||||||
@ -10,7 +11,7 @@ import { EBackArrow, EBackArrowTriangle } from './EBackArrow'; // 折返进路
|
|||||||
import ELimitName from './ELimitName'; // 成都三号线 限速名称
|
import ELimitName from './ELimitName'; // 成都三号线 限速名称
|
||||||
import JTriangle from '../../utils/JTriangle';
|
import JTriangle from '../../utils/JTriangle';
|
||||||
import router from '@/router';
|
import router from '@/router';
|
||||||
import {drawSectionStyle} from '../../config/defaultStyle';
|
import { drawSectionStyle } from '../../config/defaultStyle';
|
||||||
import store from '@/store';
|
import store from '@/store';
|
||||||
|
|
||||||
/** 区段*/
|
/** 区段*/
|
||||||
@ -38,7 +39,7 @@ export default class Section extends Group {
|
|||||||
if ((model.type === '01' || model.type === '03') && (
|
if ((model.type === '01' || model.type === '03') && (
|
||||||
model.logicSectionNum.length <= 0 ||
|
model.logicSectionNum.length <= 0 ||
|
||||||
model.logicSectionNum.length == 1 && model.logicSectionNum[0] == 0) ||
|
model.logicSectionNum.length == 1 && model.logicSectionNum[0] == 0) ||
|
||||||
model.type === '02' ) {
|
model.type === '02') {
|
||||||
this.createSection(); // 创建区段
|
this.createSection(); // 创建区段
|
||||||
this.creatRelease(); // 创建延时释放
|
this.creatRelease(); // 创建延时释放
|
||||||
this.createSeparator(); // 创建分隔符
|
this.createSeparator(); // 创建分隔符
|
||||||
@ -73,8 +74,18 @@ export default class Section extends Group {
|
|||||||
points: model.points,
|
points: model.points,
|
||||||
style: style
|
style: style
|
||||||
});
|
});
|
||||||
|
// 创建哈尔滨特殊区段(用作封锁显示)
|
||||||
|
this.sectionBlock = new EblockLines({
|
||||||
|
zlevel: this.zlevel,
|
||||||
|
z: this.z,
|
||||||
|
isSwitchSection: model.switchSection,
|
||||||
|
isCurve: model.curve,
|
||||||
|
points: model.points,
|
||||||
|
style: style
|
||||||
|
});
|
||||||
|
|
||||||
this.add(this.section);
|
this.add(this.section);
|
||||||
|
this.add(this.sectionBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 折返箭头
|
// 折返箭头
|
||||||
@ -304,7 +315,7 @@ export default class Section extends Group {
|
|||||||
this.add(this.name);
|
this.add(this.name);
|
||||||
}
|
}
|
||||||
} else if (model.type == '04') {
|
} else if (model.type == '04') {
|
||||||
if (router.currentRoute.path.startsWith('/design/usermap/map/draw') && router.currentRoute.path.endsWith('/draft') ) {
|
if (router.currentRoute.path.startsWith('/design/usermap/map/draw') && router.currentRoute.path.endsWith('/draft')) {
|
||||||
this.name = new ETextName({
|
this.name = new ETextName({
|
||||||
zlevel: this.zlevel,
|
zlevel: this.zlevel,
|
||||||
z: this.z + 2,
|
z: this.z + 2,
|
||||||
@ -563,6 +574,7 @@ export default class Section extends Group {
|
|||||||
recover() {
|
recover() {
|
||||||
if (this.section) {
|
if (this.section) {
|
||||||
this.section.stopAnimation(true);
|
this.section.stopAnimation(true);
|
||||||
|
this.sectionBlock && this.sectionBlock.hide(); // 因此特殊区段
|
||||||
this.section.setStyle({
|
this.section.setStyle({
|
||||||
fill: this.style.backgroundColor,
|
fill: this.style.backgroundColor,
|
||||||
stroke: this.style.Section.line.spareColor,
|
stroke: this.style.Section.line.spareColor,
|
||||||
@ -631,8 +643,10 @@ export default class Section extends Group {
|
|||||||
|
|
||||||
/** 封锁 06*/
|
/** 封锁 06*/
|
||||||
block() {
|
block() {
|
||||||
if (this.section) {
|
if (this.style.Section.block.special) {
|
||||||
this.section.setStyle({
|
this.sectionBlock && this.sectionBlock.show();
|
||||||
|
} else {
|
||||||
|
this.section && this.section.setStyle({
|
||||||
stroke: this.style.Section.line.blockColor,
|
stroke: this.style.Section.line.blockColor,
|
||||||
lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth
|
lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth
|
||||||
});
|
});
|
||||||
@ -760,34 +774,34 @@ export default class Section extends Group {
|
|||||||
/** 设置状态*/
|
/** 设置状态*/
|
||||||
setState(model) {
|
setState(model) {
|
||||||
this.recover();
|
this.recover();
|
||||||
|
// 实际上就是 状态重置 必须在设置其他状态之前 设置颜色之类的
|
||||||
|
if (this.style.Switch.sectionAction.flag && model.relSwitchCode) {
|
||||||
|
const switchModel = store.getters['map/getDeviceByCode'](model.relSwitchCode);
|
||||||
|
if (switchModel.normalPosition && switchModel.sectionCCode == model.code) {
|
||||||
|
this.section.setStyle({ stroke: this.style.Switch.sectionAction.spareColor })
|
||||||
|
} else if (switchModel.reversePosition && switchModel.sectionBCode == model.code) {
|
||||||
|
this.section.setStyle({ stroke: this.style.Switch.sectionAction.spareColor })
|
||||||
|
}
|
||||||
|
}
|
||||||
/** 道岔保护区段锁闭 */
|
/** 道岔保护区段锁闭 */
|
||||||
if (model.overlapLock) {
|
model.overlapLock && this.protectiveLock();
|
||||||
this.protectiveLock();
|
|
||||||
}
|
|
||||||
/** 空闲锁闭或者叫进路锁闭 */
|
/** 空闲锁闭或者叫进路锁闭 */
|
||||||
if (model.routeLock) {
|
model.routeLock && this.routeLock();
|
||||||
this.routeLock();
|
/** 轨道封锁 */
|
||||||
}
|
// model.blockade = 1;
|
||||||
|
model.blockade && this.block();
|
||||||
/** 非CBTC车占用 */
|
/** 非CBTC车占用 */
|
||||||
if (model.nctOccupied) {
|
model.nctOccupied && this.unCommunicationOccupied();
|
||||||
this.unCommunicationOccupied();
|
|
||||||
}
|
|
||||||
/** CBTC车占用 */
|
/** CBTC车占用 */
|
||||||
if (model.ctOccupied) {
|
model.ctOccupied && this.communicationOccupied();
|
||||||
this.communicationOccupied();
|
|
||||||
}
|
|
||||||
/** 区段切除*/
|
/** 区段切除*/
|
||||||
if (model.cutOff) {
|
model.cutOff && this.sectionCutOff();
|
||||||
this.sectionCutOff();
|
|
||||||
}
|
|
||||||
/** 是否限速*/
|
/** 是否限速*/
|
||||||
if (model.speedUpLimit > 0) {
|
model.speedUpLimit && this.setSpeedUpperLimit();
|
||||||
this.setSpeedUpperLimit();
|
|
||||||
}
|
|
||||||
/** 道岔区段更新岔心颜色 */
|
/** 道岔区段更新岔心颜色 */
|
||||||
if (model.type === '03' && model.switch) {
|
if (model.type === '03' && model.switch) {
|
||||||
const sectionSwitch = store.getters['map/getDeviceByCode'](model.switch.code);
|
const sectionSwitch = store.getters['map/getDeviceByCode'](model.switch.code);
|
||||||
if ( sectionSwitch && sectionSwitch.sectionACode === model.code ) {
|
if (sectionSwitch && sectionSwitch.sectionACode === model.code) {
|
||||||
sectionSwitch.instance && sectionSwitch.instance.setState(sectionSwitch);
|
sectionSwitch.instance && sectionSwitch.instance.setState(sectionSwitch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -822,9 +836,9 @@ export default class Section extends Group {
|
|||||||
drawSelected(selected) {
|
drawSelected(selected) {
|
||||||
this.selected = selected;
|
this.selected = selected;
|
||||||
if (selected) {
|
if (selected) {
|
||||||
!this.selectedType && this.section && this.section.setStyle({stroke: '#fbfbfb'});
|
!this.selectedType && this.section && this.section.setStyle({ stroke: '#fbfbfb' });
|
||||||
} else {
|
} else {
|
||||||
!this.selectedType && this.section && this.section.setStyle({stroke: this.style.Section.line.spareColor });
|
!this.selectedType && this.section && this.section.setStyle({ stroke: this.style.Section.line.spareColor });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
drawBatchSelected(selected, type) {
|
drawBatchSelected(selected, type) {
|
||||||
@ -832,9 +846,9 @@ export default class Section extends Group {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (selected && !this.selectedType) {
|
if (selected && !this.selectedType) {
|
||||||
this.section && this.section.setStyle({stroke: drawSectionStyle[type]});
|
this.section && this.section.setStyle({ stroke: drawSectionStyle[type] });
|
||||||
} else {
|
} else {
|
||||||
this.section && this.section.setStyle({stroke: this.style.Section.line.spareColor });
|
this.section && this.section.setStyle({ stroke: this.style.Section.line.spareColor });
|
||||||
}
|
}
|
||||||
this.selectedType = type;
|
this.selectedType = type;
|
||||||
}
|
}
|
||||||
@ -842,8 +856,8 @@ export default class Section extends Group {
|
|||||||
checkIsDrawMap() {
|
checkIsDrawMap() {
|
||||||
const path = window.location.href;
|
const path = window.location.href;
|
||||||
if (path.includes('/map/draw')) {
|
if (path.includes('/map/draw')) {
|
||||||
this.on('mouseout', () => { !this.selectedType && !this.selected && this.section && this.section.setStyle({stroke: this.style.Section.line.spareColor }); });
|
this.on('mouseout', () => { !this.selectedType && !this.selected && this.section && this.section.setStyle({ stroke: this.style.Section.line.spareColor }); });
|
||||||
this.on('mouseover', () => { !this.selectedType && this.section && this.section.setStyle({stroke: '#fbfbfb'}); });
|
this.on('mouseover', () => { !this.selectedType && this.section && this.section.setStyle({ stroke: '#fbfbfb' }); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -852,7 +866,7 @@ export default class Section extends Group {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mouseover() {
|
mouseover() {
|
||||||
this.section && this.section.setStyle({stroke: 'rgba(255,255,255,0.8)'});
|
this.section && this.section.setStyle({ stroke: 'rgba(255,255,255,0.8)' });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,9 @@ class ESwName extends Group {
|
|||||||
|
|
||||||
const rect = this.nameText.getBoundingRect();
|
const rect = this.nameText.getBoundingRect();
|
||||||
let textWidth = rect.width * 0.8;
|
let textWidth = rect.width * 0.8;
|
||||||
|
if (style.Switch.monolock.nameBorderShow) {
|
||||||
|
textWidth = rect.width * 0.8 + 8;
|
||||||
|
}
|
||||||
if (model.triangle.drictx !== 1) {
|
if (model.triangle.drictx !== 1) {
|
||||||
rect.x += rect.width;
|
rect.x += rect.width;
|
||||||
textWidth = -textWidth;
|
textWidth = -textWidth;
|
||||||
@ -49,7 +52,6 @@ class ESwName extends Group {
|
|||||||
},
|
},
|
||||||
style: {
|
style: {
|
||||||
lineWidth: 0,
|
lineWidth: 0,
|
||||||
// lineDash: [3, 3],
|
|
||||||
stroke: style.Switch.text.borderColor,
|
stroke: style.Switch.text.borderColor,
|
||||||
fill: style.transparentColor
|
fill: style.transparentColor
|
||||||
}
|
}
|
||||||
|
@ -19,9 +19,9 @@ class ETriangle extends Group {
|
|||||||
},
|
},
|
||||||
style: {
|
style: {
|
||||||
fill: style.Section.line.spareColor,
|
fill: style.Section.line.spareColor,
|
||||||
|
// fill: 'green',
|
||||||
lineWidth: 0,
|
lineWidth: 0,
|
||||||
stroke: style.Section.line.spareColor
|
stroke: style.Section.line.spareColor
|
||||||
// fill: 'green'
|
|
||||||
},
|
},
|
||||||
cursor: model.cursor,
|
cursor: model.cursor,
|
||||||
onmouseover: model.onmouseover,
|
onmouseover: model.onmouseover,
|
||||||
|
@ -123,9 +123,13 @@ export default class Switch extends Group {
|
|||||||
onmouseout: () => { this.name.getArrowText().hide(); }
|
onmouseout: () => { this.name.getArrowText().hide(); }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let spointLength1 = 8;
|
||||||
const Tspoint1 = [model.intersection.x + directx * width3 + directx * (width2 + width1) - directx * width3, model.intersection.y + directy * switchWidth1];
|
const Tspoint1 = [model.intersection.x + directx * width3 + directx * (width2 + width1) - directx * width3, model.intersection.y + directy * switchWidth1];
|
||||||
const Tspoint2 = [Tspoint1[0] - directx * 8, Tspoint1[1]];
|
if (this.style.Switch.block.rhomboidShow) {
|
||||||
const Tspoint3 = [Tspoint1[0] - directx * 8, model.intersection.y - directy * switchWidth1];
|
spointLength1 = 16
|
||||||
|
}
|
||||||
|
const Tspoint2 = [Tspoint1[0] - directx * spointLength1, Tspoint1[1]];
|
||||||
|
const Tspoint3 = [Tspoint1[0] - directx * spointLength1, model.intersection.y - directy * switchWidth1];
|
||||||
const Tspoint4 = [model.intersection.x + directx * width3, Tspoint3[1]];
|
const Tspoint4 = [model.intersection.x + directx * width3, Tspoint3[1]];
|
||||||
const Tspoint5 = [Tspoint1[0], Tspoint1[1]];
|
const Tspoint5 = [Tspoint1[0], Tspoint1[1]];
|
||||||
this.sheltertriangle = new ETriangle({ // 平行四边形覆盖范围 内侧三角形覆盖物 (用于宁波线路'挤岔' 专用)其他线路不能使用
|
this.sheltertriangle = new ETriangle({ // 平行四边形覆盖范围 内侧三角形覆盖物 (用于宁波线路'挤岔' 专用)其他线路不能使用
|
||||||
@ -322,6 +326,9 @@ export default class Switch extends Group {
|
|||||||
if (this.style.Switch.monolock.rectShow) { // 判断单锁矩形是否显示
|
if (this.style.Switch.monolock.rectShow) { // 判断单锁矩形是否显示
|
||||||
this.lockRect.show();
|
this.lockRect.show();
|
||||||
}
|
}
|
||||||
|
if (this.style.Switch.monolock.nameBorderShow) { // 单锁显示名称包围框
|
||||||
|
this.setHasTextBorder(1);
|
||||||
|
}
|
||||||
if (this.model.normalPosition) {
|
if (this.model.normalPosition) {
|
||||||
this.setTextColor(this.style.Switch.monolock.locationColor); // 定位 设置道岔名称颜色
|
this.setTextColor(this.style.Switch.monolock.locationColor); // 定位 设置道岔名称颜色
|
||||||
} else if (this.model.reversePosition) {
|
} else if (this.model.reversePosition) {
|
||||||
@ -336,6 +343,9 @@ export default class Switch extends Group {
|
|||||||
} else if (this.style.Switch.block.contentRectShow) {
|
} else if (this.style.Switch.block.contentRectShow) {
|
||||||
this.lockRect.show();
|
this.lockRect.show();
|
||||||
this.lockRect.setStyle({ stroke: this.style.Switch.block.contentRectColor });
|
this.lockRect.setStyle({ stroke: this.style.Switch.block.contentRectColor });
|
||||||
|
} else if (this.style.Switch.block.rhomboidShow && this.model.reversePosition) { // 范围且封锁时显示
|
||||||
|
this.sheltertriangle.show();
|
||||||
|
this.sheltertriangle.getSection().setStyle('fill', '#000080');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -409,7 +419,7 @@ export default class Switch extends Group {
|
|||||||
}
|
}
|
||||||
/** 道岔单锁 */
|
/** 道岔单锁 */
|
||||||
model.singleLock && this.setMonolock();
|
model.singleLock && this.setMonolock();
|
||||||
/** 道岔锁闭 */
|
/** 道岔封锁 */
|
||||||
model.blockade && this.block();
|
model.blockade && this.block();
|
||||||
/** 区段切除*/
|
/** 区段切除*/
|
||||||
model.cutOff && this.setSwitchCutOff();
|
model.cutOff && this.setSwitchCutOff();
|
||||||
|
@ -167,8 +167,9 @@ export default {
|
|||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.confirmControl.doShow(operate);
|
this.$refs.confirmControl.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号重开
|
// 信号重开
|
||||||
|
@ -25,8 +25,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="status" label="控制状态" width="180">
|
<el-table-column prop="status" label="控制状态" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.controlType == '01'">自动(不进行冲突检测)</span>
|
{{ scope.row.atsControl == '0' ? '人工' : '自动' }}
|
||||||
<span v-else>人工</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -148,7 +148,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
doShow(operate, selected, tempData) {
|
doShow(operate, selected, tempData) {
|
||||||
debugger;
|
|
||||||
this.selected = selected;
|
this.selected = selected;
|
||||||
this.allSelect = false;
|
this.allSelect = false;
|
||||||
this.changeList = [];
|
this.changeList = [];
|
||||||
@ -169,7 +168,7 @@ export default {
|
|||||||
|
|
||||||
if (tempData && tempData.length > 0) {
|
if (tempData && tempData.length > 0) {
|
||||||
tempData.forEach(elem => {
|
tempData.forEach(elem => {
|
||||||
elem.check = false;
|
this.changeList.push(false);
|
||||||
elem.disabled = false;
|
elem.disabled = false;
|
||||||
// 设置禁用状态
|
// 设置禁用状态
|
||||||
if (operate.operation === OperationEvent.Signal.humanControl.menu.operation &&
|
if (operate.operation === OperationEvent.Signal.humanControl.menu.operation &&
|
||||||
@ -304,10 +303,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 进路交自动控
|
// 进路交自动控
|
||||||
@ -327,10 +326,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
@ -339,7 +338,7 @@ export default {
|
|||||||
operation: OperationEvent.Command.cancel.menu.operation
|
operation: OperationEvent.Command.cancel.menu.operation
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
|
@ -243,10 +243,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -113,7 +113,7 @@ export default {
|
|||||||
pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
|
pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
|
||||||
pointdata.color = '#000' || lineStyle.color;
|
pointdata.color = '#000' || lineStyle.color;
|
||||||
pointdata.directionCode = train.directionCode;
|
pointdata.directionCode = train.directionCode;
|
||||||
pointdata.coord = [train.stationTimeList[1].secondTime || train.stationTimeList[1].second, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
|
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
|
||||||
|
|
||||||
/** 给服务对象添加服务名称和标记点*/
|
/** 给服务对象添加服务名称和标记点*/
|
||||||
opt.markPointData.push(createMartPoint(pointdata));
|
opt.markPointData.push(createMartPoint(pointdata));
|
||||||
@ -125,10 +125,10 @@ export default {
|
|||||||
train.stationTimeList.forEach((elem, index) => {
|
train.stationTimeList.forEach((elem, index) => {
|
||||||
idx = index;
|
idx = index;
|
||||||
if (index == 0 && train.stationTimeList[index].stationCode != train.stationTimeList[index + 1].stationCode ||
|
if (index == 0 && train.stationTimeList[index].stationCode != train.stationTimeList[index + 1].stationCode ||
|
||||||
index == train.stationTimeList.length - 2 && (train.stationTimeList[index].secondTime || train.stationTimeList[index].second) != (train.stationTimeList[index + 1].secondTime|| train.stationTimeList[index + 1].secondTime) ||
|
index == train.stationTimeList.length - 2 && train.stationTimeList[index].secondTime != train.stationTimeList[index + 1].secondTime ||
|
||||||
index > 0 && index < train.stationTimeList.length - 1) {
|
index > 0 && index < train.stationTimeList.length - 1) {
|
||||||
const aa = `${train.directionCode}${train.tripNumber}`;
|
const aa = `${train.directionCode}${train.tripNumber}`;
|
||||||
opt.data.push([elem.secondTime || elem.second, this.getCoordYByElem(stations, kmRangeCoordMap, elem, elem.directionCode, false), elem.stationCode, aa]);
|
opt.data.push([elem.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, elem, elem.directionCode, false), elem.stationCode, aa]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -138,8 +138,8 @@ export default {
|
|||||||
nextPoint = service.tripNumberDataList[j + 1].stationTimeList[1];
|
nextPoint = service.tripNumberDataList[j + 1].stationTimeList[1];
|
||||||
num = this.computedReentryNumber(train.tripNumber);
|
num = this.computedReentryNumber(train.tripNumber);
|
||||||
const aa = `${train.directionCode}${train.tripNumber}`;
|
const aa = `${train.directionCode}${train.tripNumber}`;
|
||||||
opt.data.push([lastPoint.secondTime || lastPoint.second, this.getCoordYByElem(stations, kmRangeCoordMap, lastPoint, train.directionCode, true, num), lastPoint.stationCode, aa]);
|
opt.data.push([lastPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, lastPoint, train.directionCode, true, num), lastPoint.stationCode, aa]);
|
||||||
opt.data.push([nextPoint.secondTime || nextPoint.second, this.getCoordYByElem(stations, kmRangeCoordMap, nextPoint, train.directionCode, true, num), nextPoint.stationCode, aa]);
|
opt.data.push([nextPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, nextPoint, train.directionCode, true, num), nextPoint.stationCode, aa]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 如果是备用车,按车次添加线*/
|
/** 如果是备用车,按车次添加线*/
|
||||||
@ -201,21 +201,21 @@ export default {
|
|||||||
|
|
||||||
runPlanData[elem.serviceNumber][elem.tripNumber].push(elem);
|
runPlanData[elem.serviceNumber][elem.tripNumber].push(elem);
|
||||||
runPlanData[elem.serviceNumber][elem.tripNumber].sort((a, b) => {
|
runPlanData[elem.serviceNumber][elem.tripNumber].sort((a, b) => {
|
||||||
return parseInt(a.secondTime || a.second) - parseInt(b.secondTime || b.second);
|
return parseInt(a.secondTime) - parseInt(b.secondTime);
|
||||||
});
|
});
|
||||||
|
|
||||||
/** 如果此记录车组号的数据为第一条时,则打上标签*/
|
/** 如果此记录车组号的数据为第一条时,则打上标签*/
|
||||||
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
|
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
|
||||||
serie.markPoint.data.push(createMartPoint({
|
serie.markPoint.data.push(createMartPoint({
|
||||||
directionCode: elem.directionCode,
|
directionCode: elem.directionCode,
|
||||||
coord: [parseInt(elem.secondTime || elem.second), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
|
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
|
||||||
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.directionCode}${elem.tripNumber}`,
|
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.directionCode}${elem.tripNumber}`,
|
||||||
color: lineStyle.color || '#000'
|
color: lineStyle.color || '#000'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 计算折返点*/
|
/** 计算折返点*/
|
||||||
var nextPoint = [parseInt(elem.secondTime || elem.second), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false), elem.directionCode];
|
var nextPoint = [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false), elem.directionCode];
|
||||||
if (serie.data.length > 0) {
|
if (serie.data.length > 0) {
|
||||||
var lastPoint = serie.data[serie.data.length - 1];
|
var lastPoint = serie.data[serie.data.length - 1];
|
||||||
if (lastPoint[2] !== nextPoint[2]) {
|
if (lastPoint[2] !== nextPoint[2]) {
|
||||||
|
@ -220,14 +220,11 @@ export default {
|
|||||||
setStopTime() {
|
setStopTime() {
|
||||||
const step = {
|
const step = {
|
||||||
start: true,
|
start: true,
|
||||||
over:true,
|
|
||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
standCode: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
},
|
}
|
||||||
cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME
|
|
||||||
|
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
<el-table-column :id="domIdChoose" prop="controlType" label="控制" style="margin-left:30px">
|
<el-table-column :id="domIdChoose" prop="controlType" label="控制" style="margin-left:30px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div :style="{color: scope.row.turnBack? '#00FFFF':'#000000'}">
|
<div :style="{color: scope.row.turnBack? '#00FFFF':'#000000'}">
|
||||||
{{ scope.row.controlType ? controlTypeMap[scope.row.controlType] : '自动' }}
|
{{ scope.row.atsControl == '0' ? '人工' : '自动' }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -94,10 +94,10 @@ export default {
|
|||||||
tempData: [],
|
tempData: [],
|
||||||
stationName: '',
|
stationName: '',
|
||||||
signalName: '',
|
signalName: '',
|
||||||
controlTypeMap: {
|
// controlTypeMap: {
|
||||||
'01': '自动',
|
// '01': '自动',
|
||||||
'02': '人工'
|
// '02': '人工'
|
||||||
}
|
// }
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<el-table-column :id="domIdChoose" prop="controlType" label="控制" style="margin-left:30px">
|
<el-table-column :id="domIdChoose" prop="controlType" label="控制" style="margin-left:30px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div :style="{color: scope.row.turnBack? '#00FFFF':'#000000'}">
|
<div :style="{color: scope.row.turnBack? '#00FFFF':'#000000'}">
|
||||||
{{ scope.row.controlType ? controlTypeMap[scope.row.controlType] : '自动' }}
|
{{ scope.row.atsControl == '0' ? '人工' : '自动' }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -87,13 +87,9 @@ export default {
|
|||||||
selection: [],
|
selection: [],
|
||||||
stationName: '',
|
stationName: '',
|
||||||
signalName: '',
|
signalName: '',
|
||||||
allSelect: false,
|
|
||||||
highlight: true,
|
highlight: true,
|
||||||
row: '',
|
row: '',
|
||||||
controlTypeMap: {
|
commitDisabled: true
|
||||||
'01': '自动',
|
|
||||||
'02': '人工'
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -125,14 +121,6 @@ export default {
|
|||||||
return '进路交自动控';
|
return '进路交自动控';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
},
|
|
||||||
commitDisabled() {
|
|
||||||
let disabled = true;
|
|
||||||
if (this.selection && this.selection.length) {
|
|
||||||
disabled = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return disabled;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -143,6 +131,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
doShow(operate, selected, tempData) {
|
doShow(operate, selected, tempData) {
|
||||||
this.selected = selected;
|
this.selected = selected;
|
||||||
|
this.selection = [];
|
||||||
|
this.commitDisabled = true;
|
||||||
// 如果不是断点激活,而是第一次显示则初始化
|
// 如果不是断点激活,而是第一次显示则初始化
|
||||||
if (!this.dialogShow) {
|
if (!this.dialogShow) {
|
||||||
this.signalName = '';
|
this.signalName = '';
|
||||||
@ -160,10 +150,10 @@ export default {
|
|||||||
elem.disabled = false;
|
elem.disabled = false;
|
||||||
// 设置禁用状态
|
// 设置禁用状态
|
||||||
if (operate.operation === OperationEvent.Signal.humanControl.menu.operation &&
|
if (operate.operation === OperationEvent.Signal.humanControl.menu.operation &&
|
||||||
elem.atsControl == '0') {
|
(elem.atsControl == '0') ) {
|
||||||
elem.disabled = true;
|
elem.disabled = true;
|
||||||
} if (operate.operation === OperationEvent.Signal.atsAutoControl.menu.operation &&
|
} if (operate.operation === OperationEvent.Signal.atsAutoControl.menu.operation &&
|
||||||
elem.atsControl == '1') {
|
(elem.atsControl == '1') ) {
|
||||||
elem.disabled = true;
|
elem.disabled = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -200,27 +190,13 @@ export default {
|
|||||||
this.$refs.tempTable.setCurrentRow();
|
this.$refs.tempTable.setCurrentRow();
|
||||||
this.$store.dispatch('training/emitTipFresh');
|
this.$store.dispatch('training/emitTipFresh');
|
||||||
},
|
},
|
||||||
allSelectChange() {
|
|
||||||
if (this.allSelect) {
|
|
||||||
this.tempData.forEach(item => {
|
|
||||||
if (!item.disabled) {
|
|
||||||
item.check = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this.tempData.forEach(item => {
|
|
||||||
if (!item.disabled) {
|
|
||||||
item.check = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
clickEvent(row, event, column) {
|
clickEvent(row, event, column) {
|
||||||
this.highlight = false;
|
this.highlight = false;
|
||||||
if (row && !row.disabled) {
|
if (row && !row.disabled) {
|
||||||
this.highlight = true;
|
this.highlight = true;
|
||||||
this.selection = [row];
|
this.selection = [row];
|
||||||
|
this.commitDisabled = false;
|
||||||
this.beforeSectionList = row.containSectionList || [];
|
this.beforeSectionList = row.containSectionList || [];
|
||||||
this.row = row;
|
this.row = row;
|
||||||
// 设置选中指令
|
// 设置选中指令
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
<el-table-column :id="domIdChoose" prop="controlType" label="控制" style="margin-left:30px">
|
<el-table-column :id="domIdChoose" prop="controlType" label="控制" style="margin-left:30px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div :style="{color: scope.row.turnBack? '#00FFFF':'#000000'}">
|
<div :style="{color: scope.row.turnBack? '#00FFFF':'#000000'}">
|
||||||
{{ scope.row.controlType ? controlTypeMap[scope.row.controlType] : '自动' }}
|
{{ scope.row.atsControl == '0' ? '人工' : '自动' }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -110,12 +110,9 @@ export default {
|
|||||||
display: true,
|
display: true,
|
||||||
stationName: '',
|
stationName: '',
|
||||||
signalName: '',
|
signalName: '',
|
||||||
|
commitDisabled:true,
|
||||||
tableStyle: {
|
tableStyle: {
|
||||||
'border-bottom': 'none'
|
'border-bottom': 'none'
|
||||||
},
|
|
||||||
controlTypeMap: {
|
|
||||||
'01': '自动',
|
|
||||||
'02': '人工'
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -135,13 +132,6 @@ export default {
|
|||||||
title() {
|
title() {
|
||||||
return '办理进路';
|
return '办理进路';
|
||||||
},
|
},
|
||||||
commitDisabled() {
|
|
||||||
let disabled = true;
|
|
||||||
if (this.row) {
|
|
||||||
disabled = !this.row.canSetting;
|
|
||||||
}
|
|
||||||
return disabled;
|
|
||||||
},
|
|
||||||
...mapGetters('map', [
|
...mapGetters('map', [
|
||||||
'signalList',
|
'signalList',
|
||||||
'sectionList',
|
'sectionList',
|
||||||
@ -189,6 +179,7 @@ export default {
|
|||||||
},
|
},
|
||||||
doShow(operate, selected, tempData) {
|
doShow(operate, selected, tempData) {
|
||||||
this.selected = selected;
|
this.selected = selected;
|
||||||
|
this.commitDisabled = true;
|
||||||
// 如果不是断点激活,而是第一次显示,则需要设置初始值
|
// 如果不是断点激活,而是第一次显示,则需要设置初始值
|
||||||
if (!this.dialogShow) {
|
if (!this.dialogShow) {
|
||||||
this.signalName = '';
|
this.signalName = '';
|
||||||
@ -232,6 +223,7 @@ export default {
|
|||||||
// 恢复进路区段的切除状态
|
// 恢复进路区段的切除状态
|
||||||
this.restoreBeforeDevices();
|
this.restoreBeforeDevices();
|
||||||
row.canSetting = true;
|
row.canSetting = true;
|
||||||
|
this.commitDisabled = false;
|
||||||
// 设置选中区段为切除状态
|
// 设置选中区段为切除状态
|
||||||
const containSectionList = [];
|
const containSectionList = [];
|
||||||
if (row.routeSectionList && row.routeSectionList.length) {
|
if (row.routeSectionList && row.routeSectionList.length) {
|
||||||
|
@ -171,9 +171,9 @@
|
|||||||
>
|
>
|
||||||
人工</el-radio>
|
人工</el-radio>
|
||||||
<div style="float: left; margin-left: 20px;">
|
<div style="float: left; margin-left: 20px;">
|
||||||
<span v-if="radio2 != 2">站停时间</span>
|
<!-- <span v-if="radio2 != 2">站停时间</span> -->
|
||||||
<span v-if="radio2 == 2">运行等级</span>
|
<span v-if="radio2 == 2">运行等级</span>
|
||||||
<el-input
|
<!-- <el-input
|
||||||
v-if="radio2 != 2"
|
v-if="radio2 != 2"
|
||||||
:id="domIdStopTime"
|
:id="domIdStopTime"
|
||||||
v-model="trainStopTime"
|
v-model="trainStopTime"
|
||||||
@ -181,7 +181,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
:disabled="radio == '01'"
|
:disabled="radio == '01'"
|
||||||
@blur="stopTimeBlur"
|
@blur="stopTimeBlur"
|
||||||
/>
|
/> -->
|
||||||
<el-select
|
<el-select
|
||||||
v-if="radio2 == 2"
|
v-if="radio2 == 2"
|
||||||
:id="domIdRunLevel"
|
:id="domIdRunLevel"
|
||||||
@ -273,7 +273,7 @@ export default {
|
|||||||
],
|
],
|
||||||
tripNumber: '',
|
tripNumber: '',
|
||||||
effective: '01',
|
effective: '01',
|
||||||
trainStopTime: 0,
|
// trainStopTime: 0,
|
||||||
trainRunlevel: '01'
|
trainRunlevel: '01'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -351,7 +351,7 @@ export default {
|
|||||||
this.radio = '01';
|
this.radio = '01';
|
||||||
this.radio1 = '1';
|
this.radio1 = '1';
|
||||||
this.radio2 = '1';
|
this.radio2 = '1';
|
||||||
this.trainStopTime = 0;
|
// this.trainStopTime = 0;
|
||||||
this.effective = '01';
|
this.effective = '01';
|
||||||
if (data == OperationEvent.StationStand.setDetainTrain.menu.operation) {
|
if (data == OperationEvent.StationStand.setDetainTrain.menu.operation) {
|
||||||
this.radio1 = '1';
|
this.radio1 = '1';
|
||||||
@ -401,7 +401,7 @@ export default {
|
|||||||
if (this.operation == OperationEvent.StationStand.setJumpStop.menu.operation || this.operation == OperationEvent.StationStand.setJumpStop.menu.operation) {
|
if (this.operation == OperationEvent.StationStand.setJumpStop.menu.operation || this.operation == OperationEvent.StationStand.setJumpStop.menu.operation) {
|
||||||
this.radio = selected.direction;
|
this.radio = selected.direction;
|
||||||
} else if (this.operation == OperationEvent.StationStand.setStopTime.menu.operation) {
|
} else if (this.operation == OperationEvent.StationStand.setStopTime.menu.operation) {
|
||||||
this.trainStopTime = Number(tempDate.parkingTime) === -1 ? 15 : Number(tempDate.parkingTime);
|
// this.trainStopTime = Number(tempDate.parkingTime) === -1 ? 15 : Number(tempDate.parkingTime);
|
||||||
this.radio = Number(tempDate.parkingTime) === -1 ? '01' : '02';
|
this.radio = Number(tempDate.parkingTime) === -1 ? '01' : '02';
|
||||||
this.effective = tempDate.parkingValidStatus ? '01' : '02';
|
this.effective = tempDate.parkingValidStatus ? '01' : '02';
|
||||||
}
|
}
|
||||||
@ -495,7 +495,7 @@ export default {
|
|||||||
operate.operation = OperationEvent.StationStand.setRunLevel.choose1.operation;
|
operate.operation = OperationEvent.StationStand.setRunLevel.choose1.operation;
|
||||||
}
|
}
|
||||||
if (this.radio === '01') {
|
if (this.radio === '01') {
|
||||||
this.trainStopTime = 0;
|
// this.trainStopTime = 0;
|
||||||
this.trainRunlevel = '01';
|
this.trainRunlevel = '01';
|
||||||
}
|
}
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
@ -560,10 +560,10 @@ export default {
|
|||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消扣车
|
// 取消扣车
|
||||||
@ -592,10 +592,10 @@ export default {
|
|||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置跳停
|
// 设置跳停
|
||||||
@ -621,10 +621,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消跳停
|
// 取消跳停
|
||||||
@ -646,10 +646,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置停站时间
|
// 设置停站时间
|
||||||
@ -662,7 +662,7 @@ export default {
|
|||||||
val: [`${this.radio}`, this.trainStopTime, forver].join('::'),
|
val: [`${this.radio}`, this.trainStopTime, forver].join('::'),
|
||||||
param: {
|
param: {
|
||||||
standStopControl: `${this.radio}`,
|
standStopControl: `${this.radio}`,
|
||||||
standStopTime: this.trainStopTime,
|
// standStopTime: this.trainStopTime,
|
||||||
standAlwaysValid: forver
|
standAlwaysValid: forver
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -673,9 +673,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置运行速度
|
// 设置运行速度
|
||||||
@ -705,9 +706,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
@ -186,7 +186,7 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
});
|
});
|
||||||
@ -195,12 +195,11 @@ export default {
|
|||||||
const operate = {
|
const operate = {
|
||||||
operation: OperationEvent.Command.cancel.menu.operation
|
operation: OperationEvent.Command.cancel.menu.operation
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(() => {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -66,14 +66,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return JsonData;
|
return JsonData;
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 将后台数据解析成图表*/
|
/** 将后台数据解析成图表*/
|
||||||
convertDataToModels(data, stations, kmRangeCoordMap, lineStyle) {
|
convertDataToModels(data, stations, kmRangeCoordMap, lineStyle) {
|
||||||
var models = [];
|
var models = [];
|
||||||
|
|
||||||
if (data && data.serviceNumberDataList && data.serviceNumberDataList.length) {
|
if (data && data.serviceNumberDataList && data.serviceNumberDataList.length) {
|
||||||
/** 按服务遍历数据*/
|
/** 按服务遍历数据*/
|
||||||
data.serviceNumberDataList.forEach((service) => {
|
data.serviceNumberDataList.forEach((service) => {
|
||||||
@ -93,7 +91,7 @@ export default {
|
|||||||
pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
|
pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
|
||||||
pointdata.color = '#000' || lineStyle.color;
|
pointdata.color = '#000' || lineStyle.color;
|
||||||
pointdata.directionCode = train.directionCode;
|
pointdata.directionCode = train.directionCode;
|
||||||
pointdata.coord = [train.stationTimeList[1].secondTime || train.stationTimeList[1].second, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
|
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
|
||||||
|
|
||||||
/** 给服务对象添加服务名称和标记点*/
|
/** 给服务对象添加服务名称和标记点*/
|
||||||
opt.markPointData.push(createMartPoint(pointdata));
|
opt.markPointData.push(createMartPoint(pointdata));
|
||||||
@ -105,10 +103,10 @@ export default {
|
|||||||
train.stationTimeList.forEach((elem, index) => {
|
train.stationTimeList.forEach((elem, index) => {
|
||||||
idx = index;
|
idx = index;
|
||||||
if (index == 0 && train.stationTimeList[index].stationCode != train.stationTimeList[index + 1].stationCode ||
|
if (index == 0 && train.stationTimeList[index].stationCode != train.stationTimeList[index + 1].stationCode ||
|
||||||
index == train.stationTimeList.length - 2 && (train.stationTimeList[index].secondTime || train.stationTimeList[index].second) != (train.stationTimeList[index + 1].secondTime || train.stationTimeList[index + 1].second) ||
|
index == train.stationTimeList.length - 2 && train.stationTimeList[index].secondTime != train.stationTimeList[index + 1].secondTime ||
|
||||||
index > 0 && index < train.stationTimeList.length - 1) {
|
index > 0 && index < train.stationTimeList.length - 1) {
|
||||||
const aa = `${train.directionCode}${train.tripNumber}`;
|
const aa = `${train.directionCode}${train.tripNumber}`;
|
||||||
opt.data.push([elem.secondTime || elem.second, this.getCoordYByElem(stations, kmRangeCoordMap, elem, elem.directionCode, false), elem.stationCode, aa]);
|
opt.data.push([elem.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, elem, elem.directionCode, false), elem.stationCode, aa]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -118,8 +116,8 @@ export default {
|
|||||||
nextPoint = service.tripNumberDataList[j + 1].stationTimeList[1];
|
nextPoint = service.tripNumberDataList[j + 1].stationTimeList[1];
|
||||||
num = this.computedReentryNumber(train.tripNumber);
|
num = this.computedReentryNumber(train.tripNumber);
|
||||||
const aa = `${train.directionCode}${train.tripNumber}`;
|
const aa = `${train.directionCode}${train.tripNumber}`;
|
||||||
opt.data.push([lastPoint.secondTime || lastPoint.second, this.getCoordYByElem(stations, kmRangeCoordMap, lastPoint, train.directionCode, true, num), lastPoint.stationCode, aa]);
|
opt.data.push([lastPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, lastPoint, train.directionCode, true, num), lastPoint.stationCode, aa]);
|
||||||
opt.data.push([nextPoint.secondTime || nextPoint.second, this.getCoordYByElem(stations, kmRangeCoordMap, nextPoint, train.directionCode, true, num), nextPoint.stationCode, aa]);
|
opt.data.push([nextPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, nextPoint, train.directionCode, true, num), nextPoint.stationCode, aa]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 如果是备用车,按车次添加线*/
|
/** 如果是备用车,按车次添加线*/
|
||||||
@ -158,7 +156,6 @@ export default {
|
|||||||
if (!runPlanData[elem.serviceNumber]) {
|
if (!runPlanData[elem.serviceNumber]) {
|
||||||
/** 创建一个新服务号标记*/
|
/** 创建一个新服务号标记*/
|
||||||
runPlanData[elem.serviceNumber] = {};
|
runPlanData[elem.serviceNumber] = {};
|
||||||
|
|
||||||
/** 不存在此服务号,则需要创建一条新的line*/
|
/** 不存在此服务号,则需要创建一条新的line*/
|
||||||
series.push(createSeriesModel({
|
series.push(createSeriesModel({
|
||||||
zlevel: 1,
|
zlevel: 1,
|
||||||
@ -179,21 +176,21 @@ export default {
|
|||||||
|
|
||||||
runPlanData[elem.serviceNumber][elem.tripNumber].push(elem);
|
runPlanData[elem.serviceNumber][elem.tripNumber].push(elem);
|
||||||
runPlanData[elem.serviceNumber][elem.tripNumber].sort((a, b) => {
|
runPlanData[elem.serviceNumber][elem.tripNumber].sort((a, b) => {
|
||||||
return parseInt(a.secondTime || a.second) - parseInt(b.secondTime || b.second);
|
return parseInt(a.secondTime) - parseInt(b.secondTime);
|
||||||
});
|
});
|
||||||
|
|
||||||
/** 如果此记录车组号的数据为第一条时,则打上标签*/
|
/** 如果此记录车组号的数据为第一条时,则打上标签*/
|
||||||
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
|
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
|
||||||
serie.markPoint.data.push(createMartPoint({
|
serie.markPoint.data.push(createMartPoint({
|
||||||
directionCode: elem.directionCode,
|
directionCode: elem.directionCode,
|
||||||
coord: [parseInt(elem.secondTime || elem.second), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
|
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
|
||||||
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.directionCode}${elem.tripNumber}`,
|
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.directionCode}${elem.tripNumber}`,
|
||||||
color: lineStyle.color || '#000'
|
color: lineStyle.color || '#000'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 计算折返点*/
|
/** 计算折返点*/
|
||||||
var nextPoint = [parseInt(elem.secondTime || elem.second), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false), elem.directionCode];
|
var nextPoint = [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false), elem.directionCode];
|
||||||
if (serie.data.length > 0) {
|
if (serie.data.length > 0) {
|
||||||
var lastPoint = serie.data[serie.data.length - 1];
|
var lastPoint = serie.data[serie.data.length - 1];
|
||||||
if (lastPoint[2] !== nextPoint[2]) {
|
if (lastPoint[2] !== nextPoint[2]) {
|
||||||
|
@ -162,15 +162,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号关灯
|
// 信号关灯
|
||||||
@ -182,15 +182,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号重开
|
// 信号重开
|
||||||
@ -202,15 +202,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消进路
|
// 取消进路
|
||||||
@ -222,15 +222,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 进路交人工控
|
// 进路交人工控
|
||||||
@ -242,15 +242,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 进路交ATS自动控
|
// 进路交ATS自动控
|
||||||
@ -262,15 +262,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置运行等级
|
// 设置运行等级
|
||||||
@ -283,15 +283,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 停站时间
|
// 停站时间
|
||||||
@ -304,15 +304,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置折返策略
|
// 设置折返策略
|
||||||
@ -325,15 +325,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
@ -341,7 +341,7 @@ export default {
|
|||||||
operation: OperationEvent.Command.cancel.menu.operation
|
operation: OperationEvent.Command.cancel.menu.operation
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
|
@ -279,7 +279,7 @@ export default {
|
|||||||
|
|
||||||
this.setMessage(this.$t('tip.firstConfirmTip'));
|
this.setMessage(this.$t('tip.firstConfirmTip'));
|
||||||
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: '' });
|
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: '' });
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
if (this.operation == OperationEvent.Signal.unlock.menu.operation) {
|
if (this.operation == OperationEvent.Signal.unlock.menu.operation) {
|
||||||
@ -299,7 +299,7 @@ export default {
|
|||||||
|
|
||||||
this.setMessage(this.$t('tip.firstConfirmTip'));
|
this.setMessage(this.$t('tip.firstConfirmTip'));
|
||||||
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: '' });
|
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickReleaseCommand'), result: '' });
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.setButtonEnable({ step: 1 });
|
this.setButtonEnable({ step: 1 });
|
||||||
@ -325,7 +325,7 @@ export default {
|
|||||||
|
|
||||||
this.setMessage(this.$t('tip.secondConfirmTip'));
|
this.setMessage(this.$t('tip.secondConfirmTip'));
|
||||||
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: '' });
|
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickFirstConfirm'), result: '' });
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.timeCountCommand = -1;
|
this.timeCountCommand = -1;
|
||||||
@ -355,7 +355,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.setMessage('');
|
this.setMessage('');
|
||||||
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: '' });
|
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickSecondConfirm'), result: '' });
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.timeCountCommand = -1;
|
this.timeCountCommand = -1;
|
||||||
this.timeCountConfirm = -1;
|
this.timeCountConfirm = -1;
|
||||||
this.setButtonEnable({ step: -1 });
|
this.setButtonEnable({ step: -1 });
|
||||||
@ -385,7 +385,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickSuspend'), result: '' });
|
this.writeRecord({ order: ++this.order, date: now(), context: this.$t('menu.clickSuspend'), result: '' });
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.setButtonEnable({ step: 0 });
|
this.setButtonEnable({ step: 0 });
|
||||||
@ -402,7 +402,7 @@ export default {
|
|||||||
operation: OperationEvent.Command.close.menu.operation
|
operation: OperationEvent.Command.close.menu.operation
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
|
@ -161,15 +161,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 行调工作站取消进路
|
// 行调工作站取消进路
|
||||||
@ -182,7 +182,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
@ -201,7 +201,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
@ -220,7 +220,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
@ -240,7 +240,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
@ -260,7 +260,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
@ -280,7 +280,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
@ -301,7 +301,7 @@ export default {
|
|||||||
|
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
@ -318,7 +318,7 @@ export default {
|
|||||||
operation: OperationEvent.Command.close.menu.operation
|
operation: OperationEvent.Command.close.menu.operation
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
|
@ -34,9 +34,14 @@
|
|||||||
highlight-current-row
|
highlight-current-row
|
||||||
:height="140"
|
:height="140"
|
||||||
>
|
>
|
||||||
<el-table-column :id="domIdChoose" prop="name" :label="this.$t('menu.route')" style="margin-left:30px">
|
<el-table-column :id="domIdChoose" :label="this.$t('menu.route')" style="margin-left:30px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-checkbox v-model="scope.row.check" :disabled="scope.row.disabled" />
|
<!-- <el-checkbox v-model="scope.row.check" :disabled="scope.row.disabled" /> -->
|
||||||
|
<el-checkbox
|
||||||
|
v-model="changeList[scope.$index]"
|
||||||
|
:disabled="scope.row.disabled"
|
||||||
|
@change="changeCheck(changeList[scope.$index],scope.row.code)"
|
||||||
|
/>
|
||||||
<span :style="{color: scope.row.disabled ? '#CBCBCB':'unset'}">{{ scope.row.name }}</span>
|
<span :style="{color: scope.row.disabled ? '#CBCBCB':'unset'}">{{ scope.row.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -95,11 +100,14 @@ export default {
|
|||||||
return {
|
return {
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
selected: null,
|
||||||
tempData: [],
|
tempData: [],
|
||||||
operation: null,
|
operation: null,
|
||||||
selection: [],
|
selection: [],
|
||||||
stationName: '',
|
stationName: '',
|
||||||
signalName: ''
|
signalName: '',
|
||||||
|
changeList:[],
|
||||||
|
commitDisabled: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -132,24 +140,9 @@ export default {
|
|||||||
return this.$t('menu.menuSignal.atsAutoControl');
|
return this.$t('menu.menuSignal.atsAutoControl');
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
},
|
|
||||||
commitDisabled() {
|
|
||||||
let disabled = true;
|
|
||||||
if (this.selection && this.selection.length) {
|
|
||||||
disabled = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return disabled;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
// 深度数据状态
|
|
||||||
tempData: {
|
|
||||||
handler(val, oldVal) {
|
|
||||||
this.checkTableDataSelction(val);
|
|
||||||
},
|
|
||||||
deep: true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@ -158,6 +151,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
doShow(operate, selected, tempData) {
|
doShow(operate, selected, tempData) {
|
||||||
|
this.selected = selected;
|
||||||
|
this.changeList = [];
|
||||||
|
this.commitDisabled = true;
|
||||||
|
this.selection = [];
|
||||||
// 如果不是断点激活,而是第一次显示则初始化
|
// 如果不是断点激活,而是第一次显示则初始化
|
||||||
if (!this.dialogShow) {
|
if (!this.dialogShow) {
|
||||||
this.signalName = '';
|
this.signalName = '';
|
||||||
@ -172,14 +169,14 @@ export default {
|
|||||||
|
|
||||||
if (tempData && tempData.length > 0) {
|
if (tempData && tempData.length > 0) {
|
||||||
tempData.forEach(elem => {
|
tempData.forEach(elem => {
|
||||||
elem.check = false;
|
this.changeList.push(false);
|
||||||
elem.disabled = false;
|
elem.disabled = false;
|
||||||
// 设置禁用状态
|
// 设置禁用状态
|
||||||
if (operate.operation === OperationEvent.Signal.humanControl.menu.operation &&
|
if (operate.operation === OperationEvent.Signal.humanControl.menu.operation &&
|
||||||
elem.controlType != '01') {
|
(elem.atsControl == '0')) {
|
||||||
elem.disabled = true;
|
elem.disabled = true;
|
||||||
} if (operate.operation === OperationEvent.Signal.atsAutoControl.menu.operation &&
|
} if (operate.operation === OperationEvent.Signal.atsAutoControl.menu.operation &&
|
||||||
elem.controlType == '01') {
|
(elem.atsControl == '1')) {
|
||||||
elem.disabled = true;
|
elem.disabled = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -199,19 +196,16 @@ export default {
|
|||||||
this.$refs.tempTable.setCurrentRow();
|
this.$refs.tempTable.setCurrentRow();
|
||||||
this.$store.dispatch('training/emitTipFresh');
|
this.$store.dispatch('training/emitTipFresh');
|
||||||
},
|
},
|
||||||
checkTableDataSelction(data) {
|
changeCheck(check, code) {
|
||||||
const selection = [];
|
if (check) {
|
||||||
if (data && data.length > 0) {
|
this.selection.push(code);
|
||||||
data.forEach(row => {
|
} else {
|
||||||
if (row.check && !row.disabled) {
|
this.selection.splice(this.selection.indexOf(code), 1);
|
||||||
selection.push(row);
|
|
||||||
}
|
}
|
||||||
});
|
if (this.selection.length > 0) {
|
||||||
}
|
this.commitDisabled = false;
|
||||||
|
} else {
|
||||||
if (JSON.stringify(selection) !== JSON.stringify(this.selection)) {
|
this.commitDisabled = true;
|
||||||
this.handleChooseChange(selection);
|
|
||||||
this.selection = selection;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleChooseChange(selection) {
|
handleChooseChange(selection) {
|
||||||
@ -252,58 +246,55 @@ export default {
|
|||||||
},
|
},
|
||||||
// 自排关
|
// 自排关
|
||||||
humanControl() {
|
humanControl() {
|
||||||
const codeList = this.selection.map(elem => { return elem.code; });
|
|
||||||
const operate = {
|
const operate = {
|
||||||
over: true,
|
over: true,
|
||||||
operation: OperationEvent.Signal.humanControl.menu.operation,
|
operation: OperationEvent.Signal.humanControl.menu.operation,
|
||||||
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING,
|
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING,
|
||||||
param: {
|
param:{
|
||||||
Route_Code_List: codeList
|
routeCodeList:this.selection
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 自排开
|
// 自排开
|
||||||
atsAutoControl() {
|
atsAutoControl() {
|
||||||
const codeList = this.selection.map(elem => { return elem.code; });
|
|
||||||
const operate = {
|
const operate = {
|
||||||
over: true,
|
over: true,
|
||||||
operation: OperationEvent.Signal.atsAutoControl.menu.operation,
|
operation: OperationEvent.Signal.atsAutoControl.menu.operation,
|
||||||
cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING,
|
cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING,
|
||||||
param: {
|
param:{
|
||||||
Route_Code_List: codeList
|
routeCodeList:this.selection
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
const operate = {
|
const operate = {
|
||||||
operation: OperationEvent.Command.cancel.menu.operation
|
operation: OperationEvent.Command.cancel.menu.operation
|
||||||
};
|
};
|
||||||
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
|
@ -110,8 +110,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** status 04:封锁*/
|
/** status 04:封锁*/
|
||||||
const signal = (selected || {}).status;
|
const signal = selected;
|
||||||
this.tempData = [{ code: selected.code, name: selected.name, status: signal.status != '04' ? this.$t('menu.unblocked') : this.$t('menu.blocked') }];
|
this.tempData = [{ code: selected.code, name: selected.name, status: signal.blockade ? this.$t('menu.blocked') : this.$t('menu.unblocked') }];
|
||||||
const timer = setInterval(() => {
|
const timer = setInterval(() => {
|
||||||
if (this.$refs.table) {
|
if (this.$refs.table) {
|
||||||
this.$refs.table.setCurrentRow(this.tempData[0]);
|
this.$refs.table.setCurrentRow(this.tempData[0]);
|
||||||
@ -138,15 +138,15 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog v-dialogDrag class="haerbin-01__systerm route-setting" :title="title" :visible.sync="show" width="500px" :before-close="doClose" :z-index="2000" :modal="false" :close-on-click-modal="false">
|
<el-dialog v-dialogDrag class="haerbin-01__systerm route-setting" :title="title" :visible.sync="show" width="350px" :before-close="doClose" :z-index="2000" :modal="false" :close-on-click-modal="false">
|
||||||
<el-row class="header">
|
<el-row class="header">
|
||||||
<el-col :span="8"><span>{{ $t('menu.stationName') }}</span></el-col>
|
<el-col :span="8"><span>{{ $t('menu.stationName') }}</span></el-col>
|
||||||
<el-col :span="8" :offset="2"><span>{{ $t('menu.startSignal') }}</span></el-col>
|
<el-col :span="8" :offset="2"><span>{{ $t('menu.startSignal') }}</span></el-col>
|
||||||
@ -14,17 +14,6 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-table ref="table" :data="tempData" border style="width: 100%; margin-top:10px" size="mini" height="120" highlight-current-row @row-click="clickEvent">
|
<el-table ref="table" :data="tempData" border style="width: 100%; margin-top:10px" size="mini" height="120" highlight-current-row @row-click="clickEvent">
|
||||||
<el-table-column :id="domIdChoose" prop="name" :label="this.$t('menu.route')" style="margin-left:30px" />
|
<el-table-column :id="domIdChoose" prop="name" :label="this.$t('menu.route')" style="margin-left:30px" />
|
||||||
<el-table-column prop="protectedSection" :label="this.$t('menu.protectionSection')" :width="180">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ getProtectedSectionName(scope.row) }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="canSetting" :label="this.$t('global.status')" :width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span v-if="scope.row.canSetting">{{ $t('menu.allowSelection') }}</span>
|
|
||||||
<span v-else>{{ $t('menu.notAllowSelection') }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-row justify="center" class="button-group">
|
<el-row justify="center" class="button-group">
|
||||||
<el-col :span="8" :offset="4">
|
<el-col :span="8" :offset="4">
|
||||||
@ -40,20 +29,19 @@
|
|||||||
<el-button :id="domIdCancel" @click="cancel">{{ $t('global.cancel') }}</el-button>
|
<el-button :id="domIdCancel" @click="cancel">{{ $t('global.cancel') }}</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<confirm-control ref="confirmControl" />
|
|
||||||
<notice-info ref="noticeInfo" />
|
<notice-info ref="noticeInfo" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
import ConfirmControl from './childDialog/confirmControl';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
import NoticeInfo from './childDialog/childDialog/noticeInfo';
|
import NoticeInfo from './childDialog/childDialog/noticeInfo';
|
||||||
|
import { deepAssign } from '@/utils/index';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RouteSelection',
|
name: 'RouteSelection',
|
||||||
components: {
|
components: {
|
||||||
ConfirmControl,
|
|
||||||
NoticeInfo
|
NoticeInfo
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -62,11 +50,15 @@ export default {
|
|||||||
beforeSectionList: [],
|
beforeSectionList: [],
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
selected: null,
|
||||||
row: null,
|
row: null,
|
||||||
operation: '',
|
operation: '',
|
||||||
display: true,
|
display: true,
|
||||||
stationName: '',
|
stationName: '',
|
||||||
signalName: ''
|
signalName: '',
|
||||||
|
tableStyle: {
|
||||||
|
'border-bottom': 'none'
|
||||||
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -99,26 +91,8 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getProtectedSectionName(row) {
|
|
||||||
let name = '';
|
|
||||||
if (row &&
|
|
||||||
row.overlapSectionList &&
|
|
||||||
row.overlapSectionList &&
|
|
||||||
row.overlapSectionList.length > 0) {
|
|
||||||
|
|
||||||
const protect = row.overlapSectionList[0];
|
|
||||||
name = `${protect.name}`;
|
|
||||||
if (protect.parentName) {
|
|
||||||
name = `${protect.parentName}${protect.name}`;
|
|
||||||
}
|
|
||||||
const station = this.$store.getters['map/getDeviceByCode'](protect.stationCode);
|
|
||||||
if (station) {
|
|
||||||
name = `${name}(${station.name})`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return name;
|
|
||||||
},
|
|
||||||
doShow(operate, selected, tempData) {
|
doShow(operate, selected, tempData) {
|
||||||
|
this.selected = selected;
|
||||||
// 如果不是断点激活,而是第一次显示,则需要设置初始值
|
// 如果不是断点激活,而是第一次显示,则需要设置初始值
|
||||||
if (!this.dialogShow) {
|
if (!this.dialogShow) {
|
||||||
this.signalName = '';
|
this.signalName = '';
|
||||||
@ -161,30 +135,40 @@ export default {
|
|||||||
this.row = row;
|
this.row = row;
|
||||||
if (row) {
|
if (row) {
|
||||||
// 恢复进路区段的切除状态
|
// 恢复进路区段的切除状态
|
||||||
|
this.row.canSetting = true;
|
||||||
this.restoreBeforeDevices();
|
this.restoreBeforeDevices();
|
||||||
|
const containSectionList = [];
|
||||||
if (row.canSetting) {
|
if (!row.setting) {
|
||||||
// 设置选中区段为切除状态
|
// 设置选中区段为切除状态
|
||||||
if (row.containSectionList && row.containSectionList.length) {
|
if (row.routeSectionList && row.routeSectionList.length) {
|
||||||
// 设置新选的进路区段为切除状态
|
row.routeSectionList.forEach(elem => {
|
||||||
row.containSectionList.forEach(elem => {
|
const section = deepAssign({}, this.$store.getters['map/getDeviceByCode'](elem));
|
||||||
elem.cutOff = true;
|
if (section.logicSectionCodeList && section.logicSectionCodeList.length) {
|
||||||
|
section.logicSectionCodeList.forEach(item => {
|
||||||
|
const sec = deepAssign({}, this.$store.getters['map/getDeviceByCode'](item));
|
||||||
|
sec.cutOff = true;
|
||||||
|
containSectionList.push(sec);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
section.cutOff = true;
|
||||||
|
containSectionList.push(section);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$store.dispatch('training/updateMapState', [...row.containSectionList]);
|
this.$store.dispatch('training/updateMapState', [...containSectionList]);
|
||||||
this.beforeSectionList = row.containSectionList || [];
|
this.beforeSectionList = containSectionList || [];
|
||||||
|
|
||||||
// 设置选中指令
|
// 设置选中指令
|
||||||
const operate = {
|
const operate = {
|
||||||
operation: OperationEvent.Signal.arrangementRoute.choose.operation,
|
operation: OperationEvent.Signal.arrangementRoute.choose.operation,
|
||||||
val: row.code,
|
val: row.code,
|
||||||
param: {
|
param: {
|
||||||
Route_Code: row.code
|
routeCode: row.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
}
|
}
|
||||||
@ -194,30 +178,25 @@ export default {
|
|||||||
},
|
},
|
||||||
commit() {
|
commit() {
|
||||||
if (this.row && this.row.canSetting) {
|
if (this.row && this.row.canSetting) {
|
||||||
let names = '';
|
|
||||||
if (this.row.overlapSectionList && this.row.overlapSectionList.length > 0) {
|
|
||||||
names = names + this.row.overlapSectionList.map(elem => { return elem.name; }).join('');
|
|
||||||
}
|
|
||||||
if (this.row.overlapSwitchList && this.row.overlapSwitchList.length > 0) {
|
|
||||||
names = names + this.row.overlapSwitchList.map(elem => { return elem.name; }).join('');
|
|
||||||
}
|
|
||||||
const operate = {
|
const operate = {
|
||||||
|
over: true,
|
||||||
operation: OperationEvent.Signal.arrangementRoute.menu.operation,
|
operation: OperationEvent.Signal.arrangementRoute.menu.operation,
|
||||||
messages: [this.$t('menu.accessSetting') + this.$t('global.colon') + `${this.row.name}${names}(${this.row.stationName})`]
|
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE,
|
||||||
|
param: {
|
||||||
|
routeCode: this.row.code
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
|
||||||
this.$refs.confirmControl.doShow(operate);
|
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -226,7 +205,7 @@ export default {
|
|||||||
operation: OperationEvent.Command.cancel.menu.operation
|
operation: OperationEvent.Command.cancel.menu.operation
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
|
@ -109,16 +109,16 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
Center: [
|
Center: [
|
||||||
// {
|
{
|
||||||
// label: this.$t('menu.menuSignal.routeSelect'),
|
label: '排列进路',
|
||||||
// handler: this.arrangementRoute,
|
handler: this.arrangementRoute,
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE
|
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// label: this.$t('menu.menuSignal.routeCancel'),
|
label: '取消进路',
|
||||||
// handler: this.cancelTrainRoute,
|
handler: this.cancelTrainRoute,
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE
|
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
label: '封锁信号',
|
label: '封锁信号',
|
||||||
handler: this.lock,
|
handler: this.lock,
|
||||||
@ -183,6 +183,9 @@ export default {
|
|||||||
...mapGetters('menuOperation', [
|
...mapGetters('menuOperation', [
|
||||||
'buttonOperation'
|
'buttonOperation'
|
||||||
]),
|
]),
|
||||||
|
...mapGetters('map', [
|
||||||
|
'routeList'
|
||||||
|
]),
|
||||||
group() {
|
group() {
|
||||||
return this.$route.query.group;
|
return this.$route.query.group;
|
||||||
}
|
}
|
||||||
@ -230,10 +233,10 @@ export default {
|
|||||||
operation: OperationEvent.Signal.stoppage.menu.operation,
|
operation: OperationEvent.Signal.stoppage.menu.operation,
|
||||||
cmdType: CMD.Signal.CMD_SIGNAL_ADD_FAULT,
|
cmdType: CMD.Signal.CMD_SIGNAL_ADD_FAULT,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
} else {
|
} else {
|
||||||
@ -251,10 +254,10 @@ export default {
|
|||||||
operation: OperationEvent.Signal.cancelStoppage.menu.operation,
|
operation: OperationEvent.Signal.cancelStoppage.menu.operation,
|
||||||
cmdType: CMD.Signal.CMD_SIGNAL_REMOVE_FAULT,
|
cmdType: CMD.Signal.CMD_SIGNAL_REMOVE_FAULT,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
} else {
|
} else {
|
||||||
@ -271,17 +274,24 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.arrangementRoute.menu.operation,
|
operation: OperationEvent.Signal.arrangementRoute.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
if (valid) {
|
if (valid) {
|
||||||
querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
// querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
||||||
const tempData = resp.data;
|
// const tempData = resp.data;
|
||||||
this.$refs.routeSelection.doShow(step.operation, this.selected, tempData);
|
// this.$refs.routeSelection.doShow(step.operation, this.selected, tempData);
|
||||||
|
// });
|
||||||
|
const routes = [];
|
||||||
|
this.routeList.forEach(elem => {
|
||||||
|
if (elem.startSignalCode === this.selected.code) {
|
||||||
|
routes.push(elem);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
this.$refs.routeSelection.doShow(step.operation, this.selected, routes);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$refs.noticeInfo.doShow(step);
|
this.$refs.noticeInfo.doShow(step);
|
||||||
@ -294,10 +304,10 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.cancelTrainRoute.menu.operation,
|
operation: OperationEvent.Signal.cancelTrainRoute.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
this.$refs.routeControl.doShow(step, this.selected);
|
||||||
@ -308,17 +318,17 @@ export default {
|
|||||||
lock() {
|
lock() {
|
||||||
const step = {
|
const step = {
|
||||||
start: true,
|
start: true,
|
||||||
code: `${this.selected.code}`,
|
code: this.selected.code,
|
||||||
operation: OperationEvent.Signal.lock.menu.operation,
|
operation: OperationEvent.Signal.lock.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: this.selected.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.routeLock.doShow(step.operation, this.selected);
|
this.$refs.routeLock.doShow(step, this.selected);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$refs.noticeInfo.doShow(step);
|
this.$refs.noticeInfo.doShow(step);
|
||||||
@ -331,10 +341,10 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.unlock.menu.operation,
|
operation: OperationEvent.Signal.unlock.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.routeCmdControl.doShow(step, this.selected);
|
this.$refs.routeCmdControl.doShow(step, this.selected);
|
||||||
@ -348,10 +358,10 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.reopenSignal.menu.operation,
|
operation: OperationEvent.Signal.reopenSignal.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
this.$refs.routeControl.doShow(step, this.selected);
|
||||||
@ -365,10 +375,10 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.guide.menu.operation,
|
operation: OperationEvent.Signal.guide.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs.routeCmdControl.doShow(step, this.selected);
|
this.$refs.routeCmdControl.doShow(step, this.selected);
|
||||||
@ -382,10 +392,10 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.setAutoInterlock.menu.operation,
|
operation: OperationEvent.Signal.setAutoInterlock.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
this.$refs.routeControl.doShow(step, this.selected);
|
||||||
@ -399,10 +409,10 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.cancelAutoInterlock.menu.operation,
|
operation: OperationEvent.Signal.cancelAutoInterlock.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
this.$refs.routeControl.doShow(step, this.selected);
|
||||||
@ -413,13 +423,15 @@ export default {
|
|||||||
setAutoTrigger() {
|
setAutoTrigger() {
|
||||||
const step = {
|
const step = {
|
||||||
start: true,
|
start: true,
|
||||||
|
over: true,
|
||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.setAutoTrigger.menu.operation,
|
operation: OperationEvent.Signal.setAutoTrigger.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
},
|
||||||
|
cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO_TRIGGER
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
this.$refs.routeControl.doShow(step, this.selected);
|
||||||
@ -433,10 +445,10 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.cancelAutoTrigger.menu.operation,
|
operation: OperationEvent.Signal.cancelAutoTrigger.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
this.$refs.routeControl.doShow(step, this.selected);
|
||||||
@ -450,10 +462,10 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.signalClose.menu.operation,
|
operation: OperationEvent.Signal.signalClose.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
this.$refs.routeControl.doShow(step, this.selected);
|
||||||
@ -467,37 +479,50 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.humanControl.menu.operation,
|
operation: OperationEvent.Signal.humanControl.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid, response }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid, response }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
const routes = [];
|
||||||
querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
this.routeList.forEach(elem => {
|
||||||
const tempData = resp.data;
|
if (elem.startSignalCode === this.selected.code) {
|
||||||
this.$refs.routeHandControl.doShow(step, this.selected, tempData);
|
routes.push(elem);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
|
this.$refs.routeHandControl.doShow(step, this.selected, routes);
|
||||||
|
// querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
||||||
|
// const tempData = resp.data;
|
||||||
|
// this.$refs.routeHandControl.doShow(step, this.selected, tempData);
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 自排关(进路交ATS自动控)
|
// 自排开(进路交ATS自动控)
|
||||||
atsAutoControl() {
|
atsAutoControl() {
|
||||||
const step = {
|
const step = {
|
||||||
start: true,
|
start: true,
|
||||||
Signal_Code: `${this.selected.code}`,
|
|
||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.Signal.atsAutoControl.menu.operation,
|
operation: OperationEvent.Signal.atsAutoControl.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
Signal_Code: `${this.selected.code}`
|
signalCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid, response }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid, response }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
const routes = [];
|
||||||
querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
this.routeList.forEach(elem => {
|
||||||
const tempData = resp.data;
|
if (elem.startSignalCode === this.selected.code) {
|
||||||
this.$refs.routeHandControl.doShow(step, this.selected, tempData);
|
routes.push(elem);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
|
this.$refs.routeHandControl.doShow(step, this.selected, routes);
|
||||||
|
// querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
||||||
|
// const tempData = resp.data;
|
||||||
|
// this.$refs.routeHandControl.doShow(step, this.selected, tempData);
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -179,8 +179,9 @@ export default {
|
|||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.confirmControl.doShow(operate);
|
this.$refs.confirmControl.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号重开
|
// 信号重开
|
||||||
@ -200,7 +201,7 @@ export default {
|
|||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate,[error.message]);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置通过模式
|
// 设置通过模式
|
||||||
@ -240,7 +241,7 @@ export default {
|
|||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate,[error.message]);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消
|
// 取消
|
||||||
|
@ -41,8 +41,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="status" label="控制状态" width="180">
|
<el-table-column prop="status" label="控制状态" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.controlType == '01'">自动(不进行冲突检测)</span>
|
<!-- <span v-if="scope.row.controlType == '01'">自动(不进行冲突检测)</span>
|
||||||
<span v-else>人工</span>
|
<span v-else>人工</span> -->
|
||||||
|
{{ scope.row.atsControl == '0' ? '人工' : '自动' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -162,7 +162,7 @@ export default {
|
|||||||
|
|
||||||
if (tempData && tempData.length > 0) {
|
if (tempData && tempData.length > 0) {
|
||||||
tempData.forEach(elem => {
|
tempData.forEach(elem => {
|
||||||
elem.check = false;
|
this.changeList.push(false);
|
||||||
elem.disabled = false;
|
elem.disabled = false;
|
||||||
// 设置禁用状态
|
// 设置禁用状态
|
||||||
if (operate.operation === OperationEvent.Signal.humanControl.menu.operation &&
|
if (operate.operation === OperationEvent.Signal.humanControl.menu.operation &&
|
||||||
|
@ -145,10 +145,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
@ -91,22 +91,6 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getProtectedSectionName(row) {
|
|
||||||
let name = '';
|
|
||||||
if (row &&
|
|
||||||
row.overlapSectionList &&
|
|
||||||
row.overlapSectionList &&
|
|
||||||
row.overlapSectionList.length > 0) {
|
|
||||||
|
|
||||||
const protect = row.overlapSectionList[0];
|
|
||||||
name = `${protect.name}`;
|
|
||||||
const station = this.$store.getters['map/getDeviceByCode'](protect.stationCode);
|
|
||||||
if (station) {
|
|
||||||
name = `${name}(${station.name})`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return name;
|
|
||||||
},
|
|
||||||
expandPath() {
|
expandPath() {
|
||||||
console.log('展开进路预览');
|
console.log('展开进路预览');
|
||||||
},
|
},
|
||||||
@ -164,7 +148,7 @@ export default {
|
|||||||
// 设置新选的进路区段为切除状态
|
// 设置新选的进路区段为切除状态
|
||||||
row.routeSectionList.forEach(elem => {
|
row.routeSectionList.forEach(elem => {
|
||||||
const section = deepAssign({}, this.$store.getters['map/getDeviceByCode'](elem));
|
const section = deepAssign({}, this.$store.getters['map/getDeviceByCode'](elem));
|
||||||
if (section.logicSectionCodeList && section.logicSectionCodeList.length){
|
if (section.logicSectionCodeList && section.logicSectionCodeList.length) {
|
||||||
section.logicSectionCodeList.forEach(item => {
|
section.logicSectionCodeList.forEach(item => {
|
||||||
const sec = deepAssign({}, this.$store.getters['map/getDeviceByCode'](item));
|
const sec = deepAssign({}, this.$store.getters['map/getDeviceByCode'](item));
|
||||||
sec.cutOff = true;
|
sec.cutOff = true;
|
||||||
@ -210,10 +194,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -214,10 +214,10 @@ export default {
|
|||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 批量取消扣车
|
// 批量取消扣车
|
||||||
@ -251,10 +251,10 @@ export default {
|
|||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
@ -314,10 +314,10 @@ export default {
|
|||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancelDetainTrainAuto() { // 取消区间自动扣车
|
cancelDetainTrainAuto() { // 取消区间自动扣车
|
||||||
@ -338,10 +338,10 @@ export default {
|
|||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置扣车
|
// 设置扣车
|
||||||
@ -363,10 +363,10 @@ export default {
|
|||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消扣车
|
// 取消扣车
|
||||||
@ -388,10 +388,10 @@ export default {
|
|||||||
if (!valid) {
|
if (!valid) {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 提前发车
|
// 提前发车
|
||||||
|
@ -245,7 +245,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
@ -261,7 +261,7 @@ export default {
|
|||||||
operation: OperationEvent.Command.cancel.menu.operation
|
operation: OperationEvent.Command.cancel.menu.operation
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
|
@ -257,10 +257,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消跳停
|
// 取消跳停
|
||||||
@ -285,10 +285,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
@ -296,7 +296,7 @@ export default {
|
|||||||
cmdType: CMD.Stand.CMD_STAND_SET_RUN_TIME,
|
cmdType: CMD.Stand.CMD_STAND_SET_RUN_TIME,
|
||||||
param: {
|
param: {
|
||||||
runLevelTime: this.time,
|
runLevelTime: this.time,
|
||||||
parkingAlwaysValid: this.tempData[0].check
|
runLevelTimeForever: !!this.tempData[0].check
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -306,9 +306,10 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<el-radio :id="control === '02'? '': domIdChoose1" label="02">全人工</el-radio>
|
<el-radio :id="control === '02'? '': domIdChoose1" label="02">全人工</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-input-number
|
<!-- <el-input-number
|
||||||
:id="domIdInput"
|
:id="domIdInput"
|
||||||
v-model="time"
|
v-model="time"
|
||||||
:disabled="disabledInput"
|
:disabled="disabledInput"
|
||||||
@ -31,15 +31,15 @@
|
|||||||
style="width: 130px; padding-left:30px;display: block; float: left; margin-top: 15px;"
|
style="width: 130px; padding-left:30px;display: block; float: left; margin-top: 15px;"
|
||||||
@change="inputTime"
|
@change="inputTime"
|
||||||
/>
|
/>
|
||||||
<div style="float: left;margin-top: 22px; margin-left: 5px;">秒</div>
|
<div style="float: left;margin-top: 22px; margin-left: 5px;">秒</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 10px 15px; border: 1px double lightgray; height: 60px;">
|
<div style="padding: 10px 15px; border: 1px double lightgray; height: 60px;">
|
||||||
<span class="base-label" style="left: -9px;">有效次数</span>
|
<span class="base-label" style="left: -9px;">有效次数</span>
|
||||||
<div style=" position: relative; top:-10px;">
|
<div style=" position: relative; top:-10px;">
|
||||||
<el-radio-group v-model="effective" :disabled="disabledTime" @change="chooseEffective">
|
<el-radio-group v-model="effective" :disabled="disabledTime" @change="chooseEffective">
|
||||||
<el-radio :id="effective === false? '': domIdChoose2" :label="false">一次有效</el-radio>
|
<el-radio :id="effective === 0? '': domIdChoose2" label="0" name="effective">一次有效</el-radio>
|
||||||
<el-radio :id="effective === true? '': domIdChoose2" :label="true">一直有效</el-radio>
|
<el-radio :id="effective === 1? '': domIdChoose2" label="1" name="effective">一直有效</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -72,10 +72,10 @@ export default {
|
|||||||
return {
|
return {
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
time: 0,
|
// time: 0,
|
||||||
control: '01',
|
control: '01',
|
||||||
direction: '01',
|
direction: '01',
|
||||||
effective: false,
|
effective: '0',
|
||||||
selected: null,
|
selected: null,
|
||||||
standName: '',
|
standName: '',
|
||||||
stationName: ''
|
stationName: ''
|
||||||
@ -143,9 +143,9 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.control = Number(tempDate.parkingTime) === -1 ? '01' : '02';
|
this.control = Number(tempDate.parkingTime) === -1 ? '01' : '02';
|
||||||
this.time = Number(tempDate.parkingTime) === -1 ? 15 : Number(tempDate.parkingTime);
|
// this.time = Number(tempDate.parkingTime) === -1 ? 15 : Number(tempDate.parkingTime);
|
||||||
// this.effective = tempDate.parkingValidStatus ? true : false;
|
// this.effective = tempDate.parkingValidStatus ? true : false;
|
||||||
this.effective = tempDate.parkingValidStatus;
|
this.effective = tempDate.parkingValidStatus ? '1' : '0';
|
||||||
this.direction = selected.direction;
|
this.direction = selected.direction;
|
||||||
}
|
}
|
||||||
this.dialogShow = true;
|
this.dialogShow = true;
|
||||||
@ -163,7 +163,7 @@ export default {
|
|||||||
/** 自动时的默认时间*/
|
/** 自动时的默认时间*/
|
||||||
if (control == '01') {
|
if (control == '01') {
|
||||||
this.inputTime = 15;
|
this.inputTime = 15;
|
||||||
this.effective = true;
|
this.effective = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
const operate = {
|
const operate = {
|
||||||
@ -187,18 +187,18 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
inputTime() {
|
// inputTime() {
|
||||||
const operate = {
|
// const operate = {
|
||||||
repeat: true,
|
// repeat: true,
|
||||||
operation: OperationEvent.StationStand.setStopTime.input.operation
|
// operation: OperationEvent.StationStand.setStopTime.input.operation
|
||||||
};
|
// };
|
||||||
|
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
// this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
// if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
},
|
// },
|
||||||
commit() {
|
commit() {
|
||||||
const operate = {
|
const operate = {
|
||||||
send: true,
|
send: true,
|
||||||
@ -206,8 +206,8 @@ export default {
|
|||||||
cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME,
|
cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME,
|
||||||
param: {
|
param: {
|
||||||
parkingTime: this.control == '01' ? -1 : 1,
|
parkingTime: this.control == '01' ? -1 : 1,
|
||||||
runLevelTime: this.time,
|
// runLevelTime: this.time,
|
||||||
parkingAlwaysValid: this.effective
|
parkingAlwaysValid: this.effective == '1'
|
||||||
}
|
}
|
||||||
// messages: [`停站时间: ${this.stationName} - ${this.standName}, 停站时间为${this.control == '01' ? '自动' : this.time + '秒'}, 有效次数为${this.effective == false ? '一次有效' : '一直有效'}`]
|
// messages: [`停站时间: ${this.stationName} - ${this.standName}, 停站时间为${this.control == '01' ? '自动' : this.time + '秒'}, 有效次数为${this.effective == false ? '一次有效' : '一直有效'}`]
|
||||||
};
|
};
|
||||||
@ -220,9 +220,10 @@ export default {
|
|||||||
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
// this.$refs.confirmControl.doShow(operate);
|
// this.$refs.confirmControl.doShow(operate);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
|
@ -138,7 +138,7 @@ export default {
|
|||||||
pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
|
pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
|
||||||
pointdata.color = '#000' || lineStyle.color;
|
pointdata.color = '#000' || lineStyle.color;
|
||||||
pointdata.directionCode = train.directionCode;
|
pointdata.directionCode = train.directionCode;
|
||||||
pointdata.coord = [train.stationTimeList[1].secondTime || train.stationTimeList[1].second, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
|
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.directionCode, false)];
|
||||||
|
|
||||||
/** 给服务对象添加服务名称和标记点*/
|
/** 给服务对象添加服务名称和标记点*/
|
||||||
opt.markPointData.push(createMartPoint(pointdata));
|
opt.markPointData.push(createMartPoint(pointdata));
|
||||||
@ -150,10 +150,10 @@ export default {
|
|||||||
train.stationTimeList.forEach((elem, index) => {
|
train.stationTimeList.forEach((elem, index) => {
|
||||||
idx = index;
|
idx = index;
|
||||||
if (index == 0 && train.stationTimeList[index].stationCode != train.stationTimeList[index + 1].stationCode ||
|
if (index == 0 && train.stationTimeList[index].stationCode != train.stationTimeList[index + 1].stationCode ||
|
||||||
index == train.stationTimeList.length - 2 && (train.stationTimeList[index].second||train.stationTimeList[index].secondTime) != (train.stationTimeList[index + 1].second || train.stationTimeList[index + 1].secondTime) ||
|
index == train.stationTimeList.length - 2 && train.stationTimeList[index].secondTime != train.stationTimeList[index + 1].secondTime ||
|
||||||
index > 0 && index < train.stationTimeList.length - 1) {
|
index > 0 && index < train.stationTimeList.length - 1) {
|
||||||
const aa = `${train.directionCode}${train.tripNumber}`;
|
const aa = `${train.directionCode}${train.tripNumber}`;
|
||||||
opt.data.push([elem.secondTime || elem.second, this.getCoordYByElem(stations, kmRangeCoordMap, elem, elem.directionCode, false), elem.stationCode, aa]);
|
opt.data.push([elem.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, elem, elem.directionCode, false), elem.stationCode, aa]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -162,8 +162,8 @@ export default {
|
|||||||
lastPoint = train.stationTimeList[idx - 1];
|
lastPoint = train.stationTimeList[idx - 1];
|
||||||
nextPoint = service.tripNumberDataList[j + 1].stationTimeList[1];
|
nextPoint = service.tripNumberDataList[j + 1].stationTimeList[1];
|
||||||
num = this.computedReentryNumber(train.tripNumber);
|
num = this.computedReentryNumber(train.tripNumber);
|
||||||
opt.data.push([lastPoint.secondTime || lastPoint.second, this.getCoordYByElem(stations, kmRangeCoordMap, lastPoint, train.directionCode, true, num), lastPoint.stationCode]);
|
opt.data.push([lastPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, lastPoint, train.directionCode, true, num), lastPoint.stationCode]);
|
||||||
opt.data.push([nextPoint.secondTime || nextPoint.second, this.getCoordYByElem(stations, kmRangeCoordMap, nextPoint, train.directionCode, true, num), nextPoint.stationCode]);
|
opt.data.push([nextPoint.secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, nextPoint, train.directionCode, true, num), nextPoint.stationCode]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 如果是备用车,按车次添加线*/
|
/** 如果是备用车,按车次添加线*/
|
||||||
@ -222,21 +222,21 @@ export default {
|
|||||||
|
|
||||||
runPlanData[elem.serviceNumber][elem.tripNumber].push(elem);
|
runPlanData[elem.serviceNumber][elem.tripNumber].push(elem);
|
||||||
runPlanData[elem.serviceNumber][elem.tripNumber].sort((a, b) => {
|
runPlanData[elem.serviceNumber][elem.tripNumber].sort((a, b) => {
|
||||||
return parseInt(a.second || a.secondTime) - parseInt(b.second || b.secondTime);
|
return parseInt(a.secondTime) - parseInt(b.secondTime);
|
||||||
});
|
});
|
||||||
|
|
||||||
/** 如果此记录车组号的数据为第一条时,则打上标签*/
|
/** 如果此记录车组号的数据为第一条时,则打上标签*/
|
||||||
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
|
if (runPlanData[elem.serviceNumber][elem.tripNumber].length <= 1) {
|
||||||
serie.markPoint.data.push(createMartPoint({
|
serie.markPoint.data.push(createMartPoint({
|
||||||
directionCode: elem.directionCode,
|
directionCode: elem.directionCode,
|
||||||
coord: [parseInt(elem.second || elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
|
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
|
||||||
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.directionCode}${elem.tripNumber}`,
|
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.directionCode}${elem.tripNumber}`,
|
||||||
color: lineStyle.color || '#000'
|
color: lineStyle.color || '#000'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 计算折返点*/
|
/** 计算折返点*/
|
||||||
var nextPoint = [parseInt(elem.second || elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false), elem.directionCode];
|
var nextPoint = [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false), elem.directionCode];
|
||||||
if (serie.data.length > 0) {
|
if (serie.data.length > 0) {
|
||||||
var lastPoint = serie.data[serie.data.length - 1];
|
var lastPoint = serie.data[serie.data.length - 1];
|
||||||
if (lastPoint[2] !== nextPoint[2]) {
|
if (lastPoint[2] !== nextPoint[2]) {
|
||||||
|
@ -498,6 +498,11 @@ const map = {
|
|||||||
state.mapDevice = {};
|
state.mapDevice = {};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
updateMapDevice: (state, list) => {
|
||||||
|
list.forEach(elem => {
|
||||||
|
state.mapDevice[elem.code] = deepAssign(state.mapDevice[elem.code] || {}, elem);
|
||||||
|
})
|
||||||
|
},
|
||||||
setMapConfig: (state, config) => {
|
setMapConfig: (state, config) => {
|
||||||
state.mapConfig = config;
|
state.mapConfig = config;
|
||||||
},
|
},
|
||||||
@ -624,6 +629,9 @@ const map = {
|
|||||||
setMapData: ({ commit }, map) => { // 设置地图数据
|
setMapData: ({ commit }, map) => { // 设置地图数据
|
||||||
commit('setMapData', map);
|
commit('setMapData', map);
|
||||||
},
|
},
|
||||||
|
updateMapDevice: ({ commit }, list) => {
|
||||||
|
commit('updateMapDevice', list);
|
||||||
|
},
|
||||||
setMapConfig: ({ commit }, config) => { // 设置地图所属线路
|
setMapConfig: ({ commit }, config) => { // 设置地图所属线路
|
||||||
commit('setMapConfig', config);
|
commit('setMapConfig', config);
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@ export function getBaseUrl() {
|
|||||||
let BASE_API;
|
let BASE_API;
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// BASE_API = 'https://joylink.club/jlcloud';
|
// BASE_API = 'https://joylink.club/jlcloud';
|
||||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
BASE_API = 'https://test.joylink.club/jlcloud';
|
||||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||||
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||||
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||||
|
@ -22,6 +22,7 @@ export function creatSubscribe(topic, header) {
|
|||||||
function callback(Response) {
|
function callback(Response) {
|
||||||
if (store) {
|
if (store) {
|
||||||
var data = JSON.parse(Response.body);
|
var data = JSON.parse(Response.body);
|
||||||
|
console.log(data);
|
||||||
store.dispatch('socket/setStomp', data);
|
store.dispatch('socket/setStomp', data);
|
||||||
} else {
|
} else {
|
||||||
callback(Response);
|
callback(Response);
|
||||||
|
@ -235,7 +235,6 @@
|
|||||||
if (this.myChart && this.myChart.isDisposed) {
|
if (this.myChart && this.myChart.isDisposed) {
|
||||||
this.myChart.clear();
|
this.myChart.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
let startValue = 3600 + this.PlanConvert.TranslationTime;
|
let startValue = 3600 + this.PlanConvert.TranslationTime;
|
||||||
const offsetTime = 3600;
|
const offsetTime = 3600;
|
||||||
const initTime = toTimeStamp(formatDuring(this.$store.state.training.initTime));
|
const initTime = toTimeStamp(formatDuring(this.$store.state.training.initTime));
|
||||||
@ -254,7 +253,6 @@
|
|||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
updateRunPlanData(data) {
|
updateRunPlanData(data) {
|
||||||
const stations = this.$store.state.runPlan.stations;
|
const stations = this.$store.state.runPlan.stations;
|
||||||
@ -267,6 +265,9 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (data[0]) {
|
||||||
|
data[0].secondTime = data[0].second;
|
||||||
|
}
|
||||||
this.series = this.PlanConvert.updateDataToModels(data, stations, this.kmRangeCoordMap,
|
this.series = this.PlanConvert.updateDataToModels(data, stations, this.kmRangeCoordMap,
|
||||||
planData, this.series, { color: '#FF00DE', width: 0.5 }
|
planData, this.series, { color: '#FF00DE', width: 0.5 }
|
||||||
);
|
);
|
||||||
|
@ -175,6 +175,20 @@ export default {
|
|||||||
this.$messageBox(this.$t('error.runningChartDataError') + ',' + this.$t('error.startSimulationFailed'));
|
this.$messageBox(this.$t('error.runningChartDataError') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
} else if (error.code == '5003') {
|
} else if (error.code == '5003') {
|
||||||
this.$messageBox(this.$t('error.runningChartIsNotLoaded') + ',' + this.$t('error.startSimulationFailed'));
|
this.$messageBox(this.$t('error.runningChartIsNotLoaded') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '5004') {
|
||||||
|
this.$messageBox(this.$t('error.runningDataError') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '5000') {
|
||||||
|
this.$messageBox(this.$t('error.systemError') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4000') {
|
||||||
|
this.$messageBox(this.$t('error.simulationDoesNotExist') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4001') {
|
||||||
|
this.$messageBox(this.$t('error.simulationOperationIsNotDefined') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4002') {
|
||||||
|
this.$messageBox(this.$t('error.simulationOperationProcessingMethodNotFound') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4003') {
|
||||||
|
this.$messageBox(this.$t('error.simulationOperationFailed') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4004') {
|
||||||
|
this.$messageBox(this.$t('error.operationConflict') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -33,9 +33,8 @@ import FaultChoose from './demon/faultChoose';
|
|||||||
import AddQuest from './demon/addQuest';
|
import AddQuest from './demon/addQuest';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { OperateMode } from '@/scripts/ConstDic';
|
import { OperateMode } from '@/scripts/ConstDic';
|
||||||
import { getStationList, queryRunPlan } from '@/api/runplan';
|
import { getStationList } from '@/api/runplan';
|
||||||
import { getEveryDayRunPlanNew } from '@/api/simulation';
|
import { getEveryDayRunPlanNew } from '@/api/simulation';
|
||||||
import {getRpDetailByUserMapId} from '@/api/designPlatform';
|
|
||||||
|
|
||||||
// 右上角操作
|
// 右上角操作
|
||||||
export default {
|
export default {
|
||||||
@ -121,7 +120,6 @@ export default {
|
|||||||
this.$messageBox(this.$t('display.schema.getRunDiagramFail'));
|
this.$messageBox(this.$t('display.schema.getRunDiagramFail'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$messageBox(this.$t('display.schema.getStationListFail'));
|
this.$messageBox(this.$t('display.schema.getStationListFail'));
|
||||||
|
@ -114,6 +114,20 @@ export default {
|
|||||||
this.$messageBox(this.$t('error.runningChartDataError') + ',' + this.$t('error.startSimulationFailed'));
|
this.$messageBox(this.$t('error.runningChartDataError') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
} else if (error.code == '5003') {
|
} else if (error.code == '5003') {
|
||||||
this.$messageBox(this.$t('error.runningChartIsNotLoaded') + ',' + this.$t('error.startSimulationFailed'));
|
this.$messageBox(this.$t('error.runningChartIsNotLoaded') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '5004') {
|
||||||
|
this.$messageBox(this.$t('error.runningDataError') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '5000') {
|
||||||
|
this.$messageBox(this.$t('error.systemError') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4000') {
|
||||||
|
this.$messageBox(this.$t('error.simulationDoesNotExist') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4001') {
|
||||||
|
this.$messageBox(this.$t('error.simulationOperationIsNotDefined') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4002') {
|
||||||
|
this.$messageBox(this.$t('error.simulationOperationProcessingMethodNotFound') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4003') {
|
||||||
|
this.$messageBox(this.$t('error.simulationOperationFailed') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4004') {
|
||||||
|
this.$messageBox(this.$t('error.operationConflict') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -296,6 +296,20 @@ export default {
|
|||||||
this.$messageBox(this.$t('error.runningChartDataError') + ',' + this.$t('error.startSimulationFailed'));
|
this.$messageBox(this.$t('error.runningChartDataError') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
} else if (error.code == '5003') {
|
} else if (error.code == '5003') {
|
||||||
this.$messageBox(this.$t('error.runningChartIsNotLoaded') + ',' + this.$t('error.startSimulationFailed'));
|
this.$messageBox(this.$t('error.runningChartIsNotLoaded') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '5004') {
|
||||||
|
this.$messageBox(this.$t('error.runningDataError') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '5000') {
|
||||||
|
this.$messageBox(this.$t('error.systemError') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4000') {
|
||||||
|
this.$messageBox(this.$t('error.simulationDoesNotExist') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4001') {
|
||||||
|
this.$messageBox(this.$t('error.simulationOperationIsNotDefined') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4002') {
|
||||||
|
this.$messageBox(this.$t('error.simulationOperationProcessingMethodNotFound') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4003') {
|
||||||
|
this.$messageBox(this.$t('error.simulationOperationFailed') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
|
} else if (error.code == '4004') {
|
||||||
|
this.$messageBox(this.$t('error.operationConflict') + ',' + this.$t('error.startSimulationFailed'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -201,6 +201,7 @@ export default {
|
|||||||
{ prop: 'leftStopPointOffset', label: this.$t('map.leftStopPointOffset'), type: 'number', min: 0, disabled: true, isHidden: !this.isStopPointOffset },
|
{ prop: 'leftStopPointOffset', label: this.$t('map.leftStopPointOffset'), type: 'number', min: 0, disabled: true, isHidden: !this.isStopPointOffset },
|
||||||
{ prop: 'rightStopPointOffset', label: this.$t('map.rightStopPointOffset'), type: 'number', min: 0, disabled: true, isHidden: !this.isStopPointOffset },
|
{ prop: 'rightStopPointOffset', label: this.$t('map.rightStopPointOffset'), type: 'number', min: 0, disabled: true, isHidden: !this.isStopPointOffset },
|
||||||
{ prop: 'region', label: this.$t('map.sectionColon'), type: 'select', optionLabel: 'label', optionValue: 'value', options: this.regionList, isHidden: !this.sectionColonShow },
|
{ prop: 'region', label: this.$t('map.sectionColon'), type: 'select', optionLabel: 'label', optionValue: 'value', options: this.regionList, isHidden: !this.sectionColonShow },
|
||||||
|
{ prop: 'trainWindowCode', label: '关联车次窗', type: 'input', disabled: true},
|
||||||
{ prop: 'kmRangeLeft', label: this.$t('map.leftKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') },
|
{ prop: 'kmRangeLeft', label: this.$t('map.leftKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') },
|
||||||
{ prop: 'kmRangeRight', label: this.$t('map.rightKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') }
|
{ prop: 'kmRangeRight', label: this.$t('map.rightKilometerMark'), type: 'number', min: 0, placeholder: this.$t('map.meter') }
|
||||||
]
|
]
|
||||||
@ -396,6 +397,7 @@ export default {
|
|||||||
this.deviceSelect(this.$store.getters['map/getDeviceByCode'](code));
|
this.deviceSelect(this.$store.getters['map/getDeviceByCode'](code));
|
||||||
},
|
},
|
||||||
deviceSelect(selected) {
|
deviceSelect(selected) {
|
||||||
|
console.log(selected, '===========');
|
||||||
// 判断是否激活选择站台
|
// 判断是否激活选择站台
|
||||||
if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase()) {
|
if (selected && selected._type.toUpperCase() === 'Section'.toUpperCase()) {
|
||||||
if (this.field === 'leftSection') {
|
if (this.field === 'leftSection') {
|
||||||
|
Loading…
Reference in New Issue
Block a user