Merge branch 'dev' of https://git.code.tencent.com/lian-cbtc/jl-client into dev
# Conflicts: # src/jmapNew/config/skinCode/ningbo_01.js # src/store/modules/socket.js
This commit is contained in:
commit
e46239c8b9
@ -502,7 +502,7 @@ class SkinCode extends defaultStyle {
|
|||||||
trainTargetTextAlign: 'left'// 车次号文字显示位置
|
trainTargetTextAlign: 'left'// 车次号文字显示位置
|
||||||
},
|
},
|
||||||
trainTargetNumber: {
|
trainTargetNumber: {
|
||||||
trainTargetNumberOffset: { x: 0, y: 0 }// 车组号偏移量
|
trainTargetNumberOffset: { x: -4, y: 4 }// 车组号偏移量
|
||||||
},
|
},
|
||||||
trainHead: {
|
trainHead: {
|
||||||
trainMoreLength: 0, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
trainMoreLength: 0, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
||||||
|
@ -456,7 +456,7 @@ class SkinCode extends defaultStyle {
|
|||||||
trainTargetTextAlign: 'right' // 车次号文字显示位置
|
trainTargetTextAlign: 'right' // 车次号文字显示位置
|
||||||
},
|
},
|
||||||
trainTargetNumber: {
|
trainTargetNumber: {
|
||||||
trainTargetNumberOffset: {x: 0, y: 0}// 车组号偏移量
|
trainTargetNumberOffset: {x: -4, y: 4}// 车组号偏移量
|
||||||
},
|
},
|
||||||
trainHead: {
|
trainHead: {
|
||||||
trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
||||||
|
@ -469,7 +469,7 @@ class SkinCode extends defaultStyle {
|
|||||||
trainTargetTextAlign: 'right' // 车次号文字显示位置
|
trainTargetTextAlign: 'right' // 车次号文字显示位置
|
||||||
},
|
},
|
||||||
trainTargetNumber: {
|
trainTargetNumber: {
|
||||||
trainTargetNumberOffset: {x: 0, y: 0}// 车组号偏移量
|
trainTargetNumberOffset: {x: -4, y: 4}// 车组号偏移量
|
||||||
},
|
},
|
||||||
trainHead: {
|
trainHead: {
|
||||||
trainMoreLength: 0, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
trainMoreLength: 0, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
||||||
|
@ -477,7 +477,7 @@ class SkinCode extends defaultStyle {
|
|||||||
trainTargetNumber: {
|
trainTargetNumber: {
|
||||||
groupNumberPrefix: '000', // 车组号前缀
|
groupNumberPrefix: '000', // 车组号前缀
|
||||||
defaultGroupNumber: 'EEE', // 默认车组号
|
defaultGroupNumber: 'EEE', // 默认车组号
|
||||||
trainTargetNumberOffset: {x: 0, y: 1}// 车组号偏移量
|
trainTargetNumberOffset: {x: -1, y: 1}// 车组号偏移量
|
||||||
},
|
},
|
||||||
trainHead: {
|
trainHead: {
|
||||||
trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
||||||
|
@ -448,48 +448,64 @@ class SkinCode extends defaultStyle {
|
|||||||
|
|
||||||
this[deviceType.Train] = {
|
this[deviceType.Train] = {
|
||||||
trainBody: {
|
trainBody: {
|
||||||
trainBodyLineWidth: 0, // 车身line宽
|
trainBodyLineWidth: 2, // 车身line宽
|
||||||
changeTrainWidth: true, // 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度
|
changeTrainWidth: false, // 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度
|
||||||
specialTrainType: [
|
specialTrainType: [
|
||||||
{
|
{
|
||||||
type: '03',
|
type: '03',
|
||||||
serviceNumber: 'MM',
|
serviceNumber: 'MM',
|
||||||
nameFormat: 'serviceNumber:groupNumber'
|
nameFormat: 'tripNumber:serviceNumber:groupNumber'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: '02',
|
type: '02',
|
||||||
nameFormat: 'targetCode:groupNumber'
|
nameFormat: 'tripNumber:serviceNumber:groupNumber'
|
||||||
}
|
}
|
||||||
], // 特殊列车类型需设置显示格式
|
], // 特殊列车类型需设置显示格式
|
||||||
lrPadding: 1, // 两边间隔
|
lrPadding: 1, // 两边间隔
|
||||||
upPadding: 1, // 上边距离
|
upPadding: 1, // 上边距离
|
||||||
trainBodyFillColor: '#000000', // 列车车身填充颜色
|
trainBodyFillColor: '#000000', // 列车车身填充颜色
|
||||||
trainNameFormat: 'targetCode:serviceNumber:tripNumber'// 列车显示格式
|
trainNameFormat: 'tripNumber:serviceNumber:groupNumber'// 列车显示格式
|
||||||
},
|
},
|
||||||
hsda: {
|
hsda: {
|
||||||
trainHSDATextFontSize: 8// 列车HDSA字号
|
trainHSDATextFontSize: 8// 列车HDSA字号
|
||||||
},
|
},
|
||||||
|
trainAtrStatus: {
|
||||||
|
trainAtrStatusOffset: { x: 80, y: 9},
|
||||||
|
r: 5
|
||||||
|
},
|
||||||
|
travelSigns: {
|
||||||
|
trainTravelSignsOffset: { x:3, y: 3}
|
||||||
|
},
|
||||||
|
delayTime: {
|
||||||
|
trainDelayTimeOffset: { x:5, y: 14}
|
||||||
|
},
|
||||||
|
crewNum: {
|
||||||
|
trainCrewNumOffset: { x:60, y: 25}
|
||||||
|
},
|
||||||
|
travelNum: {
|
||||||
|
trainTravelNumOffset: { x:48, y:3}
|
||||||
|
},
|
||||||
trainNumber: {
|
trainNumber: {
|
||||||
targetCodePrefix: '000', // 目的地码前缀
|
targetCodePrefix: '000', // 目的地码前缀
|
||||||
defaultTargetCode: 'AAA', // 默认目的地码
|
defaultTargetCode: 'AAA', // 默认目的地码
|
||||||
trainTargetTextAlign: 'left', // 车次号文字显示位置
|
trainTargetTextAlign: 'left', // 车次号文字显示位置
|
||||||
trainNumberOffset: { x: 1, y: 1 }// 目的地码偏移量
|
trainNumberOffset: { x: 48, y: 3 }// 目的地码偏移量
|
||||||
},
|
},
|
||||||
trainServer: {
|
trainServer: {
|
||||||
serviceNumberPrefix: '00', // 服务号(表号)前缀
|
serviceNumberPrefix: '00', // 服务号(表号)前缀
|
||||||
defaultServiceNumber: 'BB', // 默认服务号(表号)
|
defaultServiceNumber: 'BB', // 默认服务号(表号)
|
||||||
trainServerOffset: { x: 26, y: 1 }// 列车服务号偏移
|
trainServerOffset: { x: 35, y: 3 }// 列车服务号偏移
|
||||||
},
|
},
|
||||||
trainTarget: {
|
trainTarget: {
|
||||||
tripNumberPrefix: '<', // 车次号前缀
|
tripNumberPrefix: '000', // 车次号前缀
|
||||||
defaultDirectionCode: 'D', // 默认车次号1
|
defaultDirectionCode: '', // 默认车次号1
|
||||||
defaultTripNumber: 'CCC', // 默认车次号2
|
defaultTripNumber: 'CCC', // 默认车次号2
|
||||||
trainTargetOffset: { x: 42, y: 1 }// 列车车次号偏移
|
trainTargetOffset: { x: 10, y: 3 }// 列车车次号偏移
|
||||||
},
|
},
|
||||||
trainTargetNumber: {
|
trainTargetNumber: {
|
||||||
groupNumberPrefix: '000', // 车组号前缀
|
groupNumberPrefix: '000', // 车组号前缀
|
||||||
defaultGroupNumber: 'EEE', // 默认车组号
|
defaultGroupNumber: 'EEE', // 默认车组号
|
||||||
trainTargetNumberOffset: { x: 0, y: 1 }// 车组号偏移量
|
trainTargetNumberOffset: { x: 5, y: 25 }// 车组号偏移量
|
||||||
},
|
},
|
||||||
trainHead: {
|
trainHead: {
|
||||||
trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
||||||
@ -501,12 +517,20 @@ class SkinCode extends defaultStyle {
|
|||||||
trainHeadFillColor: '#EF0C08'// 列车车头矩形填充颜色
|
trainHeadFillColor: '#EF0C08'// 列车车头矩形填充颜色
|
||||||
},
|
},
|
||||||
common: {
|
common: {
|
||||||
trainHeight: 30, // 列车高度
|
hasTravelSigns: true, // 是否有行进标志
|
||||||
|
hasAtrStatus: true, // 是否有atr状态
|
||||||
|
hasDelayTime: true, // 是否有延迟时间
|
||||||
|
hasCrewNum: true, // 是否有乘务组号
|
||||||
|
hasTravelNum: true, // 是否有行程号
|
||||||
|
useSelfFormat: true,
|
||||||
|
useSelfText: true,
|
||||||
|
fixedCoordinates: true, // 列车车组号等固定坐标
|
||||||
|
trainHeight: 40, // 列车高度
|
||||||
trainHeadDistance: 2, // 列车和车头之间的间距
|
trainHeadDistance: 2, // 列车和车头之间的间距
|
||||||
trainWidth: 76, // 列车长度
|
trainWidth: 90, // 列车长度
|
||||||
trainTextFontSize: 15, // 列车字号
|
trainTextFontSize: 12, // 列车字号
|
||||||
fontFamily: 'consolas', // 默认字体 族类
|
fontFamily: 'consolas', // 默认字体 族类
|
||||||
nameFontSize: 15, // 字体大小
|
nameFontSize: 12, // 字体大小
|
||||||
haveTextHSDA: false, // 是否需创建textHSDA对象
|
haveTextHSDA: false, // 是否需创建textHSDA对象
|
||||||
haveArrowText: true, // 是否需创建arrowText对象
|
haveArrowText: true, // 是否需创建arrowText对象
|
||||||
haveTrainBorder: false, // 是否需创建trainBorder对象
|
haveTrainBorder: false, // 是否需创建trainBorder对象
|
||||||
@ -516,6 +540,7 @@ class SkinCode extends defaultStyle {
|
|||||||
displayPosition: 'margin' // 非同通信车在物理区段(有逻辑区段)上显示的位置 margin:行驶方向边缘车次窗 center: 中间位置车次窗
|
displayPosition: 'margin' // 非同通信车在物理区段(有逻辑区段)上显示的位置 margin:行驶方向边缘车次窗 center: 中间位置车次窗
|
||||||
},
|
},
|
||||||
trainStatusStyle: {
|
trainStatusStyle: {
|
||||||
|
defaultDestinationColor: '#FFFF00', // 默认目的地状态显示颜色
|
||||||
destinationStatus: [
|
destinationStatus: [
|
||||||
{ status: '01', showColor: '#FFFF00' },
|
{ status: '01', showColor: '#FFFF00' },
|
||||||
{ status: '02', showColor: '#00FF00' },
|
{ status: '02', showColor: '#00FF00' },
|
||||||
@ -532,19 +557,19 @@ class SkinCode extends defaultStyle {
|
|||||||
lineLShow: false,
|
lineLShow: false,
|
||||||
lineRShow: false,
|
lineRShow: false,
|
||||||
arrowLShow: false,
|
arrowLShow: false,
|
||||||
arrowRShow: true
|
arrowRShow: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 0,
|
type: 0,
|
||||||
lineLShow: false,
|
lineLShow: false,
|
||||||
lineRShow: false,
|
lineRShow: false,
|
||||||
arrowLShow: true,
|
arrowLShow: false,
|
||||||
arrowRShow: false
|
arrowRShow: false
|
||||||
}
|
}
|
||||||
], // 运行方向状态类型对应车头显示状态 1从左往右 0从右往左
|
], // 运行方向状态类型对应车头显示状态 1从左往右 0从右往左
|
||||||
directionStopType: [
|
directionStopType: [
|
||||||
{ type: 1, lineLShow: false, lineRShow: true },
|
{ type: 1, lineLShow: false, lineRShow: false },
|
||||||
{ type: 0, lineLShow: true, lineRShow: false }
|
{ type: 0, lineLShow: false, lineRShow: false }
|
||||||
], // 列车停止方向类型对应车头显示状态 1从左往右 0从右往左
|
], // 列车停止方向类型对应车头显示状态 1从左往右 0从右往左
|
||||||
driveModeStatus: [
|
driveModeStatus: [
|
||||||
{
|
{
|
||||||
|
@ -457,7 +457,7 @@ class SkinCode extends defaultStyle {
|
|||||||
trainTargetTextAlign: 'right' // 车次号文字显示位置
|
trainTargetTextAlign: 'right' // 车次号文字显示位置
|
||||||
},
|
},
|
||||||
trainTargetNumber: {
|
trainTargetNumber: {
|
||||||
trainTargetNumberOffset: { x: 0, y: 0 }// 车组号偏移量
|
trainTargetNumberOffset: {x: -4, y: 4}// 车组号偏移量
|
||||||
},
|
},
|
||||||
trainHead: {
|
trainHead: {
|
||||||
trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
trainMoreLength: 1, // 列车车头比车身高出的长度,上下相比车体伸出去的边框
|
||||||
@ -471,7 +471,7 @@ class SkinCode extends defaultStyle {
|
|||||||
common: {
|
common: {
|
||||||
trainHeight: 20, // 列车高度
|
trainHeight: 20, // 列车高度
|
||||||
trainHeadDistance: 2, // 列车和车头之间的间距
|
trainHeadDistance: 2, // 列车和车头之间的间距
|
||||||
trainWidth: 55, // 列车长度
|
trainWidth: 57, // 列车长度
|
||||||
trainTextFontSize: 16, // 列车字号
|
trainTextFontSize: 16, // 列车字号
|
||||||
fontFamily: 'consolas', // 默认字体 族类
|
fontFamily: 'consolas', // 默认字体 族类
|
||||||
haveTextHSDA: true, // 是否需创建textHSDA对象
|
haveTextHSDA: true, // 是否需创建textHSDA对象
|
||||||
|
@ -4,6 +4,7 @@ import '../StationStand/EDetain';
|
|||||||
import ETextName from '../element/ETextName'; // 名称文字 (共有)
|
import ETextName from '../element/ETextName'; // 名称文字 (共有)
|
||||||
import EMouse from './EMouse';
|
import EMouse from './EMouse';
|
||||||
import store from '@/store';
|
import store from '@/store';
|
||||||
|
import Circle from 'zrender/src/graphic/shape/Circle';
|
||||||
|
|
||||||
/** 车身*/
|
/** 车身*/
|
||||||
export default class TrainBody extends Group {
|
export default class TrainBody extends Group {
|
||||||
@ -144,8 +145,8 @@ export default class TrainBody extends Group {
|
|||||||
this.textTrainTargetNumber = new ETextName({
|
this.textTrainTargetNumber = new ETextName({
|
||||||
zlevel: model.zlevel,
|
zlevel: model.zlevel,
|
||||||
z: model.z+1,
|
z: model.z+1,
|
||||||
x: parseInt(model.point.x - style.Train.trainBody.lrPadding),
|
x: parseInt(model.point.x + style.Train.trainTargetNumber.trainTargetNumberOffset.x),
|
||||||
y: parseInt(model.point.y + style.Train.trainBody.upPadding),
|
y: parseInt(model.point.y + style.Train.trainTargetNumber.trainTargetNumberOffset.y),
|
||||||
text: groupNumber.substring(groupNumber.length - 3),
|
text: groupNumber.substring(groupNumber.length - 3),
|
||||||
textFill: style.trainTextColor,
|
textFill: style.trainTextColor,
|
||||||
textStroke: style.trainTextColor,
|
textStroke: style.trainTextColor,
|
||||||
@ -163,6 +164,89 @@ export default class TrainBody extends Group {
|
|||||||
this.add(this.textD);
|
this.add(this.textD);
|
||||||
this.add(this.textA);
|
this.add(this.textA);
|
||||||
}
|
}
|
||||||
|
if (style.Train.common.hasAtrStatus) {
|
||||||
|
this.atrStatus = new Circle({
|
||||||
|
zlevel: model.zlevel,
|
||||||
|
z: model.z + 1,
|
||||||
|
shape: {
|
||||||
|
cx: parseInt(model.point.x + style.Train.trainAtrStatus.trainAtrStatusOffset.x),
|
||||||
|
cy: parseInt(model.point.y + style.Train.trainAtrStatus.trainAtrStatusOffset.y),
|
||||||
|
r: style.Train.trainAtrStatus.r
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
fill: '#ff0000'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.add(this.atrStatus);
|
||||||
|
}
|
||||||
|
if (style.Train.common.hasTravelSigns) {
|
||||||
|
this.travelSigns = new ETextName({
|
||||||
|
zlevel: model.zlevel,
|
||||||
|
z: model.z + 1,
|
||||||
|
x: parseInt(model.point.x + style.Train.travelSigns.trainTravelSignsOffset.x),
|
||||||
|
y: parseInt(model.point.y + style.Train.travelSigns.trainTravelSignsOffset.y),
|
||||||
|
text: '<',
|
||||||
|
textFill: style.trainTextColor,
|
||||||
|
textStroke: style.trainTextColor,
|
||||||
|
textStrokeWidth: 0,
|
||||||
|
fontSize: model.fontSize,
|
||||||
|
fontFamily: style.Train.common.fontFamily,
|
||||||
|
textAlign: 'left',
|
||||||
|
textVerticalAlign: 'top'
|
||||||
|
});
|
||||||
|
this.add(this.travelSigns);
|
||||||
|
}
|
||||||
|
if (style.Train.common.hasCrewNum) {
|
||||||
|
this.crewNum = new ETextName({
|
||||||
|
zlevel: model.zlevel,
|
||||||
|
z: model.z + 1,
|
||||||
|
x: parseInt(model.point.x + style.Train.crewNum.trainCrewNumOffset.x),
|
||||||
|
y: parseInt(model.point.y + style.Train.crewNum.trainCrewNumOffset.y),
|
||||||
|
text: 'BBB',
|
||||||
|
textFill: style.trainTextColor,
|
||||||
|
textStroke: style.trainTextColor,
|
||||||
|
textStrokeWidth: 0,
|
||||||
|
fontSize: model.fontSize,
|
||||||
|
fontFamily: style.Train.common.fontFamily,
|
||||||
|
textAlign: 'left',
|
||||||
|
textVerticalAlign: 'top'
|
||||||
|
});
|
||||||
|
this.add(this.crewNum);
|
||||||
|
}
|
||||||
|
if (style.Train.common.hasTravelNum) {
|
||||||
|
this.travelNum = new ETextName({
|
||||||
|
zlevel: model.zlevel,
|
||||||
|
z: model.z + 1,
|
||||||
|
x: parseInt(model.point.x + style.Train.travelNum.trainTravelNumOffset.x),
|
||||||
|
y: parseInt(model.point.y + style.Train.travelNum.trainTravelNumOffset.y),
|
||||||
|
text: 'AA',
|
||||||
|
textFill: style.trainTextColor,
|
||||||
|
textStroke: style.trainTextColor,
|
||||||
|
textStrokeWidth: 0,
|
||||||
|
fontSize: model.fontSize,
|
||||||
|
fontFamily: style.Train.common.fontFamily,
|
||||||
|
textAlign: 'left',
|
||||||
|
textVerticalAlign: 'top'
|
||||||
|
});
|
||||||
|
this.add(this.travelNum);
|
||||||
|
}
|
||||||
|
if (style.Train.common.hasDelayTime) {
|
||||||
|
this.delayTime = new ETextName({
|
||||||
|
zlevel: model.zlevel,
|
||||||
|
z: model.z + 1,
|
||||||
|
x: parseInt(model.point.x + style.Train.delayTime.trainDelayTimeOffset.x),
|
||||||
|
y: parseInt(model.point.y + style.Train.delayTime.trainDelayTimeOffset.y),
|
||||||
|
text: '0',
|
||||||
|
textFill: style.trainTextColor,
|
||||||
|
textStroke: style.trainTextColor,
|
||||||
|
textStrokeWidth: 0,
|
||||||
|
fontSize: model.fontSize,
|
||||||
|
fontFamily: style.Train.common.fontFamily,
|
||||||
|
textAlign: 'left',
|
||||||
|
textVerticalAlign: 'top'
|
||||||
|
});
|
||||||
|
this.add(this.delayTime);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
removeTrainDetail() {
|
removeTrainDetail() {
|
||||||
@ -218,19 +302,19 @@ export default class TrainBody extends Group {
|
|||||||
let widthText = 0;
|
let widthText = 0;
|
||||||
arr.forEach(ele => {
|
arr.forEach(ele => {
|
||||||
if (ele == 'targetCode') {
|
if (ele == 'targetCode') {
|
||||||
this.textTrainNumber.setStyle('x', parseInt(model.point.x + widthText + style.Train.common.textOffset) );
|
!style.Train.common.fixedCoordinates && this.textTrainNumber.setStyle('x', parseInt(model.point.x + widthText + style.Train.common.textOffset) );
|
||||||
widthText += this.textTrainNumber.getBoundingRect().width;
|
widthText += this.textTrainNumber.getBoundingRect().width;
|
||||||
this.add(this.textTrainNumber);
|
this.add(this.textTrainNumber);
|
||||||
} else if (ele == 'serviceNumber') {
|
} else if (ele == 'serviceNumber') {
|
||||||
this.textTrainServer.setStyle('x', parseInt(model.point.x + widthText + style.Train.common.textOffset));
|
!style.Train.common.fixedCoordinates && this.textTrainServer.setStyle('x', parseInt(model.point.x + widthText + style.Train.common.textOffset));
|
||||||
widthText += this.textTrainServer.getBoundingRect().width;
|
widthText += this.textTrainServer.getBoundingRect().width;
|
||||||
this.add(this.textTrainServer);
|
this.add(this.textTrainServer);
|
||||||
} else if (ele == 'tripNumber') {
|
} else if (ele == 'tripNumber') {
|
||||||
this.textTrainTarget.setStyle('x', parseInt(model.point.x + widthText + style.Train.common.textOffset));
|
!style.Train.common.fixedCoordinates && this.textTrainTarget.setStyle('x', parseInt(model.point.x + widthText + style.Train.common.textOffset));
|
||||||
widthText += this.textTrainTarget.getBoundingRect().width;
|
widthText += this.textTrainTarget.getBoundingRect().width;
|
||||||
this.add(this.textTrainTarget);
|
this.add(this.textTrainTarget);
|
||||||
} else if (ele == 'groupNumber') {
|
} else if (ele == 'groupNumber') {
|
||||||
this.textTrainTargetNumber.setStyle('x', parseInt(model.point.x + widthText + style.Train.common.textOffset));
|
!style.Train.common.fixedCoordinates && this.textTrainTargetNumber.setStyle('x', parseInt(model.point.x + widthText + style.Train.common.textOffset));
|
||||||
widthText += this.textTrainTargetNumber.getBoundingRect().width;
|
widthText += this.textTrainTargetNumber.getBoundingRect().width;
|
||||||
this.add(this.textTrainTargetNumber);
|
this.add(this.textTrainTargetNumber);
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
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();
|
||||||
@ -187,7 +187,7 @@
|
|||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
@ -199,11 +199,11 @@
|
|||||||
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();
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(() => {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -247,7 +247,7 @@ export default {
|
|||||||
operate.operation = OperationEvent.StationStand.earlyDeparture.downSelect.operation;
|
operate.operation = OperationEvent.StationStand.earlyDeparture.downSelect.operation;
|
||||||
}
|
}
|
||||||
|
|
||||||
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 });
|
||||||
}
|
}
|
||||||
@ -282,10 +282,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消扣车
|
// 取消扣车
|
||||||
@ -303,10 +303,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 提前发车
|
// 提前发车
|
||||||
@ -323,10 +323,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() {
|
||||||
@ -335,7 +335,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
|
@ -264,10 +264,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消跳停
|
// 取消跳停
|
||||||
@ -292,10 +292,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() {
|
||||||
@ -305,7 +305,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
@ -322,7 +322,7 @@ export default {
|
|||||||
type: MapDeviceType.StationStand.type,
|
type: MapDeviceType.StationStand.type,
|
||||||
operation: operation
|
operation: operation
|
||||||
};
|
};
|
||||||
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 });
|
||||||
}
|
}
|
||||||
@ -337,7 +337,7 @@ export default {
|
|||||||
operation: operation
|
operation: operation
|
||||||
};
|
};
|
||||||
this.model.val2 = '';
|
this.model.val2 = '';
|
||||||
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 });
|
||||||
}
|
}
|
||||||
@ -352,7 +352,7 @@ export default {
|
|||||||
operation: operation,
|
operation: operation,
|
||||||
val: val
|
val: val
|
||||||
};
|
};
|
||||||
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 });
|
||||||
}
|
}
|
||||||
|
@ -248,7 +248,7 @@
|
|||||||
this.time = time.toString();
|
this.time = time.toString();
|
||||||
this.isSelect = false;
|
this.isSelect = false;
|
||||||
this.isConfirm = true;
|
this.isConfirm = true;
|
||||||
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 });
|
||||||
}
|
}
|
||||||
@ -264,7 +264,7 @@
|
|||||||
this.time = row.time = this.timeList[row.level][0].value;
|
this.time = row.time = this.timeList[row.level][0].value;
|
||||||
this.isSelect = false;
|
this.isSelect = false;
|
||||||
this.isConfirm = true;
|
this.isConfirm = true;
|
||||||
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 });
|
||||||
}
|
}
|
||||||
@ -277,7 +277,7 @@
|
|||||||
val: check.toString(),
|
val: check.toString(),
|
||||||
}
|
}
|
||||||
|
|
||||||
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 });
|
||||||
}
|
}
|
||||||
@ -302,7 +302,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
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();
|
||||||
@ -312,6 +312,7 @@
|
|||||||
}).catch((error) => {
|
}).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();
|
||||||
@ -323,7 +324,7 @@
|
|||||||
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();
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@ export default {
|
|||||||
val: `${control}`
|
val: `${control}`
|
||||||
};
|
};
|
||||||
|
|
||||||
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,7 +194,7 @@ export default {
|
|||||||
val: `${effective}`
|
val: `${effective}`
|
||||||
};
|
};
|
||||||
|
|
||||||
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 });
|
||||||
}
|
}
|
||||||
@ -208,7 +208,7 @@ export default {
|
|||||||
val: `${time}`
|
val: `${time}`
|
||||||
};
|
};
|
||||||
|
|
||||||
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 });
|
||||||
}
|
}
|
||||||
@ -224,16 +224,17 @@ 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();
|
||||||
// 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() {
|
||||||
@ -242,7 +243,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();
|
||||||
}
|
}
|
||||||
|
@ -414,14 +414,15 @@ export default {
|
|||||||
standCode:this.selected.code
|
standCode:this.selected.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let tempDate = null;
|
// let tempDate = null;
|
||||||
if (response) {
|
// if (response) {
|
||||||
tempDate = response.data;
|
// tempDate = response.data;
|
||||||
}
|
// }
|
||||||
|
const tempData = [];
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.standStopTime.doShow(operate, this.selected, tempDate);
|
this.$refs.standStopTime.doShow(operate, this.selected, tempData);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
@ -440,14 +441,15 @@ export default {
|
|||||||
standCode:this.selected.code
|
standCode:this.selected.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let tempDate = null;
|
// let tempDate = null;
|
||||||
if (response) {
|
// if (response) {
|
||||||
tempDate = response.data;
|
// tempDate = response.data;
|
||||||
}
|
// }
|
||||||
|
const tempData = [];
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.standRunLevel.doShow(operate, this.selected, tempDate);
|
this.$refs.standRunLevel.doShow(operate, this.selected, tempData);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
@ -485,41 +487,42 @@ export default {
|
|||||||
|
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let tempDate = null;
|
// let tempDate = null;
|
||||||
if (response) {
|
// if (response) {
|
||||||
tempDate = response.data;
|
// tempDate = response.data;
|
||||||
}
|
// }
|
||||||
|
const tempData = [];
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.standBackStrategy.doShow(operate, this.selected, tempDate);
|
this.$refs.standBackStrategy.doShow(operate, this.selected, tempData);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 查询站台状态
|
// 查询站台状态
|
||||||
detail() {
|
// detail() {
|
||||||
const operate = {
|
// const operate = {
|
||||||
over: true,
|
// over: true,
|
||||||
code: this.selected.code,
|
// code: this.selected.code,
|
||||||
cmdType: CMD.Stand.CMD_STAND_VIEW_STATUS,
|
// cmdType: CMD.Stand.CMD_STAND_VIEW_STATUS,
|
||||||
operation: OperationEvent.StationStand.detail.menu.operation,
|
// operation: OperationEvent.StationStand.detail.menu.operation,
|
||||||
param:{
|
// param:{
|
||||||
standCode:this.selected.code
|
// standCode:this.selected.code
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {
|
// this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {
|
||||||
if (valid) {
|
// if (valid) {
|
||||||
let tempDate = null;
|
// let tempDate = null;
|
||||||
if (response) {
|
// if (response) {
|
||||||
tempDate = response.data;
|
// tempDate = response.data;
|
||||||
}
|
// }
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.standDetail.doShow(operate, this.selected, tempDate);
|
// this.$refs.standDetail.doShow(operate, this.selected, tempDate);
|
||||||
}
|
// }
|
||||||
}).catch(() => {
|
// }).catch(() => {
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
// this.$refs.noticeInfo.doShow(operate);
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -47,7 +47,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>
|
||||||
@ -105,11 +105,7 @@ export default {
|
|||||||
'01': '折返',
|
'01': '折返',
|
||||||
'02': '直通'
|
'02': '直通'
|
||||||
},
|
},
|
||||||
row: '',
|
row: ''
|
||||||
controlTypeMap: {
|
|
||||||
'01': '自动',
|
|
||||||
'02': '人工'
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -206,7 +206,7 @@
|
|||||||
<div style="padding: 15px; margin-top: 20px; border: 1px solid lightgray;">
|
<div style="padding: 15px; margin-top: 20px; border: 1px solid lightgray;">
|
||||||
<span class="base-label" style="left: -5px; top: -22px; background: #ECE9D8; padding: 0 4px;">功能</span>
|
<span class="base-label" style="left: -5px; top: -22px; background: #ECE9D8; padding: 0 4px;">功能</span>
|
||||||
<el-row style="margin-top: -13px;">
|
<el-row style="margin-top: -13px;">
|
||||||
<el-radio-group v-model="effective" @change="chooseEffective">
|
<el-radio-group v-model="effective" :disabled="disabledTime" @change="chooseEffective">
|
||||||
<el-col :span="11">
|
<el-col :span="11">
|
||||||
<el-radio
|
<el-radio
|
||||||
:id="effective == '02' ? '': domIdChoose2"
|
:id="effective == '02' ? '': domIdChoose2"
|
||||||
@ -274,7 +274,8 @@ export default {
|
|||||||
tripNumber: '',
|
tripNumber: '',
|
||||||
effective: '01',
|
effective: '01',
|
||||||
// trainStopTime: 0,
|
// trainStopTime: 0,
|
||||||
trainRunlevel: '01'
|
trainRunlevel: '01',
|
||||||
|
disabledTime: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -496,7 +497,10 @@ export default {
|
|||||||
}
|
}
|
||||||
if (this.radio === '01') {
|
if (this.radio === '01') {
|
||||||
// this.trainStopTime = 0;
|
// this.trainStopTime = 0;
|
||||||
|
this.disabledTime = true;
|
||||||
this.trainRunlevel = '01';
|
this.trainRunlevel = '01';
|
||||||
|
} else {
|
||||||
|
this.disabledTime = false;
|
||||||
}
|
}
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@ -654,16 +658,16 @@ export default {
|
|||||||
},
|
},
|
||||||
// 设置停站时间
|
// 设置停站时间
|
||||||
setStopTime() {
|
setStopTime() {
|
||||||
const forver = this.effective == '02';
|
const forver = this.effective == '01';
|
||||||
const operate = {
|
const operate = {
|
||||||
over: true,
|
over: true,
|
||||||
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
||||||
cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME,
|
cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME,
|
||||||
val: [`${this.radio}`, this.trainStopTime, forver].join('::'),
|
// val: [`${this.radio}`, this.trainStopTime, forver].join('::'),
|
||||||
param: {
|
param: {
|
||||||
standStopControl: `${this.radio}`,
|
parkingTime: this.radio == '01' ? -1 : 1,
|
||||||
// standStopTime: this.trainStopTime,
|
// standStopTime: this.trainStopTime,
|
||||||
standAlwaysValid: forver
|
parkingAlwaysValid: forver
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -681,7 +685,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 设置运行速度
|
// 设置运行速度
|
||||||
setRunLevel() {
|
setRunLevel() {
|
||||||
const forver = this.effective == '02';
|
|
||||||
|
const forver = this.effective == '01';
|
||||||
let val = this.radio;
|
let val = this.radio;
|
||||||
if (this.radio == '02') {
|
if (this.radio == '02') {
|
||||||
val = `${this.radio}::${this.trainRunlevel}::${forver}`;
|
val = `${this.radio}::${this.trainRunlevel}::${forver}`;
|
||||||
@ -694,9 +699,9 @@ export default {
|
|||||||
cmdType: CMD.Stand.CMD_STAND_SET_RUN_TIME,
|
cmdType: CMD.Stand.CMD_STAND_SET_RUN_TIME,
|
||||||
val: val,
|
val: val,
|
||||||
param: {
|
param: {
|
||||||
standStopControl: `${this.radio}`,
|
// standStopControl: `${this.radio}`,
|
||||||
standRunLevel: this.radio === '02' ? `${this.trainRunlevel}` : '01',
|
runLevelTime: this.radio === '02' ? `${this.trainRunlevel}` : '01',
|
||||||
standAlwaysValid: `${forver}`
|
runLevelTimeForever: forver
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -275,13 +275,14 @@ export default {
|
|||||||
this.$store.dispatch('training/nextNew', 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 });
|
||||||
Handler.execute(CMD.Stand.CMD_STAND_VIEW_STATUS, {standCode: `${this.selected.code}`}).then(resp => {
|
// Handler.execute(CMD.Stand.CMD_STAND_VIEW_STATUS, {standCode: `${this.selected.code}`}).then(resp => {
|
||||||
const tempData = resp.data;
|
// const tempData = resp.data;
|
||||||
|
const tempData = [];
|
||||||
this.$refs.standControl.doShow(step, this.selected, tempData);
|
this.$refs.standControl.doShow(step, this.selected, tempData);
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(step);
|
this.$refs.noticeInfo.doShow(step, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置运行等级
|
// 设置运行等级
|
||||||
@ -297,10 +298,11 @@ export default {
|
|||||||
this.$store.dispatch('training/nextNew', 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 });
|
||||||
Handler.execute(CMD.Stand.CMD_STAND_VIEW_STATUS, {standCode: `${this.selected.code}`}).then(resp => {
|
// Handler.execute(CMD.Stand.CMD_STAND_VIEW_STATUS, {standCode: `${this.selected.code}`}).then(resp => {
|
||||||
const tempData = resp.data;
|
// const tempData = resp.data;
|
||||||
|
const tempData = [];
|
||||||
this.$refs.standControl.doShow(step, this.selected, tempData);
|
this.$refs.standControl.doShow(step, this.selected, tempData);
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$refs.noticeInfo.doShow(step);
|
this.$refs.noticeInfo.doShow(step);
|
||||||
|
@ -189,8 +189,9 @@ export default {
|
|||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$refs.confirmControl.doShow(operate, this.selected);
|
this.$refs.confirmControl.doShow(operate, this.selected);
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch((error) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号关灯
|
// 信号关灯
|
||||||
@ -208,8 +209,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号重开
|
// 信号重开
|
||||||
@ -227,8 +229,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置联锁自动进路
|
// 设置联锁自动进路
|
||||||
@ -245,10 +248,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消联锁自动进路
|
// 取消联锁自动进路
|
||||||
@ -265,10 +268,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 +288,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消联锁自动触发
|
// 取消联锁自动触发
|
||||||
@ -306,10 +309,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消
|
// 取消
|
||||||
|
@ -99,56 +99,56 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
Center: [
|
Center: [
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.detainTrain'),
|
// label: this.$t('menu.menuStationStand.detainTrain'),
|
||||||
handler: this.setDetainTrain,
|
// handler: this.setDetainTrain,
|
||||||
cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN
|
// cmdType:CMD.Stand.CMD_STAND_SET_HOLD_TRAIN
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.cancelDetainTrain'),
|
// label: this.$t('menu.menuStationStand.cancelDetainTrain'),
|
||||||
handler: this.cancelDetainTrain,
|
// handler: this.cancelDetainTrain,
|
||||||
cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN
|
// cmdType:CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.cancelDetainTrainAll'),
|
// label: this.$t('menu.menuStationStand.cancelDetainTrainAll'),
|
||||||
handler: this.cancelDetainTrainAll,
|
// handler: this.cancelDetainTrainAll,
|
||||||
cmdType:CMD.Stand.CMD_STAND_WHOLE_LINE_CANCEL_HOLD_TRAIN
|
// cmdType:CMD.Stand.CMD_STAND_WHOLE_LINE_CANCEL_HOLD_TRAIN
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.jumpStop'),
|
// label: this.$t('menu.menuStationStand.jumpStop'),
|
||||||
handler: this.setJumpStop,
|
// handler: this.setJumpStop,
|
||||||
cmdType:CMD.Stand.CMD_STAND_SET_JUMP_STOP
|
// cmdType:CMD.Stand.CMD_STAND_SET_JUMP_STOP
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.cancelJumpStop'),
|
// label: this.$t('menu.menuStationStand.cancelJumpStop'),
|
||||||
handler: this.cancelJumpStop,
|
// handler: this.cancelJumpStop,
|
||||||
cmdType:CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP
|
// cmdType:CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.setStopTime'),
|
// label: this.$t('menu.menuStationStand.setStopTime'),
|
||||||
handler: this.setStopTime,
|
// handler: this.setStopTime,
|
||||||
cmdType:CMD.Stand.CMD_STAND_SET_PARK_TIME
|
// cmdType:CMD.Stand.CMD_STAND_SET_PARK_TIME
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.setRunLevel'),
|
// label: this.$t('menu.menuStationStand.setRunLevel'),
|
||||||
handler: this.setRunLevel,
|
// handler: this.setRunLevel,
|
||||||
cmdType:CMD.Stand.CMD_STAND_SET_RUN_TIME
|
// cmdType:CMD.Stand.CMD_STAND_SET_RUN_TIME
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.setEarlyDeparture'),
|
// label: this.$t('menu.menuStationStand.setEarlyDeparture'),
|
||||||
handler: this.earlyDeparture,
|
// handler: this.earlyDeparture,
|
||||||
cmdType:CMD.Stand.CMD_STAND_EARLY_DEPART
|
// cmdType:CMD.Stand.CMD_STAND_EARLY_DEPART
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.setBackStrategy'),
|
// label: this.$t('menu.menuStationStand.setBackStrategy'),
|
||||||
handler: this.setBackStrategy,
|
// handler: this.setBackStrategy,
|
||||||
cmdType:CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY
|
// cmdType:CMD.Stand.CMD_STAND_SET_REENTRY_STRATEGY
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
label: this.$t('menu.menuStationStand.getStationStandStatus'),
|
// label: this.$t('menu.menuStationStand.getStationStandStatus'),
|
||||||
handler: this.detail,
|
// handler: this.detail,
|
||||||
cmdType:CMD.Stand.CMD_STAND_VIEW_STATUS
|
// cmdType:CMD.Stand.CMD_STAND_VIEW_STATUS
|
||||||
}
|
// }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
menuForce: [
|
menuForce: [
|
||||||
|
@ -23,7 +23,6 @@ export default {
|
|||||||
/** 解析exal数据转换为Json后台数据*/
|
/** 解析exal数据转换为Json后台数据*/
|
||||||
importData(Sheet, JsonData) {
|
importData(Sheet, JsonData) {
|
||||||
var dataList = convertSheetToList(Sheet, true);
|
var dataList = convertSheetToList(Sheet, true);
|
||||||
|
|
||||||
if (dataList && dataList.length) {
|
if (dataList && dataList.length) {
|
||||||
if (dataList && dataList.length && dataList[1] && dataList[0]) {
|
if (dataList && dataList.length && dataList[1] && dataList[0]) {
|
||||||
// const tIndex = dataList.findIndex(it => { return it[0]; }); // 设置不用过滤行数
|
// const tIndex = dataList.findIndex(it => { return it[0]; }); // 设置不用过滤行数
|
||||||
|
@ -25,7 +25,6 @@ function handle(state, data) {
|
|||||||
break;
|
break;
|
||||||
case 'Simulation_RunFact': // 仿真-列车实际到发车站消息
|
case 'Simulation_RunFact': // 仿真-列车实际到发车站消息
|
||||||
let runFactMsg = msg;
|
let runFactMsg = msg;
|
||||||
// console.log(msg, '----------------');
|
|
||||||
if (runFactMsg.constructor !== Array ) {
|
if (runFactMsg.constructor !== Array ) {
|
||||||
runFactMsg = [msg];
|
runFactMsg = [msg];
|
||||||
}
|
}
|
||||||
|
@ -167,6 +167,7 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
'$route' () {
|
'$route' () {
|
||||||
this.getRunPlanList();
|
this.getRunPlanList();
|
||||||
|
this.PlanConvert = this.$theme.loadPlanConvert(this.$route.query.lineCode);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
Loading…
Reference in New Issue
Block a user