-
+
@@ -9,32 +9,33 @@
+
-
+
+
+
+
+
+
+
{{ scope.row.create_time | parseTime }}
-
+
- 查看监控
- 重新下载
+ 查看监控
+ 重新下载
@@ -56,6 +57,7 @@ import CRUD, { presenter, crud, header } from '@crud/crud'
import DateRangePicker from '@/components/DateRangePicker'
import pagination from '@crud/Pagination'
import data1 from '../module/data1'
+import { cameraDownload } from '@/api/storeManage/listenManage'
// import qs from 'qs'
export default {
name: 'VideoListen',
@@ -63,19 +65,20 @@ export default {
mixins: [presenter(), crud(), header()],
cruds() {
return CRUD({
- url: 'api/videomonitorng/list'
+ url: 'api/videos/list',
+ optShow: {}
})
},
data() {
return {
tableData: [],
lookVisible: false,
- optionVal: 0,
+ optionVal: '全部',
options: [
- { value: 0, label: '全部' },
- { value: 1, label: '密集架开架' },
- { value: 2, label: '密集架报警' },
- { value: 3, label: '通道门报警' }
+ { value: '全部', label: '全部' },
+ { value: '密集架开架', label: '密集架开架' },
+ { value: '密集架报警', label: '密集架报警' },
+ { value: '通道门报警', label: '通道门报警' }
],
queryTime: null
}
@@ -84,17 +87,39 @@ export default {
this.tableData = data1.rows
},
methods: {
- cell({ row, columnIndex }) {
- if (row.isdload === true && columnIndex === 1) {
- return 'text-green'
- } else if (row.isdload === false && columnIndex === 1) {
- return 'text-red'
+ // cell({ row, columnIndex }) {
+ // if (row.isdload === true && columnIndex === 1) {
+ // return 'text-green'
+ // } else if (row.isdload === false && columnIndex === 1) {
+ // return 'text-red'
+ // }
+ // },
+ [CRUD.HOOK.beforeRefresh]() {
+ // this.crud.downloadLoading = true
+ this.crud.query.event = null
+ this.crud.query.createTime = null
+ if (this.optionVal === '全部') {
+ this.crud.query.event = null
+ } else {
+ this.crud.query.event = this.optionVal
+ }
+ // this.crud.query.blurry = this.keyWord
+ if (this.queryTime) {
+ this.crud.query.createTime = this.queryTime
+ } else {
+ this.crud.query.createTime = null
}
},
-
// 查看监控
- handleListen() {
- this.lookVisible = true
+ handleListen(row) {
+ // this.lookVisible = true
+ console.log(row)
+ const params = {
+ 'fileName': '1662714646.ts'
+ }
+ cameraDownload(params).then(res => {
+ console.log(res)
+ })
}
}
}
@@ -103,12 +128,12 @@ export default {