Ver código fonte

效率工具test

xinyan 7 meses atrás
pai
commit
e35d200fa1

+ 2 - 2
.env.development

@@ -4,8 +4,8 @@ ENV='development'
 
 # 本地环境接口地址
 # VITE_API_URL = 'http://127.0.0.1:8000'
-#VITE_API_URL='http://192.168.1.225/'
- VITE_API_URL='http://192.168.1.25:8080/'
+VITE_API_URL='http://192.168.1.225/'
+#VITE_API_URL='http://192.168.1.25:8080/'
 # VITE_API_URL = 'http://amzads.zositechc.cn'
 
 # 是否启用按钮权限

+ 16 - 14
src/views/efTools/automation/components/adActivityDialog.vue

@@ -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>

+ 1 - 1
src/views/efTools/automation/index.vue

@@ -290,7 +290,7 @@ onMounted(() => {
           @refresh="refreshTable"></component>
     </div>
   </el-drawer>
-  <AdActivityDialog v-model="isDialogVisible" :activeModel="activeModel" :templateId="templateId" @confirmSuccess="getList"/>
+  <AdActivityDialog v-if="isDialogVisible" v-model="isDialogVisible" :activeModel="activeModel" :templateId="templateId" @confirmSuccess="getList"/>
   <AutomatedRuleTips v-model="autoInfo"></AutomatedRuleTips>
 </template>