Преглед на файлове

更改版位 清空问题

liuxiaona преди 1 година
родител
ревизия
72275da631

+ 2 - 2
src/components/businessMoudle/batchGdt/configArea/index.vue

@@ -571,8 +571,7 @@ const originalityBasicClose = (obj) => {
571 571
   if(obj){
572 572
     if(originalityBasicInfoData.apiResult?.templateCurr?.adcreative_template_id != obj.apiResult?.templateCurr?.adcreative_template_id){
573 573
       //清空创意素材、文案、落地页
574
-      CreativeMaterialRef.value?.clearAllEvent()
575
-      updateHaveContent(6,0,false,true)
574
+      CreativeMaterial_clear()
576 575
       if(LandPageRef.value){
577 576
         LandPageRef.value[0]?.clearEvent()
578 577
       }
@@ -655,6 +654,7 @@ const {
655 654
   clearOriginalityInfo,
656 655
   updateHaveContent,
657 656
   judgeEvent,
657
+  CreativeMaterial_clear
658 658
 })
659 659
 // E 广告基本信息 及 外部配置
660 660
 

+ 5 - 6
src/components/businessMoudle/batchGdt/configArea/ts/adBasic.ts

@@ -87,7 +87,7 @@ export function handleAdBasic({
87 87
   CopywriterRef,
88 88
   LandPageRef,
89 89
   targetRef,
90
-  pageInfo
90
+  pageInfo,CreativeMaterial_clear
91 91
 }: IHandleAdBasic) {
92 92
   /**广告基础信息回调 */
93 93
   const basicInfoClose = (obj) => {
@@ -96,8 +96,7 @@ export function handleAdBasic({
96 96
       if (obj.params.automatic_site != basicInfoData.fillBack?.automatic_site || obj.params.site_ids != basicInfoData.fillBack?.site_ids) {
97 97
         clearOriginalityInfo()
98 98
         updateHaveContent(5, 0, false, true)
99
-        CreativeMaterialRef.value?.clearAllEvent()
100
-        updateHaveContent(6, 0, false, true)
99
+        CreativeMaterial_clear()
101 100
         if (CopywriterRef.value) {
102 101
           CopywriterRef.value[0]?.clearEvent()
103 102
         }
@@ -119,8 +118,8 @@ export function handleAdBasic({
119 118
     getAdPresets({ 'promoted_object_type': targetRef.value?.value }).then((res) => {
120 119
       getButtonBasicOuter(res)
121 120
       FillBackData({
122
-        data: res, 
123
-        type: 'api', 
121
+        data: res,
122
+        type: 'api',
124 123
         cb: (data: { params: any, copywriting: [] }) => {
125 124
           if (data.copywriting && Array.isArray(data.copywriting) && data.copywriting.length > 0) {
126 125
             basicInfoData.copywriting = data.copywriting
@@ -217,4 +216,4 @@ export function handleAdBasic({
217 216
     getCommonValue,
218 217
     isCompleteEvent
219 218
   }
220
-}
219
+}