feat: 左下方列表:读数加上单位:mg/m³;日期倒序排列

This commit is contained in:
LokerL 2024-12-13 19:37:33 +08:00
parent 4f70d910cb
commit 8d5ffae076
2 changed files with 5 additions and 4 deletions

View File

@ -40,7 +40,7 @@
<if test="params.endTime != null and params.endTime != ''">
AND TRUNC(d.REPORT_TIME)&lt;= 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">

View File

@ -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"
),