一键生成调整

This commit is contained in:
dong 2023-06-29 17:37:50 +08:00
parent 4121dde0d2
commit 630e2c7d01

View File

@ -16,7 +16,13 @@
<q-item-section>一键关联</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="oneClickGeneration">
<q-item-section>一键生成</q-item-section>
<q-item-section>一键生成车次窗</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="oneClickSeparator">
<q-item-section>一键生成分隔符</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="oneClickAxleCounting">
<q-item-section>一键生成计轴</q-item-section>
</q-item>
</q-list>
</q-menu>
@ -305,10 +311,19 @@ function buildRelations() {
}
function oneClickGeneration() {
//
drawStore.getDrawApp().interactionPlugin(OneClickGenerate.Type).resume();
}
function oneClickSeparator() {
//
const separatorDraw = drawStore
.getDrawApp()
.getDrawAssistant(Separator.Type) as SeparatorDraw;
separatorDraw.oneGenerates();
}
function oneClickAxleCounting() {
//
drawStore.getDrawApp().interactionPlugin(OneClickGenerate.Type).resume();
}