This commit is contained in:
joylink_zhaoerwei 2023-09-22 11:18:42 +08:00
parent 73b00b10aa
commit 09e3333a0d
2 changed files with 8 additions and 1 deletions

View File

@ -133,6 +133,7 @@ watch(
appSelectedGraphicsId !== undefined && appSelectedGraphicsId !== undefined &&
isArraysEqual(selectGraphicId, appSelectedGraphicsId) isArraysEqual(selectGraphicId, appSelectedGraphicsId)
) { ) {
selectGraphic.forEach((g) => g.updateSelected(true));
return; return;
} }
const deviceFilter = lineStore.selectedGraphics?.filter((g) => { const deviceFilter = lineStore.selectedGraphics?.filter((g) => {

View File

@ -96,7 +96,7 @@
<script setup lang="ts"> <script setup lang="ts">
import DraggableDialog from '../common/DraggableDialog.vue'; import DraggableDialog from '../common/DraggableDialog.vue';
import { ref, watch } from 'vue'; import { onMounted, ref, watch } from 'vue';
import { JlGraphic } from 'src/jl-graphic'; import { JlGraphic } from 'src/jl-graphic';
import { Station } from 'src/graphics/station/Station'; import { Station } from 'src/graphics/station/Station';
import { useLineStore } from 'src/stores/line-store'; import { useLineStore } from 'src/stores/line-store';
@ -159,6 +159,7 @@ watch(
appSelectedGraphicsId !== undefined && appSelectedGraphicsId !== undefined &&
isArraysEqual(selectGraphicId, appSelectedGraphicsId) isArraysEqual(selectGraphicId, appSelectedGraphicsId)
) { ) {
selectGraphic.forEach((g) => g.updateSelected(true));
return; return;
} }
const deviceFilter = lineStore.selectedGraphics?.filter((g) => { const deviceFilter = lineStore.selectedGraphics?.filter((g) => {
@ -196,6 +197,11 @@ watch(
} }
); );
onMounted(() => {
clearSelect();
onReset();
});
const myForm = ref<QForm | null>(null); const myForm = ref<QForm | null>(null);
const showsetAlartText = ref(true); const showsetAlartText = ref(true);
const $q = useQuasar(); const $q = useQuasar();