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

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

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

@ -63,40 +63,40 @@
} }
</style> </style>
<script> <script>
export default { export default {
props: ['visible', 'vid'], props: ['visible', 'vid'],
watch: { watch: {
//visibleisShowprops //visibleisShowprops
visible: function (newVal) { visible: function (newVal) {
this.isShow = newVal; //newValvisible this.isShow = newVal; //newValvisible
// newVal && this.showConfirm(); //newValshowConfirm // newVal && this.showConfirm(); //newValshowConfirm
}, },
vid: function (newVal) { vid: function (newVal) {
console.log(newVal) console.log(newVal)
console.log(1111111) console.log(1111111)
this.video = newVal this.video = newVal
this.$nextTick(() => { //this.$nextTick 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> </script>

Loading…
Cancel
Save