Browse Source

最后提交

zhuxinbo 5 years ago
parent
commit
9ca95eec83
1 changed files with 9 additions and 4 deletions
  1. 9 4
      src/components/ctop/vm-card.vue

+ 9 - 4
src/components/ctop/vm-card.vue

@@ -110,7 +110,7 @@ li {
     </a-modal>
 
     <a-modal title="详情" v-model="detail" class="ping" :width="800">
-      <a-tabs defaultActiveKey="1" @change="callback">
+      <a-tabs defaultActiveKey="1" @change="callback" v-model="indexDetail">
         <a-tab-pane tab="演员信息" key="1">
           <div style="display:flex;flex-direction:row;height:200px;">
             <div
@@ -171,7 +171,7 @@ li {
         </a-tab-pane>
       </a-tabs>
     </a-modal>
-    <actor-modal ref="modalForm" @ok="modalFormOk" @updateList="updateList"></actor-modal>
+    <actor-modal ref="modalForm" @ok="modalFormOk" @updateList="updateList" @close="closeVideo"></actor-modal>
   </div>
 </template>
 <script>
@@ -229,6 +229,7 @@ export default {
   },
   data: function() {
     return {
+      indexDetail:"1",
       to: null,
       comments: [],
       submitting: false,
@@ -323,6 +324,7 @@ export default {
       this.value = e.target.value
     },
     getDetail() {
+      this.indexDetail = "1"
       this.detail = true
       actorDetail({ actorId: this.id }).then(res => {
         console.log(res)
@@ -353,17 +355,20 @@ export default {
         }
       })
     },
+    closeVideo(){
+        closeAllVideoFun()
+    },
     callback(key) {
       console.log(key)
       if (key == '2') {
-        closeAllVideoFun()
+        this.closeVideo()
         this.currentPage = 1
         this.getPhoto()
       }else if(key == '3'){
         this.currentPage = 1
         this.getVideo()
       }else if(key == '1'){
-        closeAllVideoFun()
+        this.closeVideo()
       }
     },
     getPhoto(){