Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
0bf64a3bed
@ -33,6 +33,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
document.onmousemove = function (e) {
|
document.onmousemove = function (e) {
|
||||||
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
let cY = e.clientY;
|
let cY = e.clientY;
|
||||||
if (cY < oY) {
|
if (cY < oY) {
|
||||||
|
@ -213,8 +213,7 @@ export default class Switch extends Group {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.style.Switch.switchDot.show) {
|
if (this.style.Switch.switchDot && this.style.Switch.switchDot.show) {
|
||||||
console.log(this.style.Switch.switchDot.show)
|
|
||||||
const { drictx, dricty } = this.triangle
|
const { drictx, dricty } = this.triangle
|
||||||
this.dot = new ESwDot(model, drictx, dricty)
|
this.dot = new ESwDot(model, drictx, dricty)
|
||||||
this.add(this.dot)
|
this.add(this.dot)
|
||||||
@ -516,7 +515,7 @@ export default class Switch extends Group {
|
|||||||
this.lockArc.setStyle({ stroke: this.style.Switch.arcBlcok.inversionColor });
|
this.lockArc.setStyle({ stroke: this.style.Switch.arcBlcok.inversionColor });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.style.Switch.switchDot.show) {
|
if (this.style.Switch.switchDot && this.style.Switch.switchDot.show) {
|
||||||
this.dot.show()
|
this.dot.show()
|
||||||
this.dot.setColor(this.style.Switch.switchDot.monoLockColor)
|
this.dot.setColor(this.style.Switch.switchDot.monoLockColor)
|
||||||
}
|
}
|
||||||
@ -573,7 +572,7 @@ export default class Switch extends Group {
|
|||||||
this.lockRect.setStyle({ stroke: this.style.Switch.rectLock.blockColor, fill: this.style.Switch.rectLock.blockFillColor });
|
this.lockRect.setStyle({ stroke: this.style.Switch.rectLock.blockColor, fill: this.style.Switch.rectLock.blockFillColor });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.style.Switch.switchDot.show) {
|
if (this.style.Switch.switchDot && this.style.Switch.switchDot.show) {
|
||||||
this.dot.show()
|
this.dot.show()
|
||||||
this.dot.setColor(this.style.Switch.switchDot.lockColor)
|
this.dot.setColor(this.style.Switch.switchDot.lockColor)
|
||||||
}
|
}
|
||||||
|
@ -609,6 +609,22 @@ export const menuOperate = {
|
|||||||
operation: OperationEvent.CTCCommand.agreeNotcie.menu.operation,
|
operation: OperationEvent.CTCCommand.agreeNotcie.menu.operation,
|
||||||
cmdType: CMD.CTC.CTC_AGREE_NOTICE
|
cmdType: CMD.CTC.CTC_AGREE_NOTICE
|
||||||
},
|
},
|
||||||
|
// 取消到达
|
||||||
|
cancleArrive:{
|
||||||
|
operation: OperationEvent.CTCCommand.cancleArrive.menu.operation,
|
||||||
|
cmdType: CMD.CTC.CTC_LOG_CANCEL_ARRIVE
|
||||||
|
},
|
||||||
|
// 取消出发
|
||||||
|
cancleDepature:{
|
||||||
|
operation: OperationEvent.CTCCommand.cancleDepature.menu.operation,
|
||||||
|
cmdType: CMD.CTC.CTC_LOG_CANCEL_DEPARTURE
|
||||||
|
},
|
||||||
|
// 取消闭塞
|
||||||
|
cancleBlock:{
|
||||||
|
operation: OperationEvent.CTCCommand.cancleBlock.menu.operation,
|
||||||
|
cmdType: CMD.CTC.CTC_LOG_CANCEL_BLOCK
|
||||||
|
},
|
||||||
|
|
||||||
// 增加列车固定径路
|
// 增加列车固定径路
|
||||||
addTrainFixedPath:{
|
addTrainFixedPath:{
|
||||||
operation: OperationEvent.CTCCommand.addTrainFixedPath.menu.operation,
|
operation: OperationEvent.CTCCommand.addTrainFixedPath.menu.operation,
|
||||||
|
@ -64,9 +64,9 @@
|
|||||||
<div class="runplanContentBtn">出发(F4)</div>
|
<div class="runplanContentBtn">出发(F4)</div>
|
||||||
<div class="runplanContentBtn">通过(F11)</div>
|
<div class="runplanContentBtn">通过(F11)</div>
|
||||||
<div class="runplanContentBtn">邻站(F6)</div>
|
<div class="runplanContentBtn">邻站(F6)</div>
|
||||||
<div class="runplanContentBtn">取消接车(Esc)</div>
|
<div class="runplanContentBtn" @click="cancleArrive">取消接车(Esc)</div>
|
||||||
<div class="runplanContentBtn">取消闭塞(F6)</div>
|
<div class="runplanContentBtn" @click="cancleBlock">取消闭塞(F6)</div>
|
||||||
<div class="runplanContentBtn">取消发车(F7)</div>
|
<div class="runplanContentBtn" @click="cancleDepature">取消发车(F7)</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="runplanContentR">
|
<div class="runplanContentR">
|
||||||
@ -655,6 +655,7 @@ export default {
|
|||||||
: prev.arriveRunPlan ? (prev.arriveRunPlan.actualTime || prev.arriveRunPlan.planTime) : '00:00:00';
|
: prev.arriveRunPlan ? (prev.arriveRunPlan.actualTime || prev.arriveRunPlan.planTime) : '00:00:00';
|
||||||
const nextPlanTime = next.departRunPlan ? (next.departRunPlan.actualTime || next.departRunPlan.planTime)
|
const nextPlanTime = next.departRunPlan ? (next.departRunPlan.actualTime || next.departRunPlan.planTime)
|
||||||
: next.arriveRunPlan ? (next.arriveRunPlan.actualTime || next.arriveRunPlan.planTime) : '00:00:00';
|
: next.arriveRunPlan ? (next.arriveRunPlan.actualTime || next.arriveRunPlan.planTime) : '00:00:00';
|
||||||
|
// console.log(prevPlanTime, nextPlanTime, '66666666');
|
||||||
// const nextPlanTime = next.departRunPlan ? next.departRunPlan.planTime : next.arriveRunPlan ? next.arriveRunPlan.planTime : '00:00:00';
|
// const nextPlanTime = next.departRunPlan ? next.departRunPlan.planTime : next.arriveRunPlan ? next.arriveRunPlan.planTime : '00:00:00';
|
||||||
return new Date('2000-06-18 ' + prevPlanTime).getTime() - new Date('2000-06-18 ' + nextPlanTime).getTime();
|
return new Date('2000-06-18 ' + prevPlanTime).getTime() - new Date('2000-06-18 ' + nextPlanTime).getTime();
|
||||||
});
|
});
|
||||||
@ -710,6 +711,9 @@ export default {
|
|||||||
this.stageRunplan();
|
this.stageRunplan();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// Esc
|
||||||
|
// F6
|
||||||
|
// F7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -877,7 +881,7 @@ export default {
|
|||||||
// && this.currentRow.departRunPlan && this.currentRow.departRunPlan.adjacentMessage == 0
|
// && this.currentRow.departRunPlan && this.currentRow.departRunPlan.adjacentMessage == 0
|
||||||
if (this.currentRow && this.currentRow.departRunPlan) {
|
if (this.currentRow && this.currentRow.departRunPlan) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
commitOperate(menuOperate.CTC.sendNotcie, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 2).then(({valid})=>{
|
commitOperate(menuOperate.CTC.sendNotcie, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 3).then(({valid})=>{
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.clearRpRow();
|
this.clearRpRow();
|
||||||
// if (valid) {
|
// if (valid) {
|
||||||
@ -892,10 +896,11 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 同意发车预告
|
// 取消接车
|
||||||
agreeNotcie() {
|
cancleArrive() {
|
||||||
if (this.currentRow && this.currentRow.arriveRunPlan && this.currentRow.arriveRunPlan.adjacentMessage == 1) {
|
if (this.currentRow && this.currentRow.arriveRunPlan) {
|
||||||
commitOperate(menuOperate.CTC.agreeNotcie, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 2).then(({valid})=>{
|
// 取消到达
|
||||||
|
commitOperate(menuOperate.CTC.cancleArrive, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 3).then(({valid})=>{
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.clearRpRow();
|
this.clearRpRow();
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@ -904,7 +909,59 @@ export default {
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.clearRpRow();
|
this.clearRpRow();
|
||||||
|
this.noticeInfo();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 取消发车
|
||||||
|
cancleDepature() {
|
||||||
|
if (this.currentRow && this.currentRow.departRunPlan) {
|
||||||
|
commitOperate(menuOperate.CTC.cancleDepature, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 3).then(({valid})=>{
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
|
if (valid) {
|
||||||
// this.doClose();
|
// this.doClose();
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
|
this.noticeInfo();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 取消闭塞
|
||||||
|
cancleBlock() {
|
||||||
|
if (this.currentRow &&
|
||||||
|
(
|
||||||
|
(this.currentRow.departRunPlan && this.currentRow.departRunPlan.adjacentMessage == 1) ||
|
||||||
|
(this.currentRow.arriveRunPlan && this.currentRow.arriveRunPlan.adjacentMessage == 1)
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
commitOperate(menuOperate.CTC.cancleBlock, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 3).then(({valid})=>{
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
|
if (valid) {
|
||||||
|
// this.doClose();
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
|
this.noticeInfo();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 同意发车预告
|
||||||
|
agreeNotcie() {
|
||||||
|
if (this.currentRow && this.currentRow.arriveRunPlan && this.currentRow.arriveRunPlan.adjacentMessage == 1) {
|
||||||
|
commitOperate(menuOperate.CTC.agreeNotcie, {stationCode:this.currentRow.stationCode, runPlanCode: this.currentRow.code}, 3).then(({valid})=>{
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
|
if (valid) {
|
||||||
|
// this.doClose();
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.clearRpRow();
|
||||||
this.noticeInfo();
|
this.noticeInfo();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -406,6 +406,10 @@ export default {
|
|||||||
CTC_MODIFY_TRIP_NUMBER:{value: 'CTC_MODIFY_TRIP_NUMBER', label: '修改车次号(大铁CTC)'},
|
CTC_MODIFY_TRIP_NUMBER:{value: 'CTC_MODIFY_TRIP_NUMBER', label: '修改车次号(大铁CTC)'},
|
||||||
CTC_SEND_NOTICE:{value: 'CTC_SEND_NOTICE', label: '发送发车预告'},
|
CTC_SEND_NOTICE:{value: 'CTC_SEND_NOTICE', label: '发送发车预告'},
|
||||||
CTC_AGREE_NOTICE:{value: 'CTC_AGREE_NOTICE', label: '同意发车预告'},
|
CTC_AGREE_NOTICE:{value: 'CTC_AGREE_NOTICE', label: '同意发车预告'},
|
||||||
|
CTC_LOG_CANCEL_ARRIVE:{value: 'CTC_LOG_CANCEL_ARRIVE', label: '取消到达'},
|
||||||
|
CTC_LOG_CANCEL_DEPARTURE:{value: 'CTC_LOG_CANCEL_DEPARTURE', label: '取消出发'},
|
||||||
|
CTC_LOG_CANCEL_BLOCK:{value: 'CTC_LOG_CANCEL_BLOCK', label: '取消闭塞'},
|
||||||
|
|
||||||
CTC_ADD_RUN_PLAN_LIST_TO_EDIT_AREA:{value: 'CTC_ADD_RUN_PLAN_LIST_TO_EDIT_AREA', label: '增加列车固定径路'},
|
CTC_ADD_RUN_PLAN_LIST_TO_EDIT_AREA:{value: 'CTC_ADD_RUN_PLAN_LIST_TO_EDIT_AREA', label: '增加列车固定径路'},
|
||||||
CTC_COVER_RUN_PLAN_LIST_TO_EDIT_AREA:{value: 'CTC_COVER_RUN_PLAN_LIST_TO_EDIT_AREA', label: '导入列车固定径路'},
|
CTC_COVER_RUN_PLAN_LIST_TO_EDIT_AREA:{value: 'CTC_COVER_RUN_PLAN_LIST_TO_EDIT_AREA', label: '导入列车固定径路'},
|
||||||
CTC_REMOVE_RUN_PLAN_FROM_EDIT_AREA:{value: 'CTC_REMOVE_RUN_PLAN_FROM_EDIT_AREA', label: '删除列车固定径路'},
|
CTC_REMOVE_RUN_PLAN_FROM_EDIT_AREA:{value: 'CTC_REMOVE_RUN_PLAN_FROM_EDIT_AREA', label: '删除列车固定径路'},
|
||||||
|
@ -3855,7 +3855,29 @@ export const OperationEvent = {
|
|||||||
operation: '1136',
|
operation: '1136',
|
||||||
domId: '_Tips-CTC-modifyDispatcherLogerRpDirection-Menu{TOP}'
|
domId: '_Tips-CTC-modifyDispatcherLogerRpDirection-Menu{TOP}'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// 取消到达
|
||||||
|
cancleArrive:{
|
||||||
|
menu: {
|
||||||
|
operation: '1137',
|
||||||
|
domId: '_Tips-CTC-cancleArrive-Menu{TOP}'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// 取消出发
|
||||||
|
cancleDepature:{
|
||||||
|
menu: {
|
||||||
|
operation: '1138',
|
||||||
|
domId: '_Tips-CTC-cancleDepature-Menu{TOP}'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 取消闭塞
|
||||||
|
cancleBlock:{
|
||||||
|
menu: {
|
||||||
|
operation: '1139',
|
||||||
|
domId: '_Tips-CTC-cancleBlock-Menu{TOP}'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// CTC_ZONE_SAVE_TRIP_NUMBER
|
// CTC_ZONE_SAVE_TRIP_NUMBER
|
||||||
// CTC_ZONE_SAVE_STATION
|
// CTC_ZONE_SAVE_STATION
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user