Browse Source

机构画像

zhengjinyi 2 years ago
parent
commit
5eb8fc8e47
1 changed files with 2 additions and 11 deletions
  1. 2 11
      src/main/webapp/static/modules/cmClubPortrait/cmClubEacths.js

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

@@ -45,8 +45,6 @@ const getInfoOrderDate = function () {
             $('#orderTimeEnd').val(s2);
             if (defaultParams.startTime && defaultParams.endTime) {
                 getClubEacthsData(0,0)
-                defaultParams.startTime = '';
-                defaultParams.endTime = '';
             }
         }
     });
@@ -75,8 +73,6 @@ const getInfoKeyWordsDate = function () {
             $('#keyWordsTimeEnd').val(s2);
             if (defaultParams.startTime && defaultParams.endTime) {
                 getClubEacthsData(1,0)
-                defaultParams.startTime = '';
-                defaultParams.endTime = '';
             }
         }
     });
@@ -105,8 +101,6 @@ const getInfoServiceDate = function () {
             $('#serviceTimeEnd').val(s2);
             if (defaultParams.startTime && defaultParams.endTime) {
                 getClubEacthsData(2,0)
-                defaultParams.startTime = '';
-                defaultParams.endTime = '';
             }
         }
     });
@@ -135,9 +129,6 @@ const getInfoVisitDate = function () {
             $('#visitTimeEnd').val(s2);
             if (defaultParams.startTime && defaultParams.endTime) {
                 getClubEacthsData(3,0)
-                defaultParams.startTime = '';
-                defaultParams.endTime = '';
-
             }
         }
     });
@@ -146,14 +137,12 @@ const getInfoVisitDate = function () {
 const  getClubEacthsData = function (type,dateType) {
     defaultParams.type = type;
     defaultParams.dateType = dateType;
-    console.log('数据接口请求参数',defaultParams)
     $.ajax({
         url: $('#eachtsAjaxUrl').val(),
         type: "GET",
         data: defaultParams,
         contentType : 'application/json;charset=UTF-8', //contentType很重要
         success: function (data) {
-            console.log('res',data)
             if (data.code === 0) {
                 switch (type) {
                     case 0:
@@ -193,6 +182,8 @@ const  getClubEacthsData = function (type,dateType) {
                         }
                         break;
                 }
+                defaultParams.startTime = '';
+                defaultParams.endTime = '';
             } else {
                 console.log('机构订单图表数据异常')
             }