inleft
2022-08-12 0dd41bd8cee430d3a948b89c664cb511c400993c
commit | author | age
146176 1 <template>
I 2     <div class="myModal">
859ec7 3         <a-modal v-model="visible" title="视频盒子" :footer="null" :mask="false" :maskClosable="true"
0dd41b 4             :bodyStyle="{'overflow':'overlay','maxHeight': '750px'}" :afterClose="afterClose">
859ec7 5             <videoDetail ref="videoDetail"></videoDetail>
146176 6         </a-modal>
I 7     </div>
8 </template>
9
10 <script>
859ec7 11     import videoDetail from "../mini/box16-videoDetail.vue"
I 12
146176 13     export default {
105729 14         components: {
859ec7 15             videoDetail,
I 16         },
17         watch: {
18             // '$route'(to, from) {
19             //     if ("mdDetail" === to.name) {
20             //         this.articleId = this.$route.query.id;
21             //         this.articleFileType = this.$route.query.articleFileType;
22             //     }
23             // },
24             articleId: function(newValue, oldValue) {
25                 if (newValue == undefined || newValue == null || newValue == "") {
26                     this.showMsg = true;
27                     this.errorMsg = "日志id参数缺失";
28                 } else {
29                     this.$nextTick(function() {
30                         this.$refs.myComment.updateCommentList(this.articleId);
31                     })
32                 }
33             },
105729 34         },
146176 35         data() {
I 36             return {
37                 visible: false,
859ec7 38                 articleId: "",
146176 39             }
I 40         },
41         methods: {
105729 42             showModal(param) {
146176 43                 this.visible = true;
859ec7 44                 this.$nextTick(function() {
I 45                     this.$refs.videoDetail.showVideo(param)
46                 })
146176 47             },
I 48             handleCancel(e) {
49                 this.visible = false;
50             },
0dd41b 51             afterClose() {
I 52                 this.$emit("closeMyVideo")
53             }
146176 54         },
I 55     }
56 </script>
57 <style scoped>
859ec7 58
146176 59 </style>