魏志佳 4 éve
szülő
commit
43e4d4c1ef

+ 18 - 8
src/views/modules/BatchCreate/TouTiaoBatch.vue

@@ -629,7 +629,7 @@ export default {
    
                 }else if(key=='idea'){
                     let params = {};
-                    //   this.refreshCreativeList();
+                      this.refreshCreativeList();
                 }
             }
             
@@ -687,6 +687,14 @@ export default {
                     })
                 }else if(this.tabkey=='idea'){
                     this.columns=ideaColumns;
+                    this.refreshCreativeList({
+                        accountId:this.accountID,
+                        name:this.optionId,
+                        status:this.statusValue,
+                        startDate:this.dateString[0],
+                        endDate:this.dateString[1],
+                        pageNo:this.ipagination.current
+                    })
                 }
             }else{
                 this.$message.error('请选择账户后重试')
@@ -813,6 +821,7 @@ export default {
         //批量操作的确定按钮
         isOkHandle(){
             this.selectDisable=true;
+            console.log(0)
             if(this.optValue){
                 if(this.optValue=='pause'){   
                     if(this.tabkey=='group'){
@@ -820,11 +829,13 @@ export default {
                         this.editGroupStatus()
                         
                     }else if(this.tabkey=='plan'){
+                        console.log(0)
                         if(this.selectedRowKeys.length>0){                       
                             this.selectedRows.forEach((item)=>{
                                 item.toutiaoStatus='AD_STATUS_DISABLE'
                             })
                         }
+                        console.log(0)
                         this.batchEditHttp('status',this.selectedRows)
                     }else if(this.tabkey=='idea'){
 
@@ -972,14 +983,11 @@ export default {
             
             this.modifyTableData=[];
             this.selectedRowKeys=[]
-            // console.log(this.rowSelection)
-            // this.rowSelection.onChange('',[]);
-            // this.rowSelection.onSelect({},false,[]);
-            // this.rowSelection.onSelectAll([],[],[]);
+            
             
         },
         batchEditHttp(type,params){
-            postAction(`/ctop/byteDanceAdvertisePlan/batchEdit/"${type}"`,params).then((res)=>{
+            postAction(`/ctop/byteDanceAdvertisePlan/batchEdit/${type}`,params).then((res)=>{
                 console.log(res);
                 if(res.success){
                     if(res.result.length>0){
@@ -994,6 +1002,8 @@ export default {
                             pageNo:this.ipagination.current
                         })
                     }
+                    this.optValue=undefined;
+                    this.selectedRowKeys=[]
                 }
             })
         },
@@ -1149,7 +1159,7 @@ export default {
             })
         },
 
-        refreshCreativeList(){
+        refreshCreativeList(params){
             getAction(this.url.creativeList, params).then(res => {
                 console.log(res);
                 if (res.success) {
@@ -1161,7 +1171,7 @@ export default {
                     this.data = res.result.records;
 
                 } else {
-                console.log(res.message);
+                    console.log(res.message);
                 }
             })
         },

+ 9 - 3
src/views/modules/BatchCreate/components/material.vue

@@ -57,12 +57,16 @@
                       </div>
                     </a-form-item>
 
-                    <a-form-item label="封面上传" :labelCol="labelCol" :wrapperCol="wrapperCol"
+                    <a-form-item label="选择封面" :labelCol="labelCol" :wrapperCol="wrapperCol"
                       v-if="(materialType=='CREATIVE_IMAGE_MODE_VIDEO_VERTICAL'||materialType=='CREATIVE_IMAGE_MODE_VIDEO')">
-                      <upload-to-ali v-model="item.imageUrl" :customDomain="customDomain" preview :region="region"
+                      <!-- <upload-to-ali v-model="item.imageUrl" :customDomain="customDomain" preview :region="region"
                         :bucket="bucket" :accept="acceptImage" :size="102400" :accessKeyId="accessKeyId"
-                        :accessKeySecret="accessKeySecret"></upload-to-ali>
+                        :accessKeySecret="accessKeySecret"></upload-to-ali> -->
                       <a @click="getImageList(item)">选择图片</a>
+                      <div>
+                        <!-- <img :src="item.imageUrl" style="width:300px" v-show="materialType=='CREATIVE_IMAGE_MODE_VIDEO'&&item.videoUrl" />
+                        <img :src="item.videoUrl" style="width:120px"  v-show="materialType=='CREATIVE_IMAGE_MODE_VIDEO_VERTICAL'&&item.videoUrl" /> -->
+                      </div>
                     </a-form-item>
 
                     <a-form-item label="创意标题" :labelCol="labelCol" :wrapperCol="wrapperCol"
@@ -335,6 +339,7 @@
         }
       },
       getImageList(item) {
+        console.log(item)
         this.checkVideo = []
         this.nowItem = item
         this.visibleMatemal = true
@@ -399,6 +404,7 @@
         this.loadingVideoList = true
 
         getAction(url, params).then(res => {
+          console.log(res)
           if (res.success) {
             this.dataSource = res.result.records
             this.ipagination.total = res.result.total

+ 2 - 2
vue.config.js

@@ -57,13 +57,13 @@ module.exports = {
     proxy: {
       '/jeecg-boot': {
         // target: 'http://192.168.1.90:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
-        // target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
+        target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.94:8804', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.0.230:8088', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.51:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
+        // target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://192.168.1.251', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目