Browse Source

更改版位 清空问题

liuxiaona 1 year ago
parent
commit
72275da631

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

571
   if(obj){
571
   if(obj){
572
     if(originalityBasicInfoData.apiResult?.templateCurr?.adcreative_template_id != obj.apiResult?.templateCurr?.adcreative_template_id){
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
       if(LandPageRef.value){
575
       if(LandPageRef.value){
577
         LandPageRef.value[0]?.clearEvent()
576
         LandPageRef.value[0]?.clearEvent()
578
       }
577
       }
655
   clearOriginalityInfo,
654
   clearOriginalityInfo,
656
   updateHaveContent,
655
   updateHaveContent,
657
   judgeEvent,
656
   judgeEvent,
657
+  CreativeMaterial_clear
658
 })
658
 })
659
 // E 广告基本信息 及 外部配置
659
 // E 广告基本信息 及 外部配置
660
 
660
 

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

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