Browse Source

机构画像

zhengjinyi 2 years ago
parent
commit
cbaf7b83bf

+ 12 - 4
src/main/webapp/static/modules/cmClubPortrait/cmClubEacths.js

@@ -43,7 +43,9 @@ const getInfoOrderDate = function () {
             defaultParams.endTime = s2;
             defaultParams.endTime = s2;
             $('#orderTimeStart').val(s1);
             $('#orderTimeStart').val(s1);
             $('#orderTimeEnd').val(s2);
             $('#orderTimeEnd').val(s2);
-            getClubEacthsData(0,0)
+            if (defaultParams.startTime && defaultParams.endTime) {
+                getClubEacthsData(0,0)
+            }
         }
         }
     });
     });
 }
 }
@@ -69,7 +71,9 @@ const getInfoKeyWordsDate = function () {
             defaultParams.endTime = s2;
             defaultParams.endTime = s2;
             $('#keyWordsTimeStart').val(s1);
             $('#keyWordsTimeStart').val(s1);
             $('#keyWordsTimeEnd').val(s2);
             $('#keyWordsTimeEnd').val(s2);
-            getClubEacthsData(1,0)
+            if (defaultParams.startTime && defaultParams.endTime) {
+                getClubEacthsData(1,0)
+            }
         }
         }
     });
     });
 }
 }
@@ -95,7 +99,9 @@ const getInfoServiceDate = function () {
             defaultParams.endTime = s2;
             defaultParams.endTime = s2;
             $('#serviceTimeStart').val(s1);
             $('#serviceTimeStart').val(s1);
             $('#serviceTimeEnd').val(s2);
             $('#serviceTimeEnd').val(s2);
-            getClubEacthsData(2,0)
+            if (defaultParams.startTime && defaultParams.endTime) {
+                getClubEacthsData(2,0)
+            }
         }
         }
     });
     });
 }
 }
@@ -121,7 +127,9 @@ const getInfoVisitDate = function () {
             defaultParams.endTime = s2;
             defaultParams.endTime = s2;
             $('#visitTimeStart').val(s1);
             $('#visitTimeStart').val(s1);
             $('#visitTimeEnd').val(s2);
             $('#visitTimeEnd').val(s2);
-            getClubEacthsData(3,0)
+            if (defaultParams.startTime && defaultParams.endTime) {
+                getClubEacthsData(3,0)
+            }
         }
         }
     });
     });
 }
 }

+ 2 - 8
src/main/webapp/static/modules/cmClubPortrait/cmClubPortrait.js

@@ -10,14 +10,8 @@ $(function(){
     getInfoServiceDate();
     getInfoServiceDate();
     // 机构访问记录初始化时间
     // 机构访问记录初始化时间
     getInfoVisitDate();
     getInfoVisitDate();
-    // 执行机构订单图表
-    getClubEacthsData(0,0);
-    // 执行关键词排名图表
-    getClubEacthsData(1,0);
-    // 执行咨询记录排名图表
-    getClubEacthsData(2,0);
-    // 执行访问记录排名图表
-    getClubEacthsData(3,0);
+    // 第一次执行查所有
+    getClubEacthsData(4,0);
     // 点击筛选机构订单数据
     // 点击筛选机构订单数据
     $('#orderTabs').children("a").each(function (index) {
     $('#orderTabs').children("a").each(function (index) {
         $(this).click(function () {
         $(this).click(function () {