zhuxinbo %!s(int64=4) %!d(string=hai) anos
pai
achega
3f66a59319

+ 160 - 48
src/views/modules/BatchCreate/TouTiaoBatch.vue

@@ -135,10 +135,12 @@
                 @change="sort"
                 @change="sort"
                 >
                 >
                     <template slot="name" slot-scope="text,record">
                     <template slot="name" slot-scope="text,record">
-                        <editableCell :text="text" slotName='campaignName' @change="onCellChange(record.key, 'name', $event)" />
+                        <a href="javascript:;" @click="goNextPage(text)">
+                            <editableCell :text="text" slotName='name' @change="onCellChange(record.key, 'name', $event)" />
+                        </a>                       
                     </template>
                     </template>
                     <span slot="budget" slot-scope="text,record">
                     <span slot="budget" slot-scope="text,record">
-                       <editableCell :text="text" slotName='groupBudget' @change="onCellChange(record.key, 'budget', $event)" />
+                       <editableCell :text="text" slotName='budget' @change="onCellChange(record.key, 'budget', $event)" />
                     </span>
                     </span>
                     <span slot="bid" slot-scope="text,record">
                     <span slot="bid" slot-scope="text,record">
                        <editableCell :text="text" slotName='bid' @change="onCellChange(record.key, 'bid', $event)" />
                        <editableCell :text="text" slotName='bid' @change="onCellChange(record.key, 'bid', $event)" />
@@ -146,6 +148,9 @@
                     <span slot="campaignStatus" slot-scope="text,record">
                     <span slot="campaignStatus" slot-scope="text,record">
                         <a-switch size="default" :checked=text  @change="switchChange(text,record)"/>
                         <a-switch size="default" :checked=text  @change="switchChange(text,record)"/>
                     </span>
                     </span>
+                    <span slot="createStatus" slot-scope="text,record">
+                        <a-switch size="default" :checked=text  @change="switchChange(text,record)"/>
+                    </span>
                     <span slot="status" slot-scope="text,record">
                     <span slot="status" slot-scope="text,record">
                         <a-switch size="default" :checked=text  @change="switchChange(text,record)"/>
                         <a-switch size="default" :checked=text  @change="switchChange(text,record)"/>
                     </span>
                     </span>
@@ -412,10 +417,10 @@ const planColumns = [
 const ideaColumns = [
 const ideaColumns = [
   {
   {
     title: '状态',
     title: '状态',
-    dataIndex: 'status',
+    dataIndex: 'createStatus',
     key: 'status',
     key: 'status',
     align: 'center',
     align: 'center',
-    scopedSlots: { customRender: 'status' }
+    scopedSlots: { customRender: 'createStatus' }
   },
   },
     //   {
     //   {
     //     title: '操作',
     //     title: '操作',
@@ -432,6 +437,12 @@ const ideaColumns = [
   },
   },
   {
   {
     title: '广告创意',
     title: '广告创意',
+    dataIndex: 'img',
+    key: 'img',
+    align: 'center',
+  },
+  {
+    title: '创意标题',
     dataIndex: 'title',
     dataIndex: 'title',
     key: 'title',
     key: 'title',
     align: 'center',
     align: 'center',
@@ -469,13 +480,6 @@ const ideaColumns = [
     align: 'center',
     align: 'center',
     scopedSlots: { customRender: 'planId_dictText' }
     scopedSlots: { customRender: 'planId_dictText' }
   },
   },
-  {
-    title: '所属广告组',
-    dataIndex: 'parentGroup',
-    key: 'parentGroup',
-    align: 'center',
-    scopedSlots: { customRender: 'parentGroup' }
-  },
 ];
 ];
 
 
 
 
@@ -551,7 +555,7 @@ export default {
                 onSelect: (record, selected, selectedRows) => {
                 onSelect: (record, selected, selectedRows) => {
                     console.log(record, selected, selectedRows);
                     console.log(record, selected, selectedRows);
                     this.modifyTableData=selectedRows;
                     this.modifyTableData=selectedRows;
-                    
+
                     this.selectedRows=selectedRows;
                     this.selectedRows=selectedRows;
                 },
                 },
                 onSelectAll: (selected, selectedRows, changeRows) => {
                 onSelectAll: (selected, selectedRows, changeRows) => {
@@ -578,6 +582,8 @@ export default {
                 this.accountID=undefined;
                 this.accountID=undefined;
                 this.openID=val
                 this.openID=val
             }
             }
+
+            this.search();
         },
         },
         
         
         filterOption(input, option){
         filterOption(input, option){
@@ -590,19 +596,46 @@ export default {
         callback(key) {
         callback(key) {
             console.log(key);
             console.log(key);
             this.tabkey=key;
             this.tabkey=key;
-            this.loading=true
+           
+            // this.columns=[];
             if(key=='group'){
             if(key=='group'){
-                 this.columns=columns;
-                let params = {};
-                this.refreshCampaignList();
-            }else if(key=='plan'){               
-                this.getplanList({})
+                this.columns=columns;              
+            }else if(key=='plan'){                              
                 this.columns=planColumns;
                 this.columns=planColumns;
             }else if(key=='idea'){
             }else if(key=='idea'){
-              this.columns=ideaColumns;
-              let params = {};
-            //   this.refreshCreativeList();
+                this.columns=ideaColumns;
             }
             }
+
+            if(this.accountID){
+                this.tabkey=key;
+                this.loading=true
+                this.columns=[];
+                if(key=='group'){         
+                    let params = {};
+                    this.refreshCampaignList({
+                        accountId:this.accountID,
+                        name:this.optionId,
+                        status:this.statusValue,
+                        startDate:this.dateString[0],
+                        endDate:this.dateString[1],
+                        pageNo:this.ipagination.current
+                    });
+                }else if(key=='plan'){               
+                    this.getplanList({
+                        accountId:this.accountID,
+                        name:this.optionId,
+                        toutiaoStatus:this.statusValue,
+                        startDate:this.dateString[0],
+                        endDate:this.dateString[1],
+                        pageNo:this.ipagination.current
+                    })
+   
+                }else if(key=='idea'){
+                    let params = {};
+                      this.refreshCreativeList();
+                }
+            }
+            
         },
         },
         //跳转到批量页面
         //跳转到批量页面
         goBatch(){
         goBatch(){
@@ -636,6 +669,7 @@ export default {
             if(this.accountID){
             if(this.accountID){
                 this.loading=true
                 this.loading=true
                 if(this.tabkey=='group'){
                 if(this.tabkey=='group'){
+                    this.columns=columns;
                     this.refreshCampaignList({
                     this.refreshCampaignList({
                         accountId:this.accountID,
                         accountId:this.accountID,
                         name:this.optionId,
                         name:this.optionId,
@@ -645,6 +679,7 @@ export default {
                         pageNo:this.ipagination.current
                         pageNo:this.ipagination.current
                     })
                     })
                 }else if(this.tabkey=='plan'){
                 }else if(this.tabkey=='plan'){
+                    this.columns=planColumns;
                     this.getplanList({
                     this.getplanList({
                         accountId:this.accountID,
                         accountId:this.accountID,
                         name:this.optionId,
                         name:this.optionId,
@@ -654,7 +689,15 @@ export default {
                         pageNo:this.ipagination.current
                         pageNo:this.ipagination.current
                     })
                     })
                 }else if(this.tabkey=='idea'){
                 }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{
             }else{
                 this.$message.error('请选择账户后重试')
                 this.$message.error('请选择账户后重试')
@@ -718,12 +761,53 @@ export default {
                     recordData.toutiaoStatus='AD_STATUS_DELIVERY_OK'
                     recordData.toutiaoStatus='AD_STATUS_DELIVERY_OK'
                 }
                 }
                 // console.log(recordData)
                 // console.log(recordData)
-                postAction('/ctop/byteDanceAdvertisePlan/edit',recordData).then((res)=>{
-                    console.log(res);
-                    if(res.success){
-                        record.status=!text;                   
-                    }
-                })
+                // postAction('/ctop/byteDanceAdvertisePlan/edit',recordData).then((res)=>{
+                //     console.log(res);
+                //     if(res.success){
+                //         record.status=!text;                   
+                //     }
+                // })
+                this.batchEditHttp('status',[recordData])
+            //     postAction(`/ctop/byteDanceAdvertisePlan/batchEdit/${type}`,params).then((res)=>{
+            //     console.log(res);
+            //     if(res.success){
+            //         if(res.result.length>0){
+            //             this.modifyTableData=[]
+            //             this.modifyTableData=res.result
+            //             this.getplanList({
+            //                 accountId:this.accountID,
+            //                 name:this.optionId,
+            //                 status:this.statusValue,
+            //                 startDate:this.dateString[0],
+            //                 endDate:this.dateString[1],
+            //                 pageNo:this.ipagination.current
+            //             })
+            //         }
+            //         this.optValue=undefined;
+            //         this.selectedRowKeys=[]
+            //     }
+            // })
+           }else if(this.tabkey=='idea'){
+               let ids=record.id;
+               let status=text?'disable':'enable';
+                postAction('/ctop//byteDanceCreative/editStatus',qs.stringify({
+                   accountId:this.accountID,
+                   ids:`${ids}`,
+                   status:status,
+               })).then((res)=>{
+                   console.log(res);
+                   if(res.success){
+                       this.data=[];
+                       this.refreshCreativeList({
+                            accountId:this.accountID,
+                            name:this.optionId,
+                            status:this.statusValue,
+                            startDate:this.dateString[0],
+                            endDate:this.dateString[1],
+                            pageNo:this.ipagination.current
+                        })
+                   }
+               })
            }
            }
            
            
         },
         },
@@ -738,7 +822,7 @@ export default {
             console.log(value)
             console.log(value)
             this.optValue=value;
             this.optValue=value;
         },
         },
-        editGroupStatus(){
+        editGroupStatus(url){
             let ids='';
             let ids='';
             this.selectedRows.forEach((item,index)=>{
             this.selectedRows.forEach((item,index)=>{
                 if(index==0){
                 if(index==0){
@@ -756,7 +840,7 @@ export default {
             }else if(this.optValue=='delete'){
             }else if(this.optValue=='delete'){
                 status='delete'
                 status='delete'
             }
             }
-            postAction('/ctop/byteDanceCampaign/editStatus',qs.stringify({
+            postAction(url,qs.stringify({
                 accountId:this.accountID,
                 accountId:this.accountID,
                 ids,
                 ids,
                 status,
                 status,
@@ -781,35 +865,39 @@ export default {
         //批量操作的确定按钮
         //批量操作的确定按钮
         isOkHandle(){
         isOkHandle(){
             this.selectDisable=true;
             this.selectDisable=true;
+          
             if(this.optValue){
             if(this.optValue){
+                
                 if(this.optValue=='pause'){   
                 if(this.optValue=='pause'){   
                     if(this.tabkey=='group'){
                     if(this.tabkey=='group'){
                         console.log(this.selectedRows);
                         console.log(this.selectedRows);
-                        this.editGroupStatus()
+                        this.editGroupStatus('/ctop/byteDanceCampaign/editStatus')
                         
                         
                     }else if(this.tabkey=='plan'){
                     }else if(this.tabkey=='plan'){
+                        console.log(0)
                         if(this.selectedRowKeys.length>0){                       
                         if(this.selectedRowKeys.length>0){                       
                             this.selectedRows.forEach((item)=>{
                             this.selectedRows.forEach((item)=>{
                                 item.toutiaoStatus='AD_STATUS_DISABLE'
                                 item.toutiaoStatus='AD_STATUS_DISABLE'
                             })
                             })
                         }
                         }
-                        this.batchEditHttp(this.selectedRows)
+                        console.log(0)
+                        this.batchEditHttp('status',this.selectedRows)
                     }else if(this.tabkey=='idea'){
                     }else if(this.tabkey=='idea'){
-
+                        this.editGroupStatus('/ctop/byteDanceCreative/editStatus')
                     }               
                     }               
                     
                     
                 }else if(this.optValue=='open'){
                 }else if(this.optValue=='open'){
                     if(this.tabkey=='group'){
                     if(this.tabkey=='group'){
-                        this.editGroupStatus();
+                        this.editGroupStatus('/ctop/byteDanceCampaign/editStatus');
                     }else if(this.tabkey=='plan'){
                     }else if(this.tabkey=='plan'){
                         if(this.selectedRowKeys.length>0){                       
                         if(this.selectedRowKeys.length>0){                       
                             this.selectedRows.forEach((item)=>{
                             this.selectedRows.forEach((item)=>{
                                 item.toutiaoStatus='AD_STATUS_DELIVERY_OK'
                                 item.toutiaoStatus='AD_STATUS_DELIVERY_OK'
                             })
                             })
                         }
                         }
-                        this.batchEditHttp(this.selectedRows)
+                        this.batchEditHttp('status',this.selectedRows)
                     }else if(this.tabkey=='idea'){
                     }else if(this.tabkey=='idea'){
-
+                         this.editGroupStatus('/ctop/byteDanceCreative/editStatus');
                     }    
                     }    
                   
                   
                 }
                 }
@@ -823,17 +911,17 @@ export default {
             // console.log(e);
             // console.log(e);
                 if(this.optValue=='delete'){
                 if(this.optValue=='delete'){
                      if(this.tabkey=='group'){
                      if(this.tabkey=='group'){
-                         this.editGroupStatus()
+                         this.editGroupStatus('/ctop/byteDanceCampaign/editStatus')
                     }else if(this.tabkey=='plan'){
                     }else if(this.tabkey=='plan'){
                         if(this.selectedRowKeys.length>0){                        
                         if(this.selectedRowKeys.length>0){                        
                             this.selectedRows.forEach((item)=>{
                             this.selectedRows.forEach((item)=>{
                                 item.toutiaoStatus='AD_STATUS_DELETE'
                                 item.toutiaoStatus='AD_STATUS_DELETE'
                             })
                             })
                         }
                         }
-                        this.batchEditHttp(this.selectedRows)
+                        this.batchEditHttp('status',this.selectedRows)
                         this.$message.success('删除成功');
                         this.$message.success('删除成功');
                     }else if(this.tabkey=='idea'){
                     }else if(this.tabkey=='idea'){
-
+                        this.editGroupStatus('/ctop/byteDanceCreative/editStatus');
                     }    
                     }    
                     
                     
                 }
                 }
@@ -913,33 +1001,38 @@ export default {
             console.log(this.inputValue);
             console.log(this.inputValue);
             if(this.modifyRulesValue=='separately'){
             if(this.modifyRulesValue=='separately'){
                 
                 
-                let batchArr=[...this.xiugaiData]
+                let batchArr=[...this.xiugaiData];
+                let changeZiduan=''
+                if(this.typeValue=='预算'){
+                    changeZiduan='budget'
+                }else if(this.typeValue=='出价'){
+                    changeZiduan='bid'
+                }
                 // console.log(batchArr)
                 // console.log(batchArr)
-                this.batchEditHttp(batchArr)
+                this.batchEditHttp(changeZiduan,batchArr)
             }else if(this.modifyRulesValue=='total'){
             }else if(this.modifyRulesValue=='total'){
                 let batchArr=[...this.modifyTableData]
                 let batchArr=[...this.modifyTableData]
                 if(this.typeValue=='出价'){
                 if(this.typeValue=='出价'){
                     batchArr.forEach((item)=>{
                     batchArr.forEach((item)=>{
                         item.bid=this.inputValue
                         item.bid=this.inputValue
                     })
                     })
+                    this.batchEditHttp('bid',batchArr)
                 }else if(this.typeValue=='预算'){
                 }else if(this.typeValue=='预算'){
                     batchArr.forEach((item)=>{
                     batchArr.forEach((item)=>{
                         item.budget=this.inputValue
                         item.budget=this.inputValue
                     })
                     })
+                    this.batchEditHttp('budget',batchArr)
                 }
                 }
-                this.batchEditHttp(batchArr)
+                
             }
             }
             
             
             this.modifyTableData=[];
             this.modifyTableData=[];
             this.selectedRowKeys=[]
             this.selectedRowKeys=[]
-            // console.log(this.rowSelection)
-            // this.rowSelection.onChange('',[]);
-            // this.rowSelection.onSelect({},false,[]);
-            // this.rowSelection.onSelectAll([],[],[]);
+            
             
             
         },
         },
-        batchEditHttp(params){
-            postAction('/ctop/byteDanceAdvertisePlan/batchEdit',params).then((res)=>{
+        batchEditHttp(type,params){
+            postAction(`/ctop/byteDanceAdvertisePlan/batchEdit/${type}`,params).then((res)=>{
                 console.log(res);
                 console.log(res);
                 if(res.success){
                 if(res.success){
                     if(res.result.length>0){
                     if(res.result.length>0){
@@ -954,6 +1047,8 @@ export default {
                             pageNo:this.ipagination.current
                             pageNo:this.ipagination.current
                         })
                         })
                     }
                     }
+                    this.optValue=undefined;
+                    this.selectedRowKeys=[]
                 }
                 }
             })
             })
         },
         },
@@ -1108,6 +1203,23 @@ export default {
                 }
                 }
             })
             })
         },
         },
+
+        refreshCreativeList(params){
+            getAction(this.url.creativeList, params).then(res => {
+                console.log(res);
+                if (res.success) {
+                    this.ipagination.total = res.result.total
+                    this.loading = false;
+                    res.result.records.forEach((item)=>{
+                            item.key=item.id
+                    })
+                    this.data = res.result.records;
+
+                } else {
+                    console.log(res.message);
+                }
+            })
+        },
         //请求项目和账户内容
         //请求项目和账户内容
         accountHttp(){
         accountHttp(){
             this.treeData=[];
             this.treeData=[];

+ 14 - 0
src/views/modules/BatchCreate/components/material.vue

@@ -57,13 +57,25 @@
                       </div>
                       </div>
                     </a-form-item>
                     </a-form-item>
 
 
+<<<<<<< HEAD
                     <a-form-item label="封面上传" :labelCol="labelCol" :wrapperCol="wrapperCol"
                     <a-form-item label="封面上传" :labelCol="labelCol" :wrapperCol="wrapperCol"
+=======
+                    <a-form-item label="选择封面" :labelCol="labelCol" :wrapperCol="wrapperCol"
+>>>>>>> 8ccaf7354dc64fe0bbf705099e1993a7c3904270
                       v-if="(materialType=='CREATIVE_IMAGE_MODE_VIDEO_VERTICAL'||materialType=='CREATIVE_IMAGE_MODE_VIDEO')">
                       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"
                         :bucket="bucket" :accept="acceptImage" :size="102400" :accessKeyId="accessKeyId"
                         :accessKeySecret="accessKeySecret"></upload-to-ali> -->
                         :accessKeySecret="accessKeySecret"></upload-to-ali> -->
+<<<<<<< HEAD
                       <a @click="getImageList(item)" v-if="item.imageUrl==''">选择图片</a>
                       <a @click="getImageList(item)" v-if="item.imageUrl==''">选择图片</a>
                       <img :src="item.imageUrl" alt="" v-else>
                       <img :src="item.imageUrl" alt="" v-else>
+=======
+                      <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>
+>>>>>>> 8ccaf7354dc64fe0bbf705099e1993a7c3904270
                     </a-form-item>
                     </a-form-item>
 
 
                     <a-form-item label="创意标题" :labelCol="labelCol" :wrapperCol="wrapperCol"
                     <a-form-item label="创意标题" :labelCol="labelCol" :wrapperCol="wrapperCol"
@@ -341,6 +353,7 @@
         }
         }
       },
       },
       getImageList(item) {
       getImageList(item) {
+        console.log(item)
         this.checkVideo = []
         this.checkVideo = []
         this.nowItem = item
         this.nowItem = item
         this.visibleMatemalImage = true
         this.visibleMatemalImage = true
@@ -415,6 +428,7 @@
         this.loadingVideoList = true
         this.loadingVideoList = true
 
 
         getAction(url, params).then(res => {
         getAction(url, params).then(res => {
+          console.log(res)
           if (res.success) {
           if (res.success) {
             this.dataSource = res.result.records
             this.dataSource = res.result.records
             this.ipagination.total = res.result.total
             this.ipagination.total = res.result.total

+ 3 - 2
src/views/modules/BatchCreate/editableCell.vue

@@ -9,8 +9,9 @@
           />
           />
         </div>
         </div>
         <div v-else class="editable-cell-text-wrapper">
         <div v-else class="editable-cell-text-wrapper">
-          {{ value*1? `日预算:${value*1}` :value }}
-          
+          <span v-if="slotName=='budget'">{{ value*1? `日预算:${value*1}` :value }}</span>
+          <span v-if="slotName=='bid'">{{ value*1? `日出价:${value*1}` :value }}</span>
+          <span v-if="slotName=='name'">{{value}}</span>
           <a-icon type="edit" class="editable-cell-icon" @click="edit" />
           <a-icon type="edit" class="editable-cell-icon" @click="edit" />
         </div>
         </div>
       </div>
       </div>

+ 41 - 30
src/views/modules/BatchCreate/newCreate.vue

@@ -23,14 +23,13 @@
             </div>
             </div>
             <div class="input-item">
             <div class="input-item">
               <a-form-item>
               <a-form-item>
-                <a-radio-group v-decorator="['adposition', { initialValue:'smartInventory' }]"
-                  @change="adPositionChange">
-                  <a-radio-button value="smartInventory">优选广告位</a-radio-button>
-                  <a-radio-button value="inventoryType">按媒体指定位置</a-radio-button>
-                  <a-radio-button value="sceneInventory">按场景指定位置</a-radio-button>
+                <a-radio-group v-model="adposition" @change="adPositionChange">
+                  <a-radio-button value="smartInventorys">优选广告位</a-radio-button>
+                  <a-radio-button value="inventoryTypes">按媒体指定位置</a-radio-button>
+                  <a-radio-button value="sceneInventorys">按场景指定位置</a-radio-button>
                 </a-radio-group>
                 </a-radio-group>
               </a-form-item>
               </a-form-item>
-              <div style="width: 400px; margin-top: 24px;" v-if="getFormData('adposition')=='inventoryType'">
+              <div style="width: 400px; margin-top: 24px;" v-show="adposition=='inventoryTypes'">
                 <div class="inventory-tags-lists-header">
                 <div class="inventory-tags-lists-header">
                   <a-checkbox :indeterminate="indeterminate" :checked="checkAll" @change="onCheckAllChange">
                   <a-checkbox :indeterminate="indeterminate" :checked="checkAll" @change="onCheckAllChange">
                   </a-checkbox>
                   </a-checkbox>
@@ -40,12 +39,12 @@
                   <a-checkbox-group v-model="checkedList" :options="plainOptions" @change="onChange" />
                   <a-checkbox-group v-model="checkedList" :options="plainOptions" @change="onChange" />
                 </div>
                 </div>
               </div>
               </div>
-              <div style="width: 400px; margin-top: 24px;" v-show="getFormData('adposition')=='sceneInventory'">
+              <div style="width: 400px; margin-top: 24px;" v-show="adposition=='sceneInventorys'">
                 <div class="inventory-tags-lists-header">
                 <div class="inventory-tags-lists-header">
                   <div class="inventory-tags-lists-name" style="padding-left:15px"><strong>位置选择</strong></div>
                   <div class="inventory-tags-lists-name" style="padding-left:15px"><strong>位置选择</strong></div>
                 </div>
                 </div>
                 <div class="inventory-tags-lists-container">
                 <div class="inventory-tags-lists-container">
-                  <a-radio-group v-decorator="['sceneInventory', { initialValue:'VIDEO_SCENE' }]">
+                  <a-radio-group  v-model=sceneInventory>
                     <a-radio :style="radioStyle" value="VIDEO_SCENE">沉浸式竖版视频场景广告位</a-radio>
                     <a-radio :style="radioStyle" value="VIDEO_SCENE">沉浸式竖版视频场景广告位</a-radio>
                     <a-radio :style="radioStyle" value="FEED_SCENE">信息流场景广告位</a-radio>
                     <a-radio :style="radioStyle" value="FEED_SCENE">信息流场景广告位</a-radio>
                     <a-radio :style="radioStyle" value="TAIL_SCENE">视频后贴和尾帧场景广告位</a-radio>
                     <a-radio :style="radioStyle" value="TAIL_SCENE">视频后贴和尾帧场景广告位</a-radio>
@@ -433,6 +432,8 @@
           children: 'children'
           children: 'children'
         },
         },
         thirdIndustryId:undefined,
         thirdIndustryId:undefined,
+        adposition:'smartInventorys',
+        sceneInventory:'VIDEO_SCENE'
       }
       }
     },
     },
     components: {
     components: {
@@ -495,31 +496,30 @@
       // 广告位置选择改变
       // 广告位置选择改变
       adPositionChange(val) {
       adPositionChange(val) {
         console.log(val)
         console.log(val)
-        if (val.target.value == 'smartInventory') {
-          this.form.setFieldsValue({
-            smartInventory: 1,
-            inventoryType: [],
-
-          })
-        } else if (val.target.value == 'inventoryType') {
-          this.form.setFieldsValue({
-            smartInventory: 0,
-            inventoryType: this.checkedList,
-          })
-        } else if (val.target.value == 'sceneInventory') {
-          this.form.setFieldsValue({
-            smartInventory: 0,
-            inventoryType: [],
-          })
-          console.log(this.getFormData('sceneInventory'))
-        }
+        // if (val.target.value == 'smartInventorys') {
+        //   this.form.setFieldsValue({
+        //     smartInventory: 1,
+        //     inventoryType: [],
+        //   })
+        // } else if (val.target.value == 'inventoryTypes') {
+        //   this.form.setFieldsValue({
+        //     smartInventory: 0,
+        //     inventoryType: this.checkedList,
+        //   })
+        // } else if (val.target.value == 'sceneInventorys') {
+        //   this.form.setFieldsValue({
+        //     smartInventory: 0,
+        //     inventoryType: [],
+        //   })
+        //   console.log(this.getFormData('sceneInventory'))
+        // }
 
 
       },
       },
       // 注册表单的字段
       // 注册表单的字段
       initFormValue() {
       initFormValue() {
-        this.form.getFieldDecorator('inventoryType')
-        this.form.getFieldDecorator('smartInventory')
-        this.form.getFieldDecorator('thirdIndustryId')
+        // this.form.getFieldDecorator('inventoryType')
+        // this.form.getFieldDecorator('smartInventory')
+        // this.form.getFieldDecorator('thirdIndustryId')
         // this.form.getFieldDecorator('sceneInventory')
         // this.form.getFieldDecorator('sceneInventory')
       },
       },
       // 验证网址
       // 验证网址
@@ -598,7 +598,18 @@
                 //   params.titles = this.titleData
                 //   params.titles = this.titleData
                 params.titles = this.$refs.material.titleData
                 params.titles = this.$refs.material.titleData
               }
               }
-              values.thirdIndustryId=this.thirdIndustryId
+                values.thirdIndustryId=this.thirdIndustryId;
+
+                if (this.adposition == 'smartInventorys') {
+                  values.smartInventory=1;                 
+                } else if (this.adposition == 'inventoryTypes') {
+                  values.inventoryType=this.checkedList
+                } else if (this.adposition == 'sceneInventorys') {
+                  
+                  values.sceneInventory=this.sceneInventory
+                  
+                }
+
                 postAction('/bytedance/batch/create/creative', {
                 postAction('/bytedance/batch/create/creative', {
                   accountId:this.accountInfo.value,
                   accountId:this.accountInfo.value,
                   adIds: ["1673732908509245"],
                   adIds: ["1673732908509245"],

+ 1 - 1
vue.config.js

@@ -61,7 +61,7 @@ module.exports = {
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.94:8804', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.94:8804', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.0.230:8088', //请求本地 需要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.51:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要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: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目