diff --git a/src/views/storeManage/listenManage/listenConfig/index.vue b/src/views/storeManage/listenManage/listenConfig/index.vue index 4fdeee4..041c93f 100644 --- a/src/views/storeManage/listenManage/listenConfig/index.vue +++ b/src/views/storeManage/listenManage/listenConfig/index.vue @@ -6,37 +6,16 @@ - + - + - + - + @@ -83,7 +62,7 @@ export default { cruds() { return CRUD({ url: 'api/camera/list', - sort: ['createTime,asc'] + sort: ['createTime,desc'] }) }, data() { @@ -92,12 +71,12 @@ export default { tableData: [], selections: [], keyWord: '', - timeType: 0, + timeType: '', timeOptions: [ - { value: 0, label: '全部' }, - { value: 10, label: '事件触发前后10秒' }, - { value: 20, label: '事件触发前后20秒' }, - { value: 30, label: '事件触发前后30秒' } + { value: '', label: '全部' }, + { value: '10', label: '事件触发前后10秒' }, + { value: '20', label: '事件触发前后20秒' }, + { value: '30', label: '事件触发前后30秒' } ], optionVal: 1, options: [ @@ -114,13 +93,13 @@ export default { // 获取数据前的处理 [CRUD.HOOK.beforeRefresh]() { // this.crud.downloadLoading = true - // this.crud.query.timeType = null - // this.crud.query.blurry = this.keyWord - // if (this.oprType > -1) { - // this.crud.query.state = this.oprType - // } - // this.crud.downloadLoading = false - // this.crud.query.createTime = + this.crud.query.timeSize = this.timeType + this.crud.query.blurry = this.keyWord + if (this.queryTime) { + this.crud.query.createTime = this.queryTime + } else { + this.crud.query.createTime = null + } }, // 绑定摄像头 handleBind() { @@ -153,12 +132,11 @@ export default { diff --git a/src/views/storeManage/listenManage/videoListen/index.vue b/src/views/storeManage/listenManage/videoListen/index.vue index 3098642..bc6904c 100644 --- a/src/views/storeManage/listenManage/videoListen/index.vue +++ b/src/views/storeManage/listenManage/videoListen/index.vue @@ -4,7 +4,7 @@ - +