liuxiaona 1 jaar geleden
bovenliggende
commit
a28d8f189b
1 gewijzigde bestanden met toevoegingen van 8 en 9 verwijderingen
  1. 8 9
      src/components/businessMoudle/batchGdt/configArea/index.vue

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

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