西安线路调整

This commit is contained in:
fan 2020-05-22 14:47:19 +08:00
parent acfab51e85
commit 32eb7faada
4 changed files with 19 additions and 3 deletions

View File

@ -594,7 +594,10 @@ class SkinCode extends defaultStyle {
trainTargetOffset: { x: 42, y: 1}, // 列车车次号偏移 trainTargetOffset: { x: 42, y: 1}, // 列车车次号偏移
smallColor: '#70ECEE', // 小交路颜色 smallColor: '#70ECEE', // 小交路颜色
bigColor: '#FFFFFF', // 大交路颜色 bigColor: '#FFFFFF', // 大交路颜色
inboundColor: '#00FF00' // 回库颜色 inboundColor: '#00FF00', // 回库颜色
planTypeColor: '#FFFFFF', // 计划车颜色
manualTypeColor: '#FF0', // 人工车
headTypeColor: '#FF0' // 头码车
}, },
trainTargetNumber: { trainTargetNumber: {
groupNumberPrefix: '000', // 车组号前缀 groupNumberPrefix: '000', // 车组号前缀

View File

@ -316,6 +316,15 @@ export default class TrainBody extends Group {
this.style.Train.trainTarget.inboundColor && this.textTrainTarget && this.textTrainTarget.setStyle({textFill: this.style.Train.trainTarget.inboundColor}); this.style.Train.trainTarget.inboundColor && this.textTrainTarget && this.textTrainTarget.setStyle({textFill: this.style.Train.trainTarget.inboundColor});
} }
} }
setTrainTypeColor(type) {
if (type === 'PLAN') {
this.style.Train.trainTarget.planTypeColor && this.textTrainTarget && this.textTrainTarget.setStyle({textFill: this.style.Train.trainTarget.planTypeColor});
} else if (type === 'MANUAL') {
this.style.Train.trainTarget.manualTypeColor && this.textTrainTarget && this.textTrainTarget.setStyle({textFill: this.style.Train.trainTarget.manualTypeColor});
} else if (type === 'HEAD') {
this.style.Train.trainTarget.headTypeColor && this.textTrainTarget && this.textTrainTarget.setStyle({textFill: this.style.Train.trainTarget.headTypeColor});
}
}
setSoonerOrLater(dt) { setSoonerOrLater(dt) {
if (this.style.Train.soonerOrLater && this.style.Train.soonerOrLater.level === 5) { if (this.style.Train.soonerOrLater && this.style.Train.soonerOrLater.level === 5) {
if (dt > 120) { if (dt > 120) {

View File

@ -409,6 +409,7 @@ export default class Train extends Group {
this.setJumpStatus(model.jump); this.setJumpStatus(model.jump);
this.setSoonerOrLater(model.dt); this.setSoonerOrLater(model.dt);
this.setPlanRoutingTypeColor(model.planRoutingType); this.setPlanRoutingTypeColor(model.planRoutingType);
this.setTrainTypeColor(model.type);
const style = this.style; const style = this.style;
if (style.Section.trainPosition.display) { if (style.Section.trainPosition.display) {
this.updateSection(object); this.updateSection(object);
@ -428,7 +429,10 @@ export default class Train extends Group {
// this.setTrainTypeStatus(model.type); // 根据列车类型设置列车识别号样式 // this.setTrainTypeStatus(model.type); // 根据列车类型设置列车识别号样式
// } // }
} }
setPlanRoutingTypeColor(planRoutingType) { setTrainTypeColor(type) {
this.trainB && this.trainB.setTrainTypeColor(type);
}
setPlanRoutingTypeColor(planRoutingType) {
this.trainB && this.trainB.setPlanRoutingTypeColor(planRoutingType); this.trainB && this.trainB.setPlanRoutingTypeColor(planRoutingType);
} }
// 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度 // 是否根据车身上车组号、服务号、车次号、目的地码显示情况改变列车长度

View File

@ -14,7 +14,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="开日期:" prop="startDate"> <el-form-item label="开日期:" prop="startDate">
<el-date-picker <el-date-picker
v-model="formModel.startDate" v-model="formModel.startDate"
type="date" type="date"