✨ feat: 左下方列表:读数加上单位:mg/m³;日期倒序排列
This commit is contained in:
parent
4f70d910cb
commit
8d5ffae076
|
@ -40,7 +40,7 @@
|
|||
<if test="params.endTime != null and params.endTime != ''">
|
||||
AND TRUNC(d.REPORT_TIME)<= TO_DATE(#{params.endTime}, 'YYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
ORDER BY d.report_time ASC
|
||||
ORDER BY d.report_time DESC
|
||||
</select>
|
||||
|
||||
<select id="selectAvgDsByMonth" parameterType="map" resultType="map">
|
||||
|
|
|
@ -65,17 +65,17 @@ export default {
|
|||
label: "上报时间",
|
||||
prop: "reportTime",
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
label: "设备编号",
|
||||
prop: "sn",
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
label: "读数",
|
||||
prop: "ds",
|
||||
},
|
||||
|
||||
|
||||
],
|
||||
pager: {
|
||||
pageNum: 1,
|
||||
|
@ -124,6 +124,7 @@ export default {
|
|||
this.tableData = res.rows.map((item, index) => {
|
||||
return {
|
||||
...item,
|
||||
ds: item.ds + " mg/m³",
|
||||
reportTime: moment(item.reportTime).format(
|
||||
"YYYY-MM-DD HH:mm:ss"
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue