代码调整
This commit is contained in:
parent
de898b77ed
commit
0093b8bae1
@ -867,12 +867,12 @@ class SkinCode extends defaultStyle {
|
||||
type: '03',
|
||||
serviceNumber: '---',
|
||||
// nameFormat: 'groupNumber:serviceNumber'
|
||||
nameFormat:'tripNumber'
|
||||
nameFormat:'groupNumber'
|
||||
},
|
||||
{
|
||||
type: '03',
|
||||
// nameFormat: 'serviceNumber:trainNumber'
|
||||
nameFormat:'tripNumber'
|
||||
nameFormat:'groupNumber'
|
||||
}
|
||||
], // 特殊列车类型需设置显示格式
|
||||
lrPadding: 4, // 两边间隔
|
||||
@ -881,7 +881,7 @@ class SkinCode extends defaultStyle {
|
||||
trainSidelineColor: '#F00',
|
||||
trainSidelineStopColor: '#000',
|
||||
// trainNameFormat: 'serviceNumber:targetCode'// 列车显示格式
|
||||
trainNameFormat:'tripNumber'
|
||||
trainNameFormat:'groupNumber'
|
||||
},
|
||||
directionArrow: {
|
||||
},
|
||||
|
@ -2,7 +2,7 @@ import Group from 'zrender/src/container/Group';
|
||||
import TrainBodyBox from './TrainBodyBox';
|
||||
// import '../StationStand/EDetain';
|
||||
import ETextName from '../element/ETextName'; // 名称文字 (共有)
|
||||
import EMouse from './EMouse';
|
||||
// import EMouse from './EMouse';
|
||||
import store from '@/store/index';
|
||||
import Circle from 'zrender/src/graphic/shape/Circle';
|
||||
import BoundingRect from 'zrender/src/core/BoundingRect';
|
||||
@ -21,26 +21,26 @@ export default class TrainBody extends Group {
|
||||
}
|
||||
|
||||
createMouse() {
|
||||
this.mouseEvent = new EMouse(this);
|
||||
this.add(this.mouseEvent);
|
||||
if (this.deviceModel.__down) {
|
||||
store.dispatch('map/setTrainDetails', this.deviceModel);
|
||||
this.mouseEvent.mouseover();
|
||||
}
|
||||
if (this.deviceModel.__click) {
|
||||
this.mouseEvent.mouseClick();
|
||||
}
|
||||
this.on('mouseover', () => {
|
||||
store.dispatch('map/setTrainDetails', this.deviceModel);
|
||||
this.mouseEvent.mouseover();
|
||||
});
|
||||
this.on('mouseout', () => {
|
||||
store.dispatch('map/setTrainDetails', null);
|
||||
this.mouseEvent.mouseout();
|
||||
});
|
||||
this.on('click', () => {
|
||||
this.mouseEvent.mouseClick();
|
||||
});
|
||||
// this.mouseEvent = new EMouse(this);
|
||||
// this.add(this.mouseEvent);
|
||||
// if (this.deviceModel.__down) {
|
||||
// store.dispatch('map/setTrainDetails', this.deviceModel);
|
||||
// this.mouseEvent.mouseover();
|
||||
// }
|
||||
// if (this.deviceModel.__click) {
|
||||
// this.mouseEvent.mouseClick();
|
||||
// }
|
||||
// this.on('mouseover', () => {
|
||||
// store.dispatch('map/setTrainDetails', this.deviceModel);
|
||||
// this.mouseEvent.mouseover();
|
||||
// });
|
||||
// this.on('mouseout', () => {
|
||||
// store.dispatch('map/setTrainDetails', null);
|
||||
// this.mouseEvent.mouseout();
|
||||
// });
|
||||
// this.on('click', () => {
|
||||
// this.mouseEvent.mouseClick();
|
||||
// });
|
||||
}
|
||||
|
||||
create() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
v-dialogDrag
|
||||
title="Train operation"
|
||||
title="Train Control"
|
||||
:visible.sync="dialogVisible"
|
||||
width="30%"
|
||||
:modal="false"
|
||||
|
Loading…
Reference in New Issue
Block a user