|
@@ -1,8 +1,8 @@
|
|
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
|
<template>
|
|
|
<Row justify="space-around">
|
|
|
- <Col v-for="(item, i) in headerConfig" :key="`svvhbcgs${i}`" :span="10">
|
|
|
- <LargeBoard :label="item.label" :value="data[item.prop]" :type="item.type" />
|
|
|
+ <Col v-for="(item, i) in GAS_STATUS_HEADER_CONFIG" :key="`svvhbcgs${i}`" :span="10">
|
|
|
+ <LargeBoard :label="item.label" :value="headerData[item.prop]" :type="item.type" />
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<CommonTable class="mt-10px" :columns="BASIC_COLUMN" :data="data" />
|
|
@@ -15,7 +15,14 @@
|
|
|
import CommonTable from './CommonTable.vue';
|
|
|
// import mapComponent from './components/3Dmap/index.vue';
|
|
|
|
|
|
- const headerConfig = ref(GAS_STATUS_HEADER_CONFIG);
|
|
|
- const data = ref([{ a: 1, b: 2, c: 3 }]);
|
|
|
+ const headerData = ref({
|
|
|
+ a: '低风险',
|
|
|
+ b: '低风险',
|
|
|
+ });
|
|
|
+ const data = ref([
|
|
|
+ { a: '瓦斯抽采泵站', b: 2, c: '正常' },
|
|
|
+ { a: '瓦斯监测传感器', b: 12, c: '正常' },
|
|
|
+ { a: '瓦斯巡检机器人', b: 23, c: '异常' },
|
|
|
+ ]);
|
|
|
</script>
|
|
|
<style lang="less" scoped></style>
|