连锁映射数据切换丢失数据问题调整

This commit is contained in:
fan 2024-05-29 14:16:34 +08:00
parent 6e6c665e6b
commit 13e5b77a97

View File

@ -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);
}
</script>
<style scoped></style>