|
@@ -26,13 +26,15 @@ const props = defineProps({
|
|
|
required: true,
|
|
|
},
|
|
|
});
|
|
|
-const emits = defineEmits(['update:modelValue', 'confirmSuccess']);
|
|
|
+const emits = defineEmits([ 'confirmSuccess']);
|
|
|
const shopInfo = useShopInfo();
|
|
|
const { profile } = storeToRefs(shopInfo);
|
|
|
const { templateId } = toRefs(props);
|
|
|
const { activeModel } = toRefs(props);
|
|
|
|
|
|
-const dialogVisible = ref(false);
|
|
|
+// const dialogVisible = ref(false);
|
|
|
+const dialogVisible = defineModel({ default: false });
|
|
|
+
|
|
|
const targetRuleDialogVisible = ref(false);
|
|
|
|
|
|
// 定向规则
|
|
@@ -474,22 +476,22 @@ watch(selectedStatus, () => {
|
|
|
fetchAdCampaign();
|
|
|
});
|
|
|
|
|
|
-watch(templateId, () => {
|
|
|
- fetchAdCampaign();
|
|
|
- fetchAdGroupList();
|
|
|
-});
|
|
|
+// watch(templateId, () => {
|
|
|
+// fetchAdCampaign();
|
|
|
+// fetchAdGroupList();
|
|
|
+// });
|
|
|
|
|
|
-watch(() => props.modelValue, (newValue) => {
|
|
|
- dialogVisible.value = newValue;
|
|
|
-});
|
|
|
+// watch(() => props.modelValue, (newValue) => {
|
|
|
+// dialogVisible.value = newValue;
|
|
|
+// });
|
|
|
|
|
|
-watch(dialogVisible, (newValue) => {
|
|
|
- emits('update:modelValue', newValue);
|
|
|
-});
|
|
|
+// watch(dialogVisible, (newValue) => {
|
|
|
+// // emits('update:modelValue', newValue);
|
|
|
+// });
|
|
|
|
|
|
onMounted(() => {
|
|
|
- // fetchAdGroupList();
|
|
|
- // fetchAdCampaign();
|
|
|
+ fetchAdGroupList();
|
|
|
+ fetchAdCampaign();
|
|
|
});
|
|
|
|
|
|
</script>
|