轨道区段code生成规则修复

This commit is contained in:
Yuan 2023-09-19 09:15:10 +08:00
parent 21267f8e13
commit 7c22360197

View File

@ -187,7 +187,9 @@ export class TrackSectionInteraction extends GraphicInteractionPlugin<TrackSecti
data.points = ps.map(
(p) => new graphicData.Point({ x: p.x, y: p.y })
);
data.code = `${trackSection.datas.code}_${'ABCDE'.charAt(i % 5)}`;
data.code = `${
trackSection.datas.code
}_${'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.charAt(i % 26)}`;
data.length = i !== num - 1 ? logicSectionLen[0] : logicSectionLen[1];
console.log(data.length);
const g = new TrackLogicSection();