From 3b24a6c8ca641906bcbe453a5479da026989861e Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Wed, 27 Nov 2024 15:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=91=E7=AB=AF=E5=BD=95?= =?UTF-8?q?=E5=83=8F=E5=88=97=E8=A1=A8=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vmp/storager/dao/CloudRecordServiceMapper.java | 2 +- web_src/src/components/CloudRecord.vue | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java index 1be9540e..7e7ee54c 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/CloudRecordServiceMapper.java @@ -53,7 +53,7 @@ public interface CloudRecordServiceMapper { " and id in " + " #{item}" + " " + - " order by start_time ASC" + + " order by start_time desc" + " ") List getList(@Param("query") String query, @Param("app") String app, @Param("stream") String stream, @Param("startTimeStamp")Long startTimeStamp, @Param("endTimeStamp")Long endTimeStamp, diff --git a/web_src/src/components/CloudRecord.vue b/web_src/src/components/CloudRecord.vue index 4704150e..def4c263 100755 --- a/web_src/src/components/CloudRecord.vue +++ b/web_src/src/components/CloudRecord.vue @@ -7,7 +7,7 @@
搜索: - 开始时间: 结束时间: @@ -24,11 +24,11 @@ type="datetime" size="mini" value-format="yyyy-MM-dd HH:mm:ss" - @change="getMediaServerList" + @change="initData" placeholder="选择日期时间"> 节点选择: - + @click="initData()">
@@ -148,14 +148,13 @@ export default { computed: {}, mounted() { this.initData(); + this.getMediaServerList(); }, destroyed() { this.$destroy('recordVideoPlayer'); }, methods: { initData: function () { - // 获取媒体节点列表 - this.getMediaServerList(); this.getRecordList(); }, currentChange: function (val) {