历史监控页查看视频 video组件引用

merge-requests/1/head
张鑫 5 years ago
parent 52130e6e82
commit 15481059d6

@ -75,16 +75,17 @@
<script>
import {imgUrl, videoUrl} from "@/api/importExcel";
import Model from "./model.vue"
export default {
name: "historyMonitoring",
components: {
// videoPlayer
},
data() {
return {
queryParam: {},
pageNum: 1,
pageSize: 10,
export default {
name: "historyMonitoring",
components: {
// videoPlayer
},
data() {
return {
queryParam: {},
pageNum: 1,
pageSize: 10,
data: [],
pagination: {
total: 0,

@ -63,40 +63,40 @@
}
</style>
<script>
export default {
props: ['visible', 'vid'],
watch: {
//visibleisShowprops
visible: function (newVal) {
this.isShow = newVal; //newValvisible
// newVal && this.showConfirm(); //newValshowConfirm
},
vid: function (newVal) {
console.log(newVal)
console.log(1111111)
this.video = newVal
this.$nextTick(() => { //this.$nextTick
export default {
props: ['visible', 'vid'],
watch: {
//visibleisShowprops
visible: function (newVal) {
this.isShow = newVal; //newValvisible
// newVal && this.showConfirm(); //newValshowConfirm
},
vid: function (newVal) {
console.log(newVal)
console.log(1111111)
this.video = newVal
this.$nextTick(() => { //this.$nextTick
})
})
},
},
data() {
return {
isShow: false,
confirmLoading: false,
video: '',
};
},
mounted() {
console.log('mounted执行了')
},
data() {
return {
isShow: false,
confirmLoading: false,
video: '',
};
},
mounted() {
console.log('mounted执行了')
},
methods: {
handleCancel() {
this.$emit('close', false, '')
},
methods: {
handleCancel() {
this.$emit('close', false, '')
},
},
};
},
};
</script>

Loading…
Cancel
Save