liuxiaona 10 months ago
parent
commit
a28d8f189b
1 changed files with 8 additions and 9 deletions
  1. 8 9
      src/components/businessMoudle/batchGdt/configArea/index.vue

+ 8 - 9
src/components/businessMoudle/batchGdt/configArea/index.vue

@@ -29,7 +29,7 @@
29 29
       </div>
30 30
 
31 31
       <div class="configArea">
32
-        <div v-for="item in pageInfo.adTitleList" :key="item.id"
32
+        <div v-for="item in pageInfo.adTitleList" :key="item.id+cMaterial.fData.key"
33 33
              :style=" {width:item.name == '广告' ? 'calc((100vw - 40px - 32px) / 6 * 2)' : 'calc((100vw - 40px - 32px) / 6 * 4)'}">
34 34
           <div class="bigTitle" :class="item.name == '广告创意' ? 'no_left_boder' : ''">{{item.name}}</div>
35 35
           <div class="flex">
@@ -70,12 +70,13 @@
70 70
                     </template>
71 71
                   </template>
72 72
                 </div>
73
-                <template v-if="sub.name == '创意素材'" :key="sub.chooseNum">
73
+                <div v-if="sub.name == '创意素材'" :key="cMaterial.fData.key">
74 74
                   {{cMaterial.fData.list}}
75 75
                   <template  v-for="cItem in cMaterial.fData.list" :key="cItem.id">
76 76
                     <div class="flex bMar8">
77 77
                       <template v-for="cSub in cItem.list" :key="cItem.id+cSub.subId">
78
-                        <div class="flex" style="width: 100%;justify-content: center" v-if="cMaterial.fData.haveCoverOrVideo == 2 || cMaterial.fData.haveCoverOrVideo == 1">
78
+                        <div class="flex" style="width: 100%;justify-content: center"
79
+                             v-if="cMaterial.fData.haveCoverOrVideo == 2 || cMaterial.fData.haveCoverOrVideo == 1">
79 80
                           <video :src="cSub.videoUrl" height="50"></video>
80 81
                         </div>
81 82
                         <div style="width: 100%;justify-content: center" class="lMar10 flex" v-if="cMaterial.fData.haveCoverOrVideo == 3 || cMaterial.fData.haveCoverOrVideo == 1">
@@ -84,7 +85,7 @@
84 85
                       </template>
85 86
                     </div>
86 87
                   </template>
87
-                </template>
88
+                </div>
88 89
               </div>
89 90
               <div class="btn" @click="openDialogEvent(sub)">{{sub.haveContent ? '编辑' : '添加'}}</div>
90 91
             </div>
@@ -430,11 +431,9 @@ const get_ruleConfig_info = async () => {
430 431
 //监听创意素材点击了确定
431 432
 
432 433
 watch(()=>cMaterial.fData.key,()=>{
433
-  nextTick(()=>{
434
-    cMaterial.fData.list = _.cloneDeep(cMaterial.fData.list_copy)
435
-    let num = cMaterial.fData.list&&cMaterial.fData.list.length
436
-    updateHaveContent(6,num)
437
-  })
434
+  cMaterial.fData.list = _.cloneDeep(cMaterial.fData.list_copy)
435
+  let num = cMaterial.fData.list&&cMaterial.fData.list.length
436
+  updateHaveContent(6,num)
438 437
 })
439 438
   // watch(()=>cMaterial.key,()=>{
440 439
   //   console.log('cMaterial.key', cMaterial.key, cMaterial.list_copy)