|
@@ -21,10 +21,9 @@
|
|
|
</template>
|
|
|
</ventBox1>
|
|
|
</div>
|
|
|
+ <CategoryBoard v-bind="pumpCategoryProp" />
|
|
|
<div class="lr right-box">
|
|
|
<div class="item-box sensor-container">
|
|
|
- <!-- <CustomBoard label="累积抽采量" :value="cumulativeExtraction" /> -->
|
|
|
- <!-- <CustomBoard label="累积抽采时间" :value="cumulativeExtractionTime" /> -->
|
|
|
<ventBox1>
|
|
|
<template #title>
|
|
|
<div>自动模式</div>
|
|
@@ -51,7 +50,7 @@
|
|
|
import List from '@/views/vent/gas/components/list/index.vue';
|
|
|
import BaseTab from '@/views/vent/gas/components/tab/baseTab.vue';
|
|
|
import Button from '@/views/vent/gas/components/form/button.vue';
|
|
|
- import CustomBoard from '@/views/vent/gas/components/board/baseBoard.vue';
|
|
|
+ import CategoryBoard from '@/views/vent/gas/components/board/categoryBoard.vue';
|
|
|
import {
|
|
|
pumpListConfig,
|
|
|
pumpStationListConfig,
|
|
@@ -60,6 +59,8 @@
|
|
|
HPumpStationListItems,
|
|
|
LPumpStationListItems,
|
|
|
statusConfig,
|
|
|
+ HPumpCategoryConfig,
|
|
|
+ LPumpCategoryConfig,
|
|
|
} from '../gasPumpMonitor.data';
|
|
|
|
|
|
const props = defineProps({
|
|
@@ -80,7 +81,7 @@
|
|
|
|
|
|
const pump = ref({});
|
|
|
// 将列表配置项转换为列表可用的prop
|
|
|
- function mapListConfigToProp(config) {
|
|
|
+ function transConfigToProp(config) {
|
|
|
return config.map((c) => {
|
|
|
return {
|
|
|
...c,
|
|
@@ -93,44 +94,46 @@
|
|
|
// 各个模块的配置项
|
|
|
const pumpListProp = computed(() => {
|
|
|
return {
|
|
|
- items: mapListConfigToProp(pumpListConfig),
|
|
|
+ items: transConfigToProp(pumpListConfig),
|
|
|
};
|
|
|
});
|
|
|
const pumpStationListProp = computed(() => {
|
|
|
return {
|
|
|
- items: mapListConfigToProp(pumpStationListConfig),
|
|
|
+ items: transConfigToProp(pumpStationListConfig),
|
|
|
};
|
|
|
});
|
|
|
const pumpStatusProp = computed(() => {
|
|
|
return {
|
|
|
status: statusConfig as any,
|
|
|
- items: mapListConfigToProp(pumpStatusConfig),
|
|
|
+ items: transConfigToProp(pumpStatusConfig),
|
|
|
};
|
|
|
});
|
|
|
const waterPumpStatusProp = computed(() => {
|
|
|
return {
|
|
|
status: statusConfig as any,
|
|
|
- items: mapListConfigToProp(waterPumpStatusConfig),
|
|
|
+ items: transConfigToProp(waterPumpStatusConfig),
|
|
|
};
|
|
|
});
|
|
|
const HPumpStatusProp = computed(() => {
|
|
|
return {
|
|
|
status: statusConfig as any,
|
|
|
- items: mapListConfigToProp(HPumpStationListItems),
|
|
|
+ items: transConfigToProp(HPumpStationListItems),
|
|
|
};
|
|
|
});
|
|
|
const LPumpStatusProp = computed(() => {
|
|
|
return {
|
|
|
status: statusConfig as any,
|
|
|
- items: mapListConfigToProp(LPumpStationListItems),
|
|
|
+ items: transConfigToProp(LPumpStationListItems),
|
|
|
};
|
|
|
});
|
|
|
|
|
|
// 告示板相关字段
|
|
|
- // 累积抽采量
|
|
|
- const cumulativeExtraction = ref(121345);
|
|
|
- // 累积抽采时间
|
|
|
- const cumulativeExtractionTime = ref(345121);
|
|
|
+ const pumpCategoryProp = computed(() => {
|
|
|
+ return {
|
|
|
+ categoryTop: transConfigToProp(HPumpCategoryConfig),
|
|
|
+ categoryButtom: transConfigToProp(LPumpCategoryConfig),
|
|
|
+ };
|
|
|
+ });
|
|
|
|
|
|
onMounted(async () => {});
|
|
|
</script>
|