列表表号调整
This commit is contained in:
parent
30e5445997
commit
6cbbbc2df8
@ -453,11 +453,11 @@ class TrainHoverLabel extends Container {
|
||||
fill: labelConsts.textColor,
|
||||
fontSize: labelConsts.codeFontSize,
|
||||
};
|
||||
let codeA = states.groupId;
|
||||
const firstChar = codeA.substring(0, 1); // 获取首字符
|
||||
if (+firstChar == states.lineId) {
|
||||
codeA = codeA.substring(1); // 删除首字符是线路号的字符
|
||||
}
|
||||
const codeA = states.groupId;
|
||||
// const firstChar = codeA.substring(0, 1); // 获取首字符
|
||||
// if (+firstChar == states.lineId) {
|
||||
// codeA = codeA.substring(1); // 删除首字符是线路号的字符
|
||||
// }
|
||||
const text = `列车类型:计划车\n来 源:人工标记\n车 组 号:${codeA}\n表 号:${states.trainId}\n车 次 号:${states.globalId}\n线 路 号:${states.lineId}`;
|
||||
this.sText.text = text;
|
||||
this.sText.style = style;
|
||||
|
@ -251,11 +251,12 @@ export class TrainBody extends Container {
|
||||
const codeAGraph = this.codeAGraph;
|
||||
const codeBGraph = this.codeBGraph;
|
||||
// const codeRact = this.codeRact;
|
||||
let codeA = states?.groupId;
|
||||
const firstChar = codeA.substring(0, 1); // 获取首字符
|
||||
if (+firstChar == states.lineId) {
|
||||
codeA = codeA.substring(1); // 删除首字符是线路号的字符
|
||||
}
|
||||
let codeA = states.trainId;
|
||||
// let codeA = states?.groupId;
|
||||
// const firstChar = codeA.substring(0, 1); // 获取首字符
|
||||
// if (+firstChar == states.lineId) {
|
||||
// codeA = codeA.substring(1); // 删除首字符是线路号的字符
|
||||
// }
|
||||
const fillAColor = BBBColorEnum.schedule;
|
||||
let fillBColor = BBBColorEnum.schedule;
|
||||
if (states.mode?.ipModeTrainTypeSchedule) {
|
||||
|
Loading…
Reference in New Issue
Block a user