Merge branch 'dev' of https://git.code.tencent.com/lian-cbtc/jl-client into dev
This commit is contained in:
commit
1948083c42
@ -86,25 +86,11 @@ export default class Switch extends Group {
|
|||||||
const rpoint2 = [rpoint1[0] + directx * (swPadding + switchWidth * this.triangle.getCotRate()), rpoint1[1]];
|
const rpoint2 = [rpoint1[0] + directx * (swPadding + switchWidth * this.triangle.getCotRate()), rpoint1[1]];
|
||||||
const rpoint3 = [rpoint2[0], rpoint2[1] + directy * switchWidth];
|
const rpoint3 = [rpoint2[0], rpoint2[1] + directy * switchWidth];
|
||||||
const rpoint4 = [rpoint1[0] + this.triangle.getCos(slen), rpoint1[1] + this.triangle.getSin(slen)];
|
const rpoint4 = [rpoint1[0] + this.triangle.getCos(slen), rpoint1[1] + this.triangle.getSin(slen)];
|
||||||
|
|
||||||
const switchWidth1 = style.Section.line.width / 2 + 0.1;
|
|
||||||
const width1 = switchWidth1 * this.triangle.getSinRate();
|
|
||||||
const height1 = switchWidth1 * this.triangle.getCosRate();
|
|
||||||
const width2 = (height1 + switchWidth1) / this.triangle.getTanRate();
|
|
||||||
const width3 = (style.Section.line.width / this.triangle.getSinRate()) - width2 - width1;
|
|
||||||
const spoint1 = [model.intersection.x + directx * width3, model.intersection.y - directy * switchWidth1];
|
|
||||||
// const spoint2 = [spoint1[0] - directx * (width2 + width1) - directx * width3, spoint1[1]];
|
|
||||||
// const spoint3 = [model.intersection.x - directx * width3, model.intersection.y + directy * switchWidth1];
|
|
||||||
const spoint2 = [model.intersection.x - directx * 13, spoint1[1]];
|
|
||||||
const spoint3 = [model.intersection.x - directx * 13, model.intersection.y + directy * switchWidth1];
|
|
||||||
const spoint4 = [spoint1[0] + directx * (width2 + width1) - directx * width3, spoint3[1]];
|
|
||||||
|
|
||||||
this.relocShelter = new ESwLnversion({ // 反位覆盖形状
|
this.relocShelter = new ESwLnversion({ // 反位覆盖形状
|
||||||
zlevel: this.zlevel,
|
zlevel: this.zlevel,
|
||||||
z: this.z,
|
z: this.z,
|
||||||
style: style,
|
style: style,
|
||||||
shelterPoints: [rpoint1, rpoint2, rpoint3, rpoint4],
|
shelterPoints: [rpoint1, rpoint2, rpoint3, rpoint4],
|
||||||
sectionPoints: [spoint1, spoint2, spoint3, spoint4],
|
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
halfWidth: halfWidth,
|
halfWidth: halfWidth,
|
||||||
triangle: this.triangle,
|
triangle: this.triangle,
|
||||||
@ -112,7 +98,20 @@ export default class Switch extends Group {
|
|||||||
onmouseout: () => { this.name.getArrowText().hide(); }
|
onmouseout: () => { this.name.getArrowText().hide(); }
|
||||||
});
|
});
|
||||||
|
|
||||||
this.rhomboid = new ERhomboid({ // 平行四边形覆盖范围
|
const switchWidth1 = style.Section.line.width / 2 + 0.1;
|
||||||
|
const width1 = switchWidth1 * this.triangle.getSinRate();
|
||||||
|
const height1 = switchWidth1 * this.triangle.getCosRate();
|
||||||
|
const width2 = (height1 + switchWidth1) / this.triangle.getTanRate();
|
||||||
|
const width3 = (style.Section.line.width / this.triangle.getSinRate()) - width2 - width1;
|
||||||
|
const spoint1 = [model.intersection.x + directx * width3, model.intersection.y - directy * switchWidth1];
|
||||||
|
const spoint2 = [spoint1[0] - directx * (width2 + width1) - directx * width3, spoint1[1]];
|
||||||
|
const spoint3 = [model.intersection.x - directx * width3, model.intersection.y + directy * switchWidth1];
|
||||||
|
// if (this.style.Switch.block.blockName == 'ningbo_01') {
|
||||||
|
// spoint2 = [model.intersection.x - directx * 13, spoint1[1]];
|
||||||
|
// spoint3 = [model.intersection.x - directx * 13, model.intersection.y + directy * switchWidth1];
|
||||||
|
// }
|
||||||
|
const spoint4 = [spoint1[0] + directx * (width2 + width1) - directx * width3, spoint3[1]];
|
||||||
|
this.rhomboid = new ERhomboid({ // 平行四边形覆盖范围 (尝试使用本图形做宁波特有的挤岔图形动作 放弃使用下一个的图形)
|
||||||
zlevel: this.zlevel,
|
zlevel: this.zlevel,
|
||||||
z: this.z,
|
z: this.z,
|
||||||
style: style,
|
style: style,
|
||||||
@ -129,7 +128,7 @@ export default class Switch extends Group {
|
|||||||
const Tspoint3 = [Tspoint1[0] - directx * 8, model.intersection.y - directy * switchWidth1];
|
const Tspoint3 = [Tspoint1[0] - directx * 8, 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({ // 平行四边形覆盖范围 内侧三角形覆盖物 (用于宁波线路'挤岔' 专用)其他线路不能使用
|
||||||
zlevel: this.zlevel,
|
zlevel: this.zlevel,
|
||||||
z: this.z,
|
z: this.z,
|
||||||
style: style,
|
style: style,
|
||||||
|
@ -101,7 +101,8 @@ export default {
|
|||||||
signalName: '',
|
signalName: '',
|
||||||
allSelect: false,
|
allSelect: false,
|
||||||
changeList:[],
|
changeList:[],
|
||||||
commitDisabled: true
|
commitDisabled: true,
|
||||||
|
disabledLength: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -172,9 +173,11 @@ export default {
|
|||||||
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;
|
||||||
|
this.disabledLength++;
|
||||||
} 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;
|
||||||
|
this.disabledLength++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -200,7 +203,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.selection.splice(this.selection.indexOf(code), 1);
|
this.selection.splice(this.selection.indexOf(code), 1);
|
||||||
}
|
}
|
||||||
if (this.selection.length >= this.tempData.length) {
|
if (this.selection.length >= (this.tempData.length - this.disabledLength) ) {
|
||||||
this.allSelect = true;
|
this.allSelect = true;
|
||||||
} else {
|
} else {
|
||||||
this.allSelect = false;
|
this.allSelect = false;
|
||||||
|
@ -262,7 +262,7 @@ export default {
|
|||||||
operation: OperationEvent.StationStand.stoppage.menu.operation,
|
operation: OperationEvent.StationStand.stoppage.menu.operation,
|
||||||
cmdType: CMD.Stand.CMD_STAND_ADD_FAULT,
|
cmdType: CMD.Stand.CMD_STAND_ADD_FAULT,
|
||||||
param: {
|
param: {
|
||||||
stationStandCode: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -285,7 +285,7 @@ export default {
|
|||||||
operation: OperationEvent.StationStand.cancelStoppage.menu.operation,
|
operation: OperationEvent.StationStand.cancelStoppage.menu.operation,
|
||||||
cmdType: CMD.Stand.CMD_STAND_REMOVE_FAULT,
|
cmdType: CMD.Stand.CMD_STAND_REMOVE_FAULT,
|
||||||
param: {
|
param: {
|
||||||
stationStandCode: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -307,7 +307,7 @@ export default {
|
|||||||
code: this.selected.code,
|
code: this.selected.code,
|
||||||
operation: OperationEvent.StationStand.setDetainTrain.menu.operation,
|
operation: OperationEvent.StationStand.setDetainTrain.menu.operation,
|
||||||
param:{
|
param:{
|
||||||
stationStandCode:this.selected.code
|
standCode:this.selected.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -325,7 +325,7 @@ export default {
|
|||||||
code: this.selected.code,
|
code: this.selected.code,
|
||||||
operation: OperationEvent.StationStand.cancelDetainTrain.menu.operation,
|
operation: OperationEvent.StationStand.cancelDetainTrain.menu.operation,
|
||||||
param:{
|
param:{
|
||||||
stationStandCode:this.selected.code
|
standCode:this.selected.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
@ -374,7 +374,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.setJumpStop.menu.operation,
|
operation: OperationEvent.StationStand.setJumpStop.menu.operation,
|
||||||
param:{
|
param:{
|
||||||
stationStandCode:this.selected.code
|
standCode:this.selected.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
@ -391,7 +391,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.cancelJumpStop.menu.operation,
|
operation: OperationEvent.StationStand.cancelJumpStop.menu.operation,
|
||||||
param:{
|
param:{
|
||||||
stationStandCode:this.selected.code
|
standCode:this.selected.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
@ -411,7 +411,7 @@ export default {
|
|||||||
// label: MapDeviceType.StationStand.label,
|
// label: MapDeviceType.StationStand.label,
|
||||||
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
||||||
param:{
|
param:{
|
||||||
stationStandCode: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 }) => {
|
||||||
@ -437,7 +437,7 @@ export default {
|
|||||||
// label: MapDeviceType.StationStand.label,
|
// label: MapDeviceType.StationStand.label,
|
||||||
operation: OperationEvent.StationStand.setRunLevel.menu.operation,
|
operation: OperationEvent.StationStand.setRunLevel.menu.operation,
|
||||||
param:{
|
param:{
|
||||||
stationStandCode: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 }) => {
|
||||||
@ -460,7 +460,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.earlyDeparture.menu.operation,
|
operation: OperationEvent.StationStand.earlyDeparture.menu.operation,
|
||||||
param:{
|
param:{
|
||||||
stationStandCode:this.selected.code
|
standCode:this.selected.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
@ -479,7 +479,7 @@ export default {
|
|||||||
// type: MapDeviceType.StationStand.type,
|
// type: MapDeviceType.StationStand.type,
|
||||||
operation: OperationEvent.StationStand.setBackStrategy.menu.operation,
|
operation: OperationEvent.StationStand.setBackStrategy.menu.operation,
|
||||||
param:{
|
param:{
|
||||||
stationStandCode:this.selected.code
|
standCode:this.selected.code
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -504,7 +504,7 @@ export default {
|
|||||||
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:{
|
||||||
stationStandCode: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 }) => {
|
||||||
|
@ -144,7 +144,7 @@ export default {
|
|||||||
operation: OperationEvent.StationStand.stoppage.menu.operation,
|
operation: OperationEvent.StationStand.stoppage.menu.operation,
|
||||||
cmdType: CMD.Stand.CMD_STAND_ADD_FAULT,
|
cmdType: CMD.Stand.CMD_STAND_ADD_FAULT,
|
||||||
param: {
|
param: {
|
||||||
stationStandCode: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
@ -166,7 +166,7 @@ export default {
|
|||||||
operation: OperationEvent.StationStand.cancelStoppage.menu.operation,
|
operation: OperationEvent.StationStand.cancelStoppage.menu.operation,
|
||||||
cmdType: CMD.Stand.CMD_STAND_REMOVE_FAULT,
|
cmdType: CMD.Stand.CMD_STAND_REMOVE_FAULT,
|
||||||
param: {
|
param: {
|
||||||
stationStandCode: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.setJumpStop.menu.operation,
|
operation: OperationEvent.StationStand.setJumpStop.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
stationStandCode: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
@ -205,7 +205,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.cancelJumpStop.menu.operation,
|
operation: OperationEvent.StationStand.cancelJumpStop.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
stationStandCode: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||||
@ -224,7 +224,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
stationStandCode: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
},
|
},
|
||||||
cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME
|
cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ export default {
|
|||||||
operation: OperationEvent.StationStand.stoppage.menu.operation,
|
operation: OperationEvent.StationStand.stoppage.menu.operation,
|
||||||
cmdType: CMD.Stand.CMD_STAND_ADD_FAULT,
|
cmdType: CMD.Stand.CMD_STAND_ADD_FAULT,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
||||||
@ -246,7 +246,7 @@ export default {
|
|||||||
operation: OperationEvent.StationStand.cancelStoppage.menu.operation,
|
operation: OperationEvent.StationStand.cancelStoppage.menu.operation,
|
||||||
cmdType: CMD.Stand.CMD_STAND_REMOVE_FAULT,
|
cmdType: CMD.Stand.CMD_STAND_REMOVE_FAULT,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
||||||
@ -266,7 +266,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.setDetainTrain.menu.operation,
|
operation: OperationEvent.StationStand.setDetainTrain.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -284,7 +284,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.cancelDetainTrain.menu.operation,
|
operation: OperationEvent.StationStand.cancelDetainTrain.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
||||||
@ -301,7 +301,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.cancelDetainTrainForce.menu.operation,
|
operation: OperationEvent.StationStand.cancelDetainTrainForce.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
||||||
@ -318,7 +318,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.cancelDetainTrainAll.menu.operation,
|
operation: OperationEvent.StationStand.cancelDetainTrainAll.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
||||||
@ -335,7 +335,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.setJumpStop.menu.operation,
|
operation: OperationEvent.StationStand.setJumpStop.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
||||||
@ -352,7 +352,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.cancelJumpStop.menu.operation,
|
operation: OperationEvent.StationStand.cancelJumpStop.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
||||||
@ -369,7 +369,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
operation: OperationEvent.StationStand.setStopTime.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid, response }) => {
|
this.$store.dispatch('training/next', step).then(({ valid, response }) => {
|
||||||
@ -391,7 +391,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.setRunLevel.menu.operation,
|
operation: OperationEvent.StationStand.setRunLevel.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid, response }) => {
|
this.$store.dispatch('training/next', step).then(({ valid, response }) => {
|
||||||
@ -413,7 +413,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.earlyDeparture.menu.operation,
|
operation: OperationEvent.StationStand.earlyDeparture.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
this.$store.dispatch('training/next', step).then(({ valid }) => {
|
||||||
@ -430,7 +430,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.setBackStrategy.menu.operation,
|
operation: OperationEvent.StationStand.setBackStrategy.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -453,7 +453,7 @@ export default {
|
|||||||
code: `${this.selected.code}`,
|
code: `${this.selected.code}`,
|
||||||
operation: OperationEvent.StationStand.detail.menu.operation,
|
operation: OperationEvent.StationStand.detail.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
StationStand_Code: `${this.selected.code}`
|
standCode: `${this.selected.code}`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/next', step).then(({ valid, response }) => {
|
this.$store.dispatch('training/next', step).then(({ valid, response }) => {
|
||||||
|
@ -83,6 +83,10 @@ export default {
|
|||||||
return '重开信号';
|
return '重开信号';
|
||||||
} else if (this.operation == OperationEvent.Signal.singalPassModel.menu.operation) {
|
} else if (this.operation == OperationEvent.Signal.singalPassModel.menu.operation) {
|
||||||
return '信号机控制';
|
return '信号机控制';
|
||||||
|
} else if (this.operation == OperationEvent.Signal.setAutoInterlock.menu.operation) {
|
||||||
|
return '设置通过模式';
|
||||||
|
} else if (this.operation == OperationEvent.Signal.cancelAutoInterlock.menu.operation) {
|
||||||
|
return '取消通过模式';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
@ -154,9 +158,9 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(error => {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$refs.noticeInfo.doShow(operate);
|
this.$refs.noticeInfo.doShow(operate, [error.message]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号关灯
|
// 信号关灯
|
||||||
@ -193,10 +197,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置通过模式
|
// 设置通过模式
|
||||||
@ -213,10 +217,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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消通过模式
|
// 取消通过模式
|
||||||
@ -233,10 +237,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,7 +99,8 @@ export default {
|
|||||||
signalName: '',
|
signalName: '',
|
||||||
allSelect: false,
|
allSelect: false,
|
||||||
changeList:[],
|
changeList:[],
|
||||||
commitDisabled: true
|
commitDisabled: true,
|
||||||
|
disabledLength: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -145,6 +146,7 @@ export default {
|
|||||||
this.allSelect = false;
|
this.allSelect = false;
|
||||||
this.changeList = [];
|
this.changeList = [];
|
||||||
this.commitDisabled = true;
|
this.commitDisabled = true;
|
||||||
|
this.selection = [];
|
||||||
// 如果不是断点激活,而是第一次显示则初始化
|
// 如果不是断点激活,而是第一次显示则初始化
|
||||||
if (!this.dialogShow) {
|
if (!this.dialogShow) {
|
||||||
this.signalName = '';
|
this.signalName = '';
|
||||||
@ -165,9 +167,11 @@ export default {
|
|||||||
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;
|
||||||
|
this.disabledLength++;
|
||||||
} 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;
|
||||||
|
this.disabledLength++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -187,38 +191,13 @@ export default {
|
|||||||
this.$store.dispatch('training/emitTipFresh');
|
this.$store.dispatch('training/emitTipFresh');
|
||||||
this.mouseCancelState(this.selected);
|
this.mouseCancelState(this.selected);
|
||||||
},
|
},
|
||||||
// checkTableDataSelction(data) {
|
|
||||||
// const selection = [];
|
|
||||||
// if (data && data.length > 0) {
|
|
||||||
// data.forEach(row => {
|
|
||||||
// if (row.check && !row.disabled) {
|
|
||||||
// selection.push(row);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if (JSON.stringify(selection) !== JSON.stringify(this.selection)) {
|
|
||||||
// this.handleChooseChange(selection);
|
|
||||||
// this.selection = selection;
|
|
||||||
// }
|
|
||||||
// let num = 0;
|
|
||||||
// this.allSelect = false;
|
|
||||||
// this.tempData.forEach(item => {
|
|
||||||
// if (item.check) {
|
|
||||||
// num++;
|
|
||||||
// if (num == this.tempData.length) {
|
|
||||||
// this.allSelect = true;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
changeCheck(check, code) {
|
changeCheck(check, code) {
|
||||||
if (check) {
|
if (check) {
|
||||||
this.selection.push(code);
|
this.selection.push(code);
|
||||||
} else {
|
} else {
|
||||||
this.selection.splice(this.selection.indexOf(code), 1);
|
this.selection.splice(this.selection.indexOf(code), 1);
|
||||||
}
|
}
|
||||||
if (this.selection.length >= this.tempData.length) {
|
if (this.selection.length >= (this.tempData.length - this.disabledLength) ) {
|
||||||
this.allSelect = true;
|
this.allSelect = true;
|
||||||
} else {
|
} else {
|
||||||
this.allSelect = false;
|
this.allSelect = false;
|
||||||
@ -236,6 +215,8 @@ export default {
|
|||||||
if (!item.disabled) {
|
if (!item.disabled) {
|
||||||
this.changeList.push(true);
|
this.changeList.push(true);
|
||||||
this.selection.push(item.code);
|
this.selection.push(item.code);
|
||||||
|
} else {
|
||||||
|
this.changeList.push('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.allSelect = true;
|
this.allSelect = true;
|
||||||
@ -316,7 +297,7 @@ export default {
|
|||||||
}).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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 进路交自动控
|
// 进路交自动控
|
||||||
@ -336,7 +317,7 @@ export default {
|
|||||||
}).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]);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
@ -349,7 +330,7 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
}).catch(() => {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -408,10 +408,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() {
|
||||||
|
@ -10,6 +10,7 @@ export function getBaseUrl() {
|
|||||||
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
||||||
// BASE_API = 'http://b29z135112.zicp.vip';
|
// BASE_API = 'http://b29z135112.zicp.vip';
|
||||||
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
|
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
|
||||||
|
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛
|
||||||
} else {
|
} else {
|
||||||
BASE_API = process.env.VUE_APP_BASE_API;
|
BASE_API = process.env.VUE_APP_BASE_API;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user