merge
This commit is contained in:
commit
32b785280e
@ -673,6 +673,7 @@ class SkinCode extends defaultStyle {
|
|||||||
{status: '07', showColor: '#FFFF00'}
|
{status: '07', showColor: '#FFFF00'}
|
||||||
], // 目的地状态 01准点 02早点 03严重早点 04晚点 05严重晚点 06头码车 07ATP切除
|
], // 目的地状态 01准点 02早点 03严重早点 04晚点 05严重晚点 06头码车 07ATP切除
|
||||||
destinationStatusSetText: 'trainServer', // 目的地状态设置的对应哪个text的颜色
|
destinationStatusSetText: 'trainServer', // 目的地状态设置的对应哪个text的颜色
|
||||||
|
runLineHide: true, // 运行时列车line 竖杆隐藏
|
||||||
directionType: [
|
directionType: [
|
||||||
{
|
{
|
||||||
type: 1,
|
type: 1,
|
||||||
|
@ -122,7 +122,6 @@ class MouseController extends Eventful {
|
|||||||
this._dragging = false;
|
this._dragging = false;
|
||||||
}
|
}
|
||||||
if (this._zoomOnMouseWheel && this.$jmap.mapDevice['check_box'] && this._previewOrMapDraw ) {
|
if (this._zoomOnMouseWheel && this.$jmap.mapDevice['check_box'] && this._previewOrMapDraw ) {
|
||||||
console.log(this.isMoveRight, 'mouseup');
|
|
||||||
this.eventTarget = this.$jmap.mapDevice['check_box'].instance;
|
this.eventTarget = this.$jmap.mapDevice['check_box'].instance;
|
||||||
this.handleBoundingRect(this.eventTarget);
|
this.handleBoundingRect(this.eventTarget);
|
||||||
let em;
|
let em;
|
||||||
|
@ -232,9 +232,9 @@ export default class Train extends Group {
|
|||||||
let lineRShow = item.lineRShow;
|
let lineRShow = item.lineRShow;
|
||||||
let arrowRShow = item.arrowRShow;
|
let arrowRShow = item.arrowRShow;
|
||||||
if (flag) {
|
if (flag) {
|
||||||
lineLShow = !item.lineLShow;
|
lineLShow = !item.lineLShow && !this.style.Train.trainStatusStyle.runLineHide;
|
||||||
arrowLShow = !item.arrowLShow;
|
arrowLShow = !item.arrowLShow;
|
||||||
lineRShow = !item.lineRShow;
|
lineRShow = !item.lineRShow && !this.style.Train.trainStatusStyle.runLineHide;
|
||||||
arrowRShow = !item.arrowRShow;
|
arrowRShow = !item.arrowRShow;
|
||||||
}
|
}
|
||||||
this.trainL && this.trainL.setLineShow(lineLShow);
|
this.trainL && this.trainL.setLineShow(lineLShow);
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
<el-option
|
<el-option
|
||||||
v-for="item in trainList"
|
v-for="item in trainList"
|
||||||
:key="item.code"
|
:key="item.code"
|
||||||
|
:disabled="disabledTrain(item.code)"
|
||||||
:label="item.code"
|
:label="item.code"
|
||||||
:value="item.code"
|
:value="item.code"
|
||||||
/>
|
/>
|
||||||
@ -106,8 +107,6 @@ export default {
|
|||||||
this.$root.$emit('dialogOpen', selected);
|
this.$root.$emit('dialogOpen', selected);
|
||||||
this.selected = selected;
|
this.selected = selected;
|
||||||
// 如果不是断点激活,则需要对初始值进行初始化
|
// 如果不是断点激活,则需要对初始值进行初始化
|
||||||
// if (!this.dialogShow) {
|
|
||||||
// }
|
|
||||||
this.addModel.sectionCode = selected.code;
|
this.addModel.sectionCode = selected.code;
|
||||||
this.dialogShow = true;
|
this.dialogShow = true;
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
@ -148,12 +147,14 @@ export default {
|
|||||||
const operate = {
|
const operate = {
|
||||||
operation: OperationEvent.Command.cancel.menu.operation
|
operation: OperationEvent.Command.cancel.menu.operation
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => { this.doClose(); });
|
}).catch(() => { this.doClose(); });
|
||||||
|
},
|
||||||
|
disabledTrain(code) {
|
||||||
|
return this.$store.state.map.activeTrainList.includes(code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1030,6 +1030,12 @@ const map = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
const train = state.mapDevice[data.code];
|
||||||
|
if (train.physicalCode) {
|
||||||
|
const section = state.mapDevice[train.physicalCode];
|
||||||
|
const station = section ? state.mapDevice[section.stationCode] : {};
|
||||||
|
isExist = isExist || station.depot;
|
||||||
|
}
|
||||||
if (!isExist) {
|
if (!isExist) {
|
||||||
state.activeTrainList.push(data.code);
|
state.activeTrainList.push(data.code);
|
||||||
state.activeTrainListChange += 1;
|
state.activeTrainListChange += 1;
|
||||||
|
@ -133,7 +133,6 @@ export default {
|
|||||||
this.addModel.modelCode = '';
|
this.addModel.modelCode = '';
|
||||||
this.$emit('dispatch', { callback: 'delTrainMode', params: code});
|
this.$emit('dispatch', { callback: 'delTrainMode', params: code});
|
||||||
},
|
},
|
||||||
// 14
|
|
||||||
handleConfirm() {
|
handleConfirm() {
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
@ -112,7 +112,8 @@ export default {
|
|||||||
'checkDirectionWhenSetHead',
|
'checkDirectionWhenSetHead',
|
||||||
'transferRouteCanOnlyFaultUnlock',
|
'transferRouteCanOnlyFaultUnlock',
|
||||||
'setManualWhenHeadTrainArriveTarget',
|
'setManualWhenHeadTrainArriveTarget',
|
||||||
'routeDefaultCheckConflict'
|
'routeDefaultCheckConflict',
|
||||||
|
'tripNumberIsUnique'
|
||||||
],
|
],
|
||||||
selectList: ['runMode', 'singleApproachLockCancelRoute'],
|
selectList: ['runMode', 'singleApproachLockCancelRoute'],
|
||||||
generalConfig: [
|
generalConfig: [
|
||||||
@ -158,7 +159,8 @@ export default {
|
|||||||
'checkDirectionWhenSetHead',
|
'checkDirectionWhenSetHead',
|
||||||
'transferRouteCanOnlyFaultUnlock',
|
'transferRouteCanOnlyFaultUnlock',
|
||||||
'setManualWhenHeadTrainArriveTarget',
|
'setManualWhenHeadTrainArriveTarget',
|
||||||
'routeDefaultCheckConflict'
|
'routeDefaultCheckConflict',
|
||||||
|
'tripNumberIsUnique'
|
||||||
],
|
],
|
||||||
rangeList: ['noParkingSM', 'parkingSM'],
|
rangeList: ['noParkingSM', 'parkingSM'],
|
||||||
speedList: ['rmAtpSpeed', 'urmAtpSpeed'],
|
speedList: ['rmAtpSpeed', 'urmAtpSpeed'],
|
||||||
@ -210,7 +212,8 @@ export default {
|
|||||||
checkDirectionWhenSetHead: '设置头码车时检查方向',
|
checkDirectionWhenSetHead: '设置头码车时检查方向',
|
||||||
transferRouteCanOnlyFaultUnlock: '转换轨进路只能通过故障解锁来取消',
|
transferRouteCanOnlyFaultUnlock: '转换轨进路只能通过故障解锁来取消',
|
||||||
setManualWhenHeadTrainArriveTarget: '头码车抵达目的地后变为人工车',
|
setManualWhenHeadTrainArriveTarget: '头码车抵达目的地后变为人工车',
|
||||||
routeDefaultCheckConflict: '进路默认开启冲突检测'
|
routeDefaultCheckConflict: '进路默认开启冲突检测',
|
||||||
|
tripNumberIsUnique: '运行图中车次号是否唯一'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user