refactor(src/views/reagent/envrecord): 优化数据展示

duizhaopin_ui
duan 2 years ago
parent 115f71d306
commit 3deab9ebb1

@ -76,19 +76,19 @@
align="center"
property="avg_wd"
label="温度(取平均值)"
:formatter="(row, column) => row.avg_wd + ' °C'"
:formatter="(row, column) => row.avg_wd ? row.avg_wd + ' °C' : ''"
/>
<el-table-column
align="center"
property="avg_sd"
label="湿度(取平均值)"
:formatter="(row, column) => row.avg_sd + ' RH%'"
:formatter="(row, column) => row.avg_sd ? row.avg_sd + ' RH%':''"
/>
<el-table-column
align="center"
property="avg_voc"
label="VOC含量取平均值"
:formatter="(row, column) => row.avg_voc + ' ppm'"
:formatter="(row, column) => row.avg ? row.avg_voc + ' ppm':''"
/>
<el-table-column align="center" property="client_id" label="操作">
<template slot-scope="scope">
@ -135,19 +135,19 @@
align="center"
property="wd"
label="温度(取平均值)"
:formatter="(row, column) => row.wd + ' °C'"
:formatter="(row, column) => row.wd ? row.wd + ' °C':''"
/>
<el-table-column
align="center"
property="sd"
label="湿度(取平均值)"
:formatter="(row, column) => row.sd + ' RH%'"
:formatter="(row, column) => row.sd ? row.sd + ' RH%':''"
/>
<el-table-column
align="center"
property="voc"
label="VOC含量取平均值"
:formatter="(row, column) => row.voc + ' ppm'"
:formatter="(row, column) => row.voc ? row.voc + ' ppm':''"
/>
</el-table>
<div class="my-pagination" style="text-align: center">

Loading…
Cancel
Save