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