|
@@ -2,7 +2,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="company-home">
|
|
<div class="company-home">
|
|
|
<div class="border">
|
|
<div class="border">
|
|
|
- <customHeader>矿井全域皮带巷三级防灭火系统</customHeader>
|
|
|
|
|
|
|
+ <customHeader :sysId="currentSelectedId">矿井全域皮带巷三级防灭火系统</customHeader>
|
|
|
<SubApp />
|
|
<SubApp />
|
|
|
<div class="box-container">
|
|
<div class="box-container">
|
|
|
<ModuleCommon
|
|
<ModuleCommon
|
|
@@ -23,7 +23,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
-import { onMounted, onUnmounted, ref } from 'vue';
|
|
|
|
|
|
|
+import { onMounted, onUnmounted, ref, nextTick } from 'vue';
|
|
|
import customHeader from './components/customHeader-belt.vue';
|
|
import customHeader from './components/customHeader-belt.vue';
|
|
|
import { useInitConfigs, useInitPage } from '../hooks/useInit';
|
|
import { useInitConfigs, useInitPage } from '../hooks/useInit';
|
|
|
import { testBeltLaneFire } from './configurable.data';
|
|
import { testBeltLaneFire } from './configurable.data';
|
|
@@ -34,15 +34,17 @@ import { getDataHome } from './configurable.api';
|
|
|
const { configs, devicesTypes, fetchConfigs } = useInitConfigs();
|
|
const { configs, devicesTypes, fetchConfigs } = useInitConfigs();
|
|
|
const { updateEnhancedConfigs, updateData, data } = useInitPage('矿井全域皮带巷三级防灭火系统');
|
|
const { updateEnhancedConfigs, updateData, data } = useInitPage('矿井全域皮带巷三级防灭火系统');
|
|
|
|
|
|
|
|
-const currentSelectedId = ref<string | number>('');
|
|
|
|
|
|
|
+const currentSelectedId = ref<string>('');
|
|
|
|
|
|
|
|
let timer = null;
|
|
let timer = null;
|
|
|
const showHistory = ref(false);
|
|
const showHistory = ref(false);
|
|
|
// 接收子组件上报的点击事件,更新全局选中状态
|
|
// 接收子组件上报的点击事件,更新全局选中状态
|
|
|
-const handleItemClick = (item) => {
|
|
|
|
|
|
|
+const handleItemClick = async (item) => {
|
|
|
const clickId = item.id;
|
|
const clickId = item.id;
|
|
|
if (!clickId) return;
|
|
if (!clickId) return;
|
|
|
currentSelectedId.value = clickId;
|
|
currentSelectedId.value = clickId;
|
|
|
|
|
+ await nextTick();
|
|
|
|
|
+ console.log(currentSelectedId.value, '11111');
|
|
|
refreshData();
|
|
refreshData();
|
|
|
};
|
|
};
|
|
|
|
|
|