|
|
@@ -88,9 +88,7 @@
|
|
|
prop="title"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <router-link :to="`/vidlist/${scope.row.videoId}`">
|
|
|
- <span>{{ scope.row.title | ellipsis }}</span>
|
|
|
- </router-link>
|
|
|
+ <span>{{ scope.row.title | ellipsis }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -114,7 +112,14 @@
|
|
|
<script>
|
|
|
import DPlayer from 'dplayer'
|
|
|
import UserAvatarCard from '@/components/card/UserAvatarCard'
|
|
|
-import { getCamDetail, getCamList, getCamRecord, getCamRecordByMonth, getLatestRecord } from '@/api/cam'
|
|
|
+import {
|
|
|
+ getCamDetail,
|
|
|
+ getCamList,
|
|
|
+ getCamRecord,
|
|
|
+ getCamRecordByDay,
|
|
|
+ getCamRecordByMonth,
|
|
|
+ getLatestRecord
|
|
|
+} from '@/api/cam'
|
|
|
|
|
|
export default {
|
|
|
name: 'RecordPage',
|
|
|
@@ -190,8 +195,6 @@ export default {
|
|
|
for (const item of resp.data) {
|
|
|
const date1 = new Date(item)
|
|
|
const dayStr = this.getYearMonthDay(date1)
|
|
|
- console.log(date1)
|
|
|
- console.log(dayStr)
|
|
|
this.dateMap.set(dayStr, date1)
|
|
|
}
|
|
|
this.showCalender = true
|
|
|
@@ -207,7 +210,7 @@ export default {
|
|
|
getLatestRecord(camId).then(resp => {
|
|
|
if (resp.code === 0) {
|
|
|
const respData = resp.data
|
|
|
- this.initMp4Player(respData.coverUrl, respData.videoUrl)
|
|
|
+ // this.initMp4Player(respData.coverUrl, respData.videoUrl)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -229,13 +232,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleCellClick(date, data) {
|
|
|
- /* this.form.yearMonthDay = this.getYearMonthDay(date)
|
|
|
+ this.form.yearMonthDay = this.getYearMonthDay(date)
|
|
|
getCamRecordByDay(this.form).then(resp => {
|
|
|
if (resp.code === 0) {
|
|
|
this.showRecordList = true
|
|
|
this.recordList = resp.data
|
|
|
}
|
|
|
- })*/
|
|
|
+ })
|
|
|
},
|
|
|
dealMyDate(val) {
|
|
|
let res = ''
|
|
|
@@ -287,6 +290,14 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ getCamRecord(recordId) {
|
|
|
+ getCamRecord(recordId).then(resp => {
|
|
|
+ if (resp.code === 0) {
|
|
|
+ const respData = resp.data
|
|
|
+ // this.initMp4Player(respData.coverUrl, respData.videoUrl)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
goToCamLive() {
|
|
|
const path = '/my/cam/' + this.camDetail.camId + '/live'
|
|
|
if (this.$route.path === path) {
|