轨道区段code生成规则修复
This commit is contained in:
parent
21267f8e13
commit
7c22360197
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user