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

duizhaopin_ui
duan 2 years ago
parent 115f71d306
commit 3deab9ebb1

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

Loading…
Cancel
Save