diff --git a/src/components/draw-app/dialogs/LianSuoBianHao.vue b/src/components/draw-app/dialogs/LianSuoBianHao.vue index b5a960f..043c2fd 100644 --- a/src/components/draw-app/dialogs/LianSuoBianHao.vue +++ b/src/components/draw-app/dialogs/LianSuoBianHao.vue @@ -47,6 +47,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -61,6 +66,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -75,6 +85,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -88,6 +103,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -102,6 +122,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -116,6 +141,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -130,6 +160,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -144,6 +179,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -158,6 +198,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -172,6 +217,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -186,6 +236,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -200,6 +255,11 @@ outlined class="q-mt-sm" v-model.number="item.index" + @update:model-value=" + (value) => { + updateIndex(value as number, item.id); + } + " type="number" :label="item.name + '联锁编号:'" /> @@ -601,7 +661,6 @@ function unattengedButtonUpdateData() { } function tabUpdate() { - updateData(); switch (tab.value) { case 'station': stationUpdateData(); @@ -705,5 +764,8 @@ function updateData() { }); setLianSuoData(newLianSuoData); } +function updateIndex(index: number, id: number) { + lianSuoMapData.set(id, index); +}