报错调整

This commit is contained in:
joylink_fanyuhong 2024-11-20 10:53:36 +08:00
parent 718835302e
commit ca8a2fb279
3 changed files with 13 additions and 13 deletions

View File

@ -174,7 +174,6 @@ import { ApiError } from 'src/boot/axios';
import { useUserStore } from 'src/stores/user-store'; import { useUserStore } from 'src/stores/user-store';
import { getMonitorPath } from 'src/router/routes'; import { getMonitorPath } from 'src/router/routes';
import FaultQueryDialog from 'src/components/dialog/FaultQueryDialog.vue'; import FaultQueryDialog from 'src/components/dialog/FaultQueryDialog.vue';
import { Platform } from 'src/graphics/platform/Platform';
const leftDrawerOpen = ref(false); const leftDrawerOpen = ref(false);
const router = useRouter(); const router = useRouter();
@ -191,17 +190,6 @@ watch(
} }
} }
); );
watch(
() => lineStore.faultStatistics,
() => {
const platfroms = lineStore
.getLineApp()
.queryStore.queryByType<Platform>(Platform.Type);
platfroms.forEach((platfrom) => {
platfrom.changeState();
});
}
);
function toggleLeftDrawer() { function toggleLeftDrawer() {
leftDrawerOpen.value = !leftDrawerOpen.value; leftDrawerOpen.value = !leftDrawerOpen.value;

View File

@ -39,6 +39,7 @@ import { useLineStore } from 'src/stores/line-store';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { AlarmInfo, useLineNetStore } from 'src/stores/line-net-store'; import { AlarmInfo, useLineNetStore } from 'src/stores/line-net-store';
import { showAlertTypeData } from 'src/components/alarm/alarmInfoEnum'; import { showAlertTypeData } from 'src/components/alarm/alarmInfoEnum';
import { Platform } from 'src/graphics/platform/Platform';
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{
@ -124,6 +125,18 @@ watch(
} }
); );
watch(
() => lineStore.faultStatistics,
() => {
const platfroms = lineStore
.getLineApp()
.queryStore.queryByType<Platform>(Platform.Type);
platfroms.forEach((platfrom) => {
platfrom.changeState();
});
}
);
const lineId = Number(route.params.lineId); const lineId = Number(route.params.lineId);
const lineApp = lineStore.initLineApp(lineId); const lineApp = lineStore.initLineApp(lineId);

View File

@ -9,7 +9,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, onUnmounted, watch } from 'vue'; import { onMounted, onUnmounted, watch } from 'vue';
import { useLineNetStore } from 'src/stores/line-net-store'; import { useLineNetStore } from 'src/stores/line-net-store';
import { RunLine } from 'src/graphics/runLine/RunLine';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
const props = withDefaults( const props = withDefaults(