|
@@ -7,15 +7,15 @@
|
|
|
<LargeBoard :label="item.label" :value="headerData[item.prop]" :type="item.type" />
|
|
|
</Col>
|
|
|
</Row>
|
|
|
- <CommonTable class="mt-10px" :columns="GAS_STATUS_COLUMN" :data="tableData" content-height="160px" />
|
|
|
+ <CollapseTable class="mt-10px" :columns="GAS_STATUS_COLUMN" :data="tableData" :collapses="GAS_COLLAPSES" content-height="160px" />
|
|
|
</template>
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
import { Row, Col, Result } from 'ant-design-vue';
|
|
|
- import { GAS_STATUS_HEADER_CONFIG, GAS_STATUS_COLUMN, BillboardType } from '../billboard.data';
|
|
|
+ import { GAS_STATUS_HEADER_CONFIG, GAS_STATUS_COLUMN, GAS_COLLAPSES, BillboardType } from '../billboard.data';
|
|
|
import LargeBoard from './LargeBoard.vue';
|
|
|
import { computed } from 'vue';
|
|
|
- import CommonTable from './CommonTable.vue';
|
|
|
+ import CollapseTable from './CollapseTable.vue';
|
|
|
import { get } from '../utils';
|
|
|
// import mapComponent from './components/3Dmap/index.vue';
|
|
|
|
|
@@ -35,12 +35,17 @@
|
|
|
});
|
|
|
const tableData = computed(() => {
|
|
|
const info = props.data.gasInfo;
|
|
|
- return get(info, 'gasTypeList', []).map((e) => {
|
|
|
- return {
|
|
|
- ...e,
|
|
|
- warnLevelStr: trans[e.warnLevel],
|
|
|
- };
|
|
|
- });
|
|
|
+ return get(info, 'gasTypeList', [])
|
|
|
+ .map((e) => {
|
|
|
+ return {
|
|
|
+ ...e,
|
|
|
+ hideCollapses: !e[GAS_COLLAPSES[0].prop],
|
|
|
+ warnLevelStr: trans[e.warnLevel],
|
|
|
+ };
|
|
|
+ })
|
|
|
+ .sort((a) => {
|
|
|
+ return a.hideCollapses ? 1 : -1;
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
const riskTrans = {
|