Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
f1822495d2
@ -7,6 +7,7 @@ class SkinCode extends defaultStyle {
|
||||
this.fontFamily = '宋体';
|
||||
this[deviceType.Section] = {
|
||||
elemnetType:['name', 'standTrackText', 'reentryTrackText', 'transferTrackText', 'destinationText', 'line', 'separator', 'speedLimit'],
|
||||
preAxleIgnoreFault: true,
|
||||
active: {
|
||||
routeColor: false // 进路触发颜色
|
||||
},
|
||||
|
@ -154,6 +154,11 @@ export default class Section extends Group {
|
||||
|
||||
/** 非通信车占用状态 03*/
|
||||
unCommunicationOccupied() {
|
||||
console.log(this.style.Section.preAxleIgnoreFault);
|
||||
if (this.style.Section.preAxleIgnoreFault && this.model.preReset) {
|
||||
return ;
|
||||
}
|
||||
|
||||
if (this.line) {
|
||||
this.line.setStyle({
|
||||
stroke: this.style.Section.line.unCommunicationOccupiedColor,
|
||||
@ -170,6 +175,10 @@ export default class Section extends Group {
|
||||
}
|
||||
/** ARB故障 */
|
||||
invalid() {
|
||||
if (this.style.Section.preAxleIgnoreFault && this.model.preReset) {
|
||||
return ;
|
||||
}
|
||||
|
||||
this.line && this.line.setStyle({
|
||||
stroke: this.style.Section.line.invalidColor,
|
||||
lineWidth: this.style.Section.line.width + this.style.Section.line.beyondWidth
|
||||
|
@ -299,7 +299,7 @@ export default {
|
||||
setStoppage() {
|
||||
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
|
||||
if (valid) {
|
||||
this.$refs.setFault.doShow(menuOperate.Common.SetFault, this.selected);
|
||||
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -114,7 +114,6 @@ export default {
|
||||
timeList() {
|
||||
const list = [
|
||||
{ value: 0, label: this.$t('menu.automatic2') }
|
||||
// { value: 1, label: '1' }
|
||||
];
|
||||
for (var i = 60; i <= this.maxRunLevel; i++) {
|
||||
list.push({ value: i, label: `${i}` });
|
||||
@ -140,7 +139,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
loadInitData(selected) {
|
||||
this.tempData = [];
|
||||
if (!this.sortStationList.length) {
|
||||
getStationList(this.$route.query.mapId).then(resp => {
|
||||
this.sortStationList = resp.data;
|
||||
@ -151,11 +149,12 @@ export default {
|
||||
}
|
||||
},
|
||||
handleTempData(selected) {
|
||||
const tempData = [];
|
||||
const stationIndex = this.sortStationList.findIndex((item) => item.code == selected.stationCode);
|
||||
if (selected.right) {
|
||||
const nextStation = this.sortStationList[stationIndex + 1];
|
||||
const nextStationStand = this.stationStandList.find(stand => stand.stationCode === nextStation.code && stand.right);
|
||||
nextStation && nextStationStand && this.tempData.push({
|
||||
nextStation && nextStationStand && tempData.push({
|
||||
name: `${nextStationStand.name}(${nextStation.name})`,
|
||||
time: selected.runLevelTime ? selected.runLevelTime : 0,
|
||||
check: !!selected.runLevelTimeForever
|
||||
@ -163,12 +162,13 @@ export default {
|
||||
} else {
|
||||
const nextStation = this.sortStationList[stationIndex - 1];
|
||||
const nextStationStand = this.stationStandList.find(stand => stand.stationCode === nextStation.code && !stand.right);
|
||||
nextStation && nextStationStand && this.tempData.push({
|
||||
nextStation && nextStationStand && tempData.push({
|
||||
name: `${nextStationStand.name}(${nextStation.name})`,
|
||||
time: selected.runLevelTime ? selected.runLevelTime : 0,
|
||||
check: !!selected.runLevelTimeForever
|
||||
});
|
||||
}
|
||||
this.tempData = tempData;
|
||||
},
|
||||
doShow(operate, selected) {
|
||||
// 如果不是断点激活窗口,而是第一次显示窗口时,需要初始化窗口数据
|
||||
@ -187,7 +187,9 @@ export default {
|
||||
|
||||
this.dialogShow = true;
|
||||
this.$nextTick(function() {
|
||||
setTimeout(() => {
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
}, 300);
|
||||
});
|
||||
},
|
||||
checkTableDataSelction(data) {
|
||||
|
@ -443,10 +443,7 @@ export default {
|
||||
{ deviceType: '03', orderNum: 3, operateCode: '4043', tip: '鼠标左键点击【确认1】按钮' },
|
||||
{ deviceType: '03', orderNum: 4, operateCode: '4044', tip: '鼠标左键点击【确认2】按钮' },
|
||||
{ deviceType: '03', orderNum: 5, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
||||
],
|
||||
config: {
|
||||
sectionTypes: ['02']
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
maxDuration: 15,
|
||||
@ -465,7 +462,10 @@ export default {
|
||||
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
|
||||
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '5' },
|
||||
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
||||
]
|
||||
],
|
||||
config: {
|
||||
sectionTypes: ['02']
|
||||
}
|
||||
},
|
||||
{
|
||||
maxDuration: 15,
|
||||
@ -483,7 +483,10 @@ export default {
|
||||
{ deviceType: '03', orderNum: 4, operateCode: '4083', tip: '鼠标左键点击【确认1】按钮' },
|
||||
{ deviceType: '03', orderNum: 5, operateCode: '4084', tip: '鼠标左键点击【确认2】按钮', val: '0' },
|
||||
{ deviceType: '03', orderNum: 6, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
|
||||
]
|
||||
],
|
||||
config: {
|
||||
sectionTypes: ['02']
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ export const OperationEvent = {
|
||||
close1: {
|
||||
operation: 'com10',
|
||||
domId: '_Tips-Cmd-Common-Close1'
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
// 取消操作
|
||||
|
@ -33,13 +33,15 @@ export default {
|
||||
watch: {
|
||||
'$store.state.training.tipEvent': function (val) {
|
||||
this.tipInit();
|
||||
this.$nextTick(function() {
|
||||
this.tipInit();
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
tipInit() {
|
||||
this.$store.dispatch('training/isTeachMode').then(() => {
|
||||
this.tipShow = true;
|
||||
this.$nextTick(() => {
|
||||
const offset = this.$store.state.config.canvasOffset;
|
||||
if (this.$store.state.training.trainingStart) {
|
||||
const order = this.$store.state.training.order;
|
||||
@ -91,7 +93,6 @@ export default {
|
||||
} else {
|
||||
this.tipShow = false;
|
||||
}
|
||||
});
|
||||
}).catch(() => {
|
||||
this.tipShow = false;
|
||||
});
|
||||
|
@ -70,32 +70,34 @@ export default {
|
||||
falseValue: false,
|
||||
id: '',
|
||||
height: 800,
|
||||
initData: {
|
||||
upRight: false,
|
||||
signalApproachOnlyOne: false,
|
||||
signalApproachOnlyNpSwitch: false,
|
||||
routeNameUseEndOppositeSignalName: false,
|
||||
generateTbRoute: false,
|
||||
tbRouteNameUseEndOppositeSignalName: false,
|
||||
routeSignalAlwaysGreen: false,
|
||||
routeApartByOverlap: false,
|
||||
overlapOnlySwitch: false,
|
||||
overlapSwitchNpOnly: false,
|
||||
overlapSignalOppositeSwitchNpOnly: false,
|
||||
overlapOnlyOneSwitch: false,
|
||||
generateCycle: false,
|
||||
routeButton: false,
|
||||
likeHa1: false,
|
||||
getNearlySignal: false,
|
||||
overlapSettingByTrigger: false,
|
||||
overlapReleaseTime: 45,
|
||||
routeReleaseTime: 60
|
||||
},
|
||||
// initData: {
|
||||
// upRight: false,
|
||||
// signalApproachOnlyOne: false,
|
||||
// signalApproachOnlyNpSwitch: false,
|
||||
// routeNameUseEndOppositeSignalName: false,
|
||||
// generateTbRoute: false,
|
||||
// tbRouteNameUseEndOppositeSignalName: false,
|
||||
// routeSignalAlwaysGreen: false,
|
||||
// routeApartByOverlap: false,
|
||||
// overlapOnlySwitch: false,
|
||||
// overlapSwitchNpOnly: false,
|
||||
// overlapSignalOppositeSwitchNpOnly: false,
|
||||
// overlapOnlyOneSwitch: false,
|
||||
// generateCycle: false,
|
||||
// routeButton: false,
|
||||
// likeHa1: false,
|
||||
// getNearlySignal: false,
|
||||
// overlapSettingByTrigger: false,
|
||||
// generateFls:false,
|
||||
// signalApproachNotPassPreSignal:false,
|
||||
// overlapReleaseTime: 45,
|
||||
// routeReleaseTime: 60
|
||||
// },
|
||||
roadData: [],
|
||||
focus: false,
|
||||
booleanList: ['upRight', 'lockFirst', 'switchSingleHandle', 'signalApproachOnlyOne', 'signalApproachOnlyNpSwitch',
|
||||
'routeNameUseEndOppositeSignalName', 'generateTbRoute', 'tbRouteNameUseEndOppositeSignalName', 'routeSignalAlwaysGreen',
|
||||
'routeApartByOverlap', 'overlapOnlySwitch', 'overlapSwitchNpOnly', 'overlapSignalOppositeSwitchNpOnly', 'overlapOnlyOneSwitch', 'generateCycle', 'routeButton', 'likeHa1', 'getNearlySignal', 'overlapSettingByTrigger', 'generateFls'],
|
||||
'routeApartByOverlap', 'overlapOnlySwitch', 'overlapSwitchNpOnly', 'overlapSignalOppositeSwitchNpOnly', 'overlapOnlyOneSwitch', 'generateCycle', 'routeButton', 'likeHa1', 'getNearlySignal', 'overlapSettingByTrigger', 'generateFls', 'signalApproachNotPassPreSignal'],
|
||||
selectList: [],
|
||||
numberList: ['overlapReleaseTime', 'routeReleaseTime'],
|
||||
optionsMap: {
|
||||
@ -123,7 +125,8 @@ export default {
|
||||
likeHa1: '是否类似哈尔滨一号线,联锁分为ATP信号、地面信号、引导信号',
|
||||
getNearlySignal: '生成进路信号按钮,进路信号按钮是否取最近的一个信号机',
|
||||
overlapSettingByTrigger: '延续保护的建立方式:是-通过触发建立,否-随进路建立',
|
||||
generateFls: '是否生成侧防:是-生成侧防,不要联动道岔,否-不生成侧防,用联动道岔'
|
||||
generateFls: '是否生成侧防:是-生成侧防,不要联动道岔,否-不生成侧防,用联动道岔',
|
||||
signalApproachNotPassPreSignal:'信号机接近区段不跨过前方同向信号机'
|
||||
}
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user