Pārlūkot izejas kodu

batch add image

shensong00 1 mēnesi atpakaļ
vecāks
revīzija
f510d82849

+ 2 - 0
src/components/businessMoudle/batchGdt/configArea/ts/preview.ts

@@ -146,6 +146,8 @@ export const previewCompute = (pageInfo_cr, cMaterial_cr, basicInfoData_cr,) =>
146 146
     last_ad_show_list.forEach((item) => {
147 147
       item.chooseList = []
148 148
     });
149
+    console.log('ad_show_list => ', ad_show_list);
150
+    
149 151
     ad_show_list.forEach((item, index) => {
150 152
       acc_plan_ad_count[item.id] = { 'plan_count': 0, 'ad_count': 0, }
151 153
       let common_obj = {

+ 4 - 4
src/components/businessMoudle/batchGdt3/configArea/creativeMaterial/index.vue

@@ -51,7 +51,7 @@
51 51
           <div class="smallTitle lMar20">创意组数量: {{pageInfo.creativeTeamList&&pageInfo.creativeTeamList.length}}组</div>
52 52
           <div class="lMarauto">
53 53
             <el-button type="primary" v-if="haveCoverOrVideo == 1 || haveCoverOrVideo == 2" @click="openLibraryDialog(1)">批量添加视频</el-button>
54
-            <!-- <el-button type="primary" v-if="haveCoverOrVideo == 1 || haveCoverOrVideo == 3" @click="openLibraryDialog(2)">批量添加封面</el-button> -->
54
+            <el-button type="primary" v-if="haveCoverOrVideo == 1 || haveCoverOrVideo == 3" @click="openLibraryDialog(2)">批量添加封面</el-button>
55 55
             <!-- <el-button type="primary" @click="openTestNew">一键测新</el-button> -->
56 56
           </div>
57 57
         </div>
@@ -435,9 +435,9 @@ const openLibraryDialog = (type:number,maxNum?:any,id?:any,subId?:any) => {
435 435
 const assignEvent_LibraryDialog = (val:any,mType:number,resResult:any) => {
436 436
   // console.log('method creativeMaterial/index assignEvent_LibraryDialog');
437 437
 
438
-  // console.log('assignEvent_LibraryDialog() => val ', JSON.parse(JSON.stringify(val)))
439
-  // console.log('assignEvent_LibraryDialog() => mType ', mType)
440
-  // console.log('assignEvent_LibraryDialog() => resResult ', JSON.parse(JSON.stringify(resResult)))
438
+  console.log('assignEvent_LibraryDialog() => val ', JSON.parse(JSON.stringify(val)))
439
+  console.log('assignEvent_LibraryDialog() => mType ', mType)
440
+  console.log('assignEvent_LibraryDialog() => resResult ', JSON.parse(JSON.stringify(resResult)))
441 441
 
442 442
   pageInfo.keyUrl = mType==1?'videoUrl':'picUrl'
443 443
   pageInfo.creativeTeamList_interim = _.cloneDeep(val)

+ 1 - 1
src/components/businessMoudle/batchGdt3/configArea/creativeMaterial/libraryDialog.vue

@@ -382,7 +382,7 @@ const submitEVent = async () => {
382 382
     if(LoadingMaskRef.value){
383 383
       let inject_arr: any = _.cloneDeep(inject_accountIds)
384 384
       //假设15s一个视频 totalTime为总时长 3s一轮巡
385
-      let totalTime = 15 * Number(arr.length) * Number(inject_arr._object[inject_arr._key].length)
385
+      let totalTime = 10 * Number(arr.length) * Number(inject_arr._object[inject_arr._key].length)
386 386
       LoadingMaskRef.value.time = formatSeconds(totalTime, false)
387 387
     }
388 388
     await get_upload_res()