|
@@ -210,7 +210,7 @@
|
210
|
210
|
</el-dialog>
|
211
|
211
|
</template>
|
212
|
212
|
<script setup lang="ts">
|
213
|
|
-import { ref, reactive, watch, onBeforeMount, computed } from 'vue'
|
|
213
|
+import { ref, reactive, watch, onBeforeMount, computed, nextTick } from 'vue'
|
214
|
214
|
import { basicInfoJson, scheduleBid, conversion_tracking_way, optimizationGoal_1, optimizationGoal_2 } from './ts/information'
|
215
|
215
|
import { specificPositionAll } from './ts/other'
|
216
|
216
|
import { scene, positionMapping } from './ts/scene'
|
|
@@ -225,7 +225,7 @@ import MySelect from './components/select.vue';
|
225
|
225
|
import MyInput from './components/input.vue';
|
226
|
226
|
import wildcard from './components/wildcard.vue'
|
227
|
227
|
const props = defineProps({
|
228
|
|
- visible: {
|
|
228
|
+ visible:{
|
229
|
229
|
type: Boolean,
|
230
|
230
|
default: false
|
231
|
231
|
}
|
|
@@ -337,13 +337,17 @@ const submitEvent = () => {
|
337
|
337
|
}
|
338
|
338
|
if(flag) return
|
339
|
339
|
|
340
|
|
- FillBackData({data: form, type: 'me', 'updateScene': basicInfoJsonInfo['场景'], cb: (data: {params: object,copywriting: []}) => {
|
|
340
|
+ FillBackData({data: form, type: 'me', 'updateScene': basicInfoJsonInfo['场景'], cb: (data: {params: any,copywriting: []}) => {
|
341
|
341
|
if(adSet.value){
|
342
|
342
|
loading.value = true;
|
343
|
343
|
adPresetsSet(data.params).then((res)=>{
|
344
|
344
|
loading.value = false;
|
345
|
|
- emit('close','update')
|
|
345
|
+ localStorage.setItem('BasicInfo', data.params)
|
|
346
|
+ emit('close',{type:'update', copywriting: data.copywriting})
|
346
|
347
|
})
|
|
348
|
+ } else { // 本地存储更新
|
|
349
|
+ localStorage.setItem('BasicInfo', data.params)
|
|
350
|
+ emit('close',{type:'update', copywriting: data.copywriting})
|
347
|
351
|
}
|
348
|
352
|
}})
|
349
|
353
|
}
|
|
@@ -618,7 +622,12 @@ watch([
|
618
|
622
|
basicInfoJsonInfo['目标详情'].attribution_type.data.list[1].disabled = false
|
619
|
623
|
}
|
620
|
624
|
}, { immediate: true, deep: true })
|
621
|
|
-
|
|
625
|
+/**弹框显隐监听 */
|
|
626
|
+watch(
|
|
627
|
+ () => props.visible,
|
|
628
|
+(newValue,oldValue) => {
|
|
629
|
+ dialogVisible.value = newValue
|
|
630
|
+}, { immediate: true, deep: true })
|
622
|
631
|
</script>
|
623
|
632
|
<style lang="scss" scoped>
|
624
|
633
|
@import "@/assets/style/batchDialogGdt.scss";
|