魏志佳 %!s(int64=4) %!d(string=hai) anos
pai
achega
7d80ec625d

+ 7 - 6
src/components/layouts/TabLayout.vue

@@ -270,7 +270,7 @@
         if (key == "/modules/material/materialList") {
           localStorage.removeItem("key")
         }
-        if(key=='/modules/BatchCreate/TouTiaoBatch'){
+        if(key=='/modules/BatchCreate/TouTiaoBatch'&&!(this.linkList.includes('/modules/BatchCreate/newCreate') || this.linkList.includes('/modules/BatchCreate/newPlan') ||this.linkList.includes('/modules/BatchCreate/newGroup') )){
           localStorage.setItem('accountInfo','')
           localStorage.setItem("groupInfo",'')
           localStorage.setItem("planInfo",'')
@@ -280,18 +280,19 @@
         //   localStorage.setItem("groupInfo",'')
           
         // }
-        if(key=='/modules/BatchCreate/newGroup'&&!this.linkList.includes('/modules/BatchCreate/newPlan')){
-          
+        if(key=='/modules/BatchCreate/newGroup'&&!(this.linkList.includes('/modules/BatchCreate/newCreate') || this.linkList.includes('/modules/BatchCreate/newPlan') ||this.linkList.includes('/modules/BatchCreate/TouTiaoBatch') )){
+          console.log('newGroup')
           localStorage.setItem('accountInfo','')
           localStorage.setItem("groupInfo",'')
         }
-        if(key=='/modules/BatchCreate/newPlan'&&!this.linkList.includes('/modules/BatchCreate/newCreate')){
-          console.log(1)
+        if(key=='/modules/BatchCreate/newPlan'&&!(this.linkList.includes('/modules/BatchCreate/newCreate') || this.linkList.includes('/modules/BatchCreate/newGroup') ||this.linkList.includes('/modules/BatchCreate/TouTiaoBatch') )){
+          console.log('newPlan')
           localStorage.setItem('accountInfo','')
           localStorage.setItem("groupInfo",'')
           localStorage.setItem("planInfo",'')
         }
-        if(key=='/modules/BatchCreate/newCreate'){
+        if(key=='/modules/BatchCreate/newCreate'&&!(this.linkList.includes('/modules/BatchCreate/TouTiaoBatch') || this.linkList.includes('/modules/BatchCreate/newPlan') ||this.linkList.includes('/modules/BatchCreate/newGroup') )){
+          console.log('newCreate')
           localStorage.setItem('accountInfo','')
           localStorage.setItem("groupInfo",'')
           localStorage.setItem("planInfo",'')

+ 15 - 2
src/views/modules/BatchCreate/components/material.vue

@@ -351,6 +351,11 @@
           this.showVideoList('/bytedance/batch/getVideoList', params)
         } else if(this.isImg){
           console.log(this.isImg)
+          if (this.materialType == 'CREATIVE_IMAGE_MODE_VIDEO') {
+            params.type = 1
+          } else {
+            params.type = 2
+          }
           this.showVideoList('/bytedance/batch/getImageList', params)
         }
       },
@@ -370,7 +375,15 @@
           params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
           params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
         }
-        this.showVideoList('/bytedance/batch/getImageList', params)
+
+          if (this.materialType == 'CREATIVE_IMAGE_MODE_VIDEO') {
+            params.type = 1
+          } else {
+            params.type = 2
+          }
+          this.showVideoList('/bytedance/batch/getImageList', params)
+      
+        
       },
       onChangeVideo() {
         if (this.checkVideo.length > 1) {
@@ -720,7 +733,7 @@
       getTags() {
         let accountInfo = localStorage.getItem('accountInfo')
         // console.log(groupInfo)
-        
+
         this.accountInfo=JSON.parse(accountInfo)
 
         getAction('/bytedance/batch/creative/words/get', {