link调整

This commit is contained in:
fan 2023-07-14 14:57:03 +08:00
parent b6979421e8
commit 5857d594d4
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,8 @@
/>
<q-input
outlined
v-model="sectionLinkModel.code"
v-model.number="sectionLinkModel.index"
type="number"
@blur="onUpdate"
label="编号"
/>

View File

@ -430,7 +430,9 @@ export async function loadDrawDatas(app: GraphicApp) {
datas.push(new SeparatorData(separator));
});
storage.sectionLinks.forEach((sectionLink) => {
sectionLink.index = parseInt(sectionLink.code);
if (sectionLink.code) {
sectionLink.index = parseInt(sectionLink.code);
}
datas.push(new SectionLinkData(sectionLink));
});
storage.axleCountingSections.forEach((axleCountingSection) => {