Procházet zdrojové kódy

[Fix 0000] 可配置首页5.5数据问题修复

houzekong před 1 měsícem
rodič
revize
fe498973ac

+ 2 - 2
src/views/vent/home/configurable/components/MonitorBar.vue

@@ -54,12 +54,12 @@
         },
         {
           label: '计划风量(m³/min)',
-          value: '${midinfo[0].sysdata.totalPlanM3}',
+          value: '${midinfo[0].sysdata.xufengliang}',
         },
         {
           label: '通风巷道长度(万m)',
           // value: '223196',
-          value: '${totallength}',
+          value: '${midinfo[0].sysinfo.totallength}',
         },
         {
           label: '有效风量率',

+ 2 - 6
src/views/vent/home/configurable/ventV5.vue

@@ -13,7 +13,7 @@
         全矿井通风检测
         <CaretDownOutlined />
       </a>
-      <MonitorBar v-if="showBar" class="module-monitor-bar" :is-data-real-time="isDataRealTime" :data="barData" />
+      <MonitorBar v-if="showBar" class="module-monitor-bar" :is-data-real-time="isDataRealTime" :data="data" />
       <!-- <a-dropdown class="module-dropdown" :class="{ 'module-dropdown-original': isOriginal }" :trigger="['click']" placement="bottomRight">
         <template #overlay>
         </template>
@@ -76,7 +76,7 @@
   </div>
 </template>
 <script lang="ts" setup>
-  import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
+  import { onMounted, onUnmounted, ref, watch } from 'vue';
   // import { CaretDownOutlined } from '@ant-design/icons-vue';
   import MonitorBar from './components/MonitorBar.vue';
   import { useInitConfigs, useInitPage } from './hooks/useInit';
@@ -97,10 +97,6 @@
   const router = useRouter();
   const isDataRealTime = ref(sysDataType === 'monitor');
   const showBar = ref(true);
-  const barData = computed(() => ({
-    ...data.value,
-    totallength: 223196,
-  }));
   let interval: number | undefined;
 
   function switchDataMode() {

+ 2 - 6
src/views/vent/home/configurable/ventWLML.vue

@@ -13,7 +13,7 @@
         全矿井通风检测
         <CaretDownOutlined />
       </a>
-      <MonitorBar v-if="showBar" class="module-monitor-bar" :is-data-real-time="isDataRealTime" :data="barData" />
+      <MonitorBar v-if="showBar" class="module-monitor-bar" :is-data-real-time="isDataRealTime" :data="data" />
       <!-- <a-dropdown class="module-dropdown" :class="{ 'module-dropdown-original': isOriginal }" :trigger="['click']" placement="bottomRight">
         <template #overlay>
         </template>
@@ -76,7 +76,7 @@
   </div>
 </template>
 <script lang="ts" setup>
-  import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
+  import { onMounted, onUnmounted, ref, watch } from 'vue';
   // import { CaretDownOutlined } from '@ant-design/icons-vue';
   import MonitorBar from './components/MonitorBar.vue';
   import { useInitConfigs, useInitPage } from './hooks/useInit';
@@ -97,10 +97,6 @@
   const router = useRouter();
   const isDataRealTime = ref(sysDataType === 'monitor');
   const showBar = ref(true);
-  const barData = computed(() => ({
-    ...data.value,
-    totallength: 90810,
-  }));
   let interval: number | undefined;
 
   function switchDataMode() {