表格标题调整

This commit is contained in:
2025-05-13 15:22:05 +08:00
parent 60cdff21b6
commit 363c05639b
5 changed files with 29 additions and 30 deletions

View File

@@ -51,8 +51,6 @@
<span>{{ item.name }}</span>
</div>
</template>
<div class="card-content">
<div class="card-item" v-for="(item1, index1) in item.children"
@@ -105,26 +103,27 @@
<div class="tall">
<vxe-table height="auto" auto-resize :data="dataList" v-bind="defaultAttribute">
<vxe-column field="name" title="名称"></vxe-column>
<vxe-column field="onlineCount" title="在线监测点数(个)">
<vxe-column field="onlineCount" title="在监测点数(个)">
<template #default="scope">
{{ scope.row.onlineCount == 3.14159 ? '暂无数据' : scope.row.onlineCount == 0 ? '/' : scope.row.onlineCount }}
{{ scope.row.onlineCount == 3.14159 ? '暂无数据' : scope.row.onlineCount }}
</template>
</vxe-column>
<vxe-column field="overLineCount" title="超标监测点数(个)">
<template #default="scope">
{{ scope.row.overLineCount == 3.14159 ? '暂无数据' : scope.row.overLineCount == 0 ? '/': scope.row.overLineCount }}
</template>
</vxe-column>
<vxe-column field="averageOverDay" title="平均超标天数(天)">
<template #default="scope">
{{ scope.row.averageOverDay == 3.14159 ? '暂无数据' : scope.row.averageOverDay == 0 ?'/' : scope.row.averageOverDay }}
{{ scope.row.overLineCount == 3.14159 ? '暂无数据' : scope.row.overLineCount }}
</template>
</vxe-column>
<vxe-column field="ratio" title="监测点超标占比(%)">
<template #default="scope">
{{ scope.row.ratio == 3.14159 ? '暂无数据' : scope.row.ratio == 0 ? '/' : scope.row.ratio }}
{{ scope.row.lineRatio == 3.14159 ? '暂无数据' : scope.row.lineRatio }}
</template>
</vxe-column>
<vxe-column field="averageOverDay" title="平均超标天数(天/点)">
<template #default="scope">
{{ scope.row.averageOverDay == 3.14159 ? '暂无数据' : scope.row.averageOverDay }}
</template>
</vxe-column>
</vxe-table>
</div>