瀏覽代碼

提交相关代码

Lijy 4 月之前
父節點
當前提交
dc0bf077a4

+ 10 - 1
fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/pages/pageComponents/business/detail.vue

@@ -38,6 +38,7 @@ const tabActive = ref('商机信息');
 const relatedProductsList = ref([]);
 const relatedTasksList = ref([]);
 const infoData = ref(props.info);
+const timeout = ref(null);
 
 watch(() => props.info, (newValue) => {
   tabActive.value = '商机信息';
@@ -57,7 +58,11 @@ function getBusinessOpportunityDetails(id) {
 }
 
 function processingData(id) {
-  getBusinessOpportunityDetails(id)
+  clearTimeout(timeout.value);
+  timeout.value = setTimeout(() => {
+    getBusinessOpportunityDetails(id)
+  }, 100);
+  
 }
 
 useLifecycle({
@@ -65,6 +70,10 @@ useLifecycle({
     tabActive.value = '商机信息';
     processingData(props.info.id)
   },
+  load: () => {
+    tabActive.value = '商机信息';
+    processingData(props.info.id)
+  }
 });
 </script>