继电器关联列表加key
This commit is contained in:
parent
cda3e8041c
commit
5d7c206aa9
@ -20,8 +20,10 @@
|
||||
<q-item-label> 关联的继电器 </q-item-label>
|
||||
<div class="q-gutter-sm row">
|
||||
<q-chip
|
||||
v-for="item in combinationTypeConfig.refRelaysCode"
|
||||
:key="item"
|
||||
v-for="(
|
||||
item, index
|
||||
) in combinationTypeConfig.refRelaysCode"
|
||||
:key="keySelect.substr(index, 1)"
|
||||
square
|
||||
color="primary"
|
||||
text-color="white"
|
||||
@ -72,6 +74,7 @@ import { PhaseFailureProtector } from 'src/graphics/phaseFailureProtector/PhaseF
|
||||
|
||||
defineExpose({ editRelateRelays });
|
||||
|
||||
const keySelect = 'abcdefghijklmnopqrstuvwxyz';
|
||||
const relayCabinetStore = useRelayCabinetStore();
|
||||
const $q = useQuasar();
|
||||
const showRangeConfig = ref(true);
|
||||
|
@ -27,7 +27,7 @@
|
||||
v-for="(
|
||||
combinationtype, index
|
||||
) in relateRelayConfig.combinationtypes"
|
||||
:key="combinationtype"
|
||||
:key="keySelect.substr(index, 1)"
|
||||
v-model="combinationtype.expanded"
|
||||
:label="combinationtype.code"
|
||||
@click="toggleItem(index)"
|
||||
@ -43,8 +43,8 @@
|
||||
/>
|
||||
<div class="q-gutter-sm row">
|
||||
<q-chip
|
||||
v-for="item in combinationtype.refRelaysCode"
|
||||
:key="item"
|
||||
v-for="(item, index) in combinationtype.refRelaysCode"
|
||||
:key="keySelect.substr(index, 1)"
|
||||
square
|
||||
color="primary"
|
||||
text-color="white"
|
||||
@ -107,6 +107,7 @@ import { PhaseFailureProtector } from 'src/graphics/phaseFailureProtector/PhaseF
|
||||
|
||||
defineExpose({ editRelateRelays });
|
||||
|
||||
const keySelect = 'abcdefghijklmnopqrstuvwxyz';
|
||||
const relayCabinetStore = useRelayCabinetStore();
|
||||
const $q = useQuasar();
|
||||
const showRangeConfig = ref(true);
|
||||
|
Loading…
Reference in New Issue
Block a user