列表表号调整

This commit is contained in:
dong 2023-11-02 12:01:02 +08:00
parent 30e5445997
commit 6cbbbc2df8
2 changed files with 11 additions and 10 deletions

View File

@ -453,11 +453,11 @@ class TrainHoverLabel extends Container {
fill: labelConsts.textColor, fill: labelConsts.textColor,
fontSize: labelConsts.codeFontSize, fontSize: labelConsts.codeFontSize,
}; };
let codeA = states.groupId; const codeA = states.groupId;
const firstChar = codeA.substring(0, 1); // 获取首字符 // const firstChar = codeA.substring(0, 1); // 获取首字符
if (+firstChar == states.lineId) { // if (+firstChar == states.lineId) {
codeA = codeA.substring(1); // 删除首字符是线路号的字符 // codeA = codeA.substring(1); // 删除首字符是线路号的字符
} // }
const text = `列车类型:计划车\n来 源:人工标记\n车 组 号:${codeA}\n表 号:${states.trainId}\n车 次 号:${states.globalId}\n线 路 号:${states.lineId}`; const text = `列车类型:计划车\n来 源:人工标记\n车 组 号:${codeA}\n表 号:${states.trainId}\n车 次 号:${states.globalId}\n线 路 号:${states.lineId}`;
this.sText.text = text; this.sText.text = text;
this.sText.style = style; this.sText.style = style;

View File

@ -251,11 +251,12 @@ export class TrainBody extends Container {
const codeAGraph = this.codeAGraph; const codeAGraph = this.codeAGraph;
const codeBGraph = this.codeBGraph; const codeBGraph = this.codeBGraph;
// const codeRact = this.codeRact; // const codeRact = this.codeRact;
let codeA = states?.groupId; let codeA = states.trainId;
const firstChar = codeA.substring(0, 1); // 获取首字符 // let codeA = states?.groupId;
if (+firstChar == states.lineId) { // const firstChar = codeA.substring(0, 1); // 获取首字符
codeA = codeA.substring(1); // 删除首字符是线路号的字符 // if (+firstChar == states.lineId) {
} // codeA = codeA.substring(1); // 删除首字符是线路号的字符
// }
const fillAColor = BBBColorEnum.schedule; const fillAColor = BBBColorEnum.schedule;
let fillBColor = BBBColorEnum.schedule; let fillBColor = BBBColorEnum.schedule;
if (states.mode?.ipModeTrainTypeSchedule) { if (states.mode?.ipModeTrainTypeSchedule) {