|
@@ -21,8 +21,8 @@
|
|
|
:schema="sdRecordSchema"
|
|
:schema="sdRecordSchema"
|
|
|
>
|
|
>
|
|
|
<template #header>
|
|
<template #header>
|
|
|
- <div class="u-color--error">
|
|
|
|
|
- 展示的为结束时间往前一小时内的录像,默认为当前时间
|
|
|
|
|
|
|
+ <div class="l-flex--row u-color--info">
|
|
|
|
|
+ 展示的为结束时间往前 <span class="u-color--blue u-font-size--lg">6</span> 小时内的录像
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</table-dialog>
|
|
</table-dialog>
|
|
@@ -105,7 +105,13 @@ export default {
|
|
|
nonPagination: true,
|
|
nonPagination: true,
|
|
|
list: this.getSDRecords,
|
|
list: this.getSDRecords,
|
|
|
filters: [
|
|
filters: [
|
|
|
- { key: 'time', type: 'datetime', placeholder: '结束时间' }
|
|
|
|
|
|
|
+ { key: 'time', type: 'datepicker', options: {
|
|
|
|
|
+ type: 'datetime',
|
|
|
|
|
+ placeholder: '结束时间',
|
|
|
|
|
+ 'picker-options': {
|
|
|
|
|
+ disabledDate: this.isDisableDate
|
|
|
|
|
+ }
|
|
|
|
|
+ } }
|
|
|
],
|
|
],
|
|
|
cols: [
|
|
cols: [
|
|
|
{ type: 'refresh' },
|
|
{ type: 'refresh' },
|
|
@@ -150,7 +156,6 @@ export default {
|
|
|
this.$refs.recordTableDialog.show()
|
|
this.$refs.recordTableDialog.show()
|
|
|
},
|
|
},
|
|
|
getRecords (params) {
|
|
getRecords (params) {
|
|
|
- console.log(params)
|
|
|
|
|
clearTimeout(this.$timer)
|
|
clearTimeout(this.$timer)
|
|
|
if (params.pageNum === 1) {
|
|
if (params.pageNum === 1) {
|
|
|
this.$timer = setTimeout(() => {
|
|
this.$timer = setTimeout(() => {
|
|
@@ -181,12 +186,15 @@ export default {
|
|
|
this.$refs.previewDialog.show({ type: AssetType.VIDEO, url })
|
|
this.$refs.previewDialog.show({ type: AssetType.VIDEO, url })
|
|
|
},
|
|
},
|
|
|
onViewSD () {
|
|
onViewSD () {
|
|
|
- this.$refs.sdRecordTableDialog.show()
|
|
|
|
|
|
|
+ if (!this.$date) {
|
|
|
|
|
+ this.$date = new Date()
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.sdRecordTableDialog.show({ time: this.$date })
|
|
|
},
|
|
},
|
|
|
getSDRecords ({ time }) {
|
|
getSDRecords ({ time }) {
|
|
|
- time = time ? new Date(time) : new Date()
|
|
|
|
|
|
|
+ this.$date = time
|
|
|
const startTime = new Date(time.getTime())
|
|
const startTime = new Date(time.getTime())
|
|
|
- startTime.setHours(startTime.getHours() - 1)
|
|
|
|
|
|
|
+ startTime.setHours(startTime.getHours() - 6)
|
|
|
return getSDRecords({
|
|
return getSDRecords({
|
|
|
identifier: this.identifier,
|
|
identifier: this.identifier,
|
|
|
startTime: parseTime(startTime, '{y}-{m}-{d} {h}:{i}:{s}'),
|
|
startTime: parseTime(startTime, '{y}-{m}-{d} {h}:{i}:{s}'),
|