修复云端录像列表排序

dev/多线程性能优化
648540858 2024-11-27 15:29:00 +08:00
parent a753f80177
commit 3b24a6c8ca
2 changed files with 7 additions and 8 deletions

View File

@ -53,7 +53,7 @@ public interface CloudRecordServiceMapper {
" <if test= 'ids != null ' > and id in " +
" <foreach collection='ids' item='item' open='(' separator=',' close=')' > #{item}</foreach>" +
" </if>" +
" order by start_time ASC" +
" order by start_time desc" +
" </script>")
List<CloudRecordItem> getList(@Param("query") String query, @Param("app") String app, @Param("stream") String stream,
@Param("startTimeStamp")Long startTimeStamp, @Param("endTimeStamp")Long endTimeStamp,

View File

@ -7,7 +7,7 @@
<div class="page-header-btn">
搜索:
<el-input @input="getRecordList" style="margin-right: 1rem; width: auto;" size="mini" placeholder="关键字"
<el-input @input="initData" style="margin-right: 1rem; width: auto;" size="mini" placeholder="关键字"
prefix-icon="el-icon-search" v-model="search" clearable></el-input>
开始时间:
<el-date-picker
@ -15,7 +15,7 @@
type="datetime"
size="mini"
value-format="yyyy-MM-dd HH:mm:ss"
@change="getMediaServerList"
@change="initData"
placeholder="选择日期时间">
</el-date-picker>
结束时间:
@ -24,11 +24,11 @@
type="datetime"
size="mini"
value-format="yyyy-MM-dd HH:mm:ss"
@change="getMediaServerList"
@change="initData"
placeholder="选择日期时间">
</el-date-picker>
节点选择:
<el-select size="mini" @change="getMediaServerList" style="width: 16rem; margin-right: 1rem;"
<el-select size="mini" @change="initData" style="width: 16rem; margin-right: 1rem;"
v-model="mediaServerId" placeholder="请选择" >
<el-option label="全部" value=""></el-option>
<el-option
@ -40,7 +40,7 @@
</el-select>
<!-- <el-button size="mini" icon="el-icon-delete" type="danger" @click="deleteRecord()"></el-button>-->
<el-button icon="el-icon-refresh-right" circle size="mini" :loading="loading"
@click="getRecordList()"></el-button>
@click="initData()"></el-button>
</div>
</div>
<!--设备列表-->
@ -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) {