|
@@ -173,8 +173,6 @@ const getClubEacthsData = function (type,dateType) {
|
|
|
$('#keyWordsEacthsNone').show();
|
|
|
$('#keyWordsEacths').hide();
|
|
|
}else{
|
|
|
- $('#keyWordsEacths').show();
|
|
|
- $('#keyWordsEacthsNone').hide();
|
|
|
setOtherData(type,data)
|
|
|
}
|
|
|
break;
|
|
@@ -183,8 +181,6 @@ const getClubEacthsData = function (type,dateType) {
|
|
|
$('#serviceEacthsNone').show();
|
|
|
$('#serviceEacths').hide();
|
|
|
}else{
|
|
|
- $('#serviceEacths').show();
|
|
|
- $('#serviceEacthsNone').hide();
|
|
|
setOtherData(type,data)
|
|
|
}
|
|
|
break;
|
|
@@ -193,8 +189,6 @@ const getClubEacthsData = function (type,dateType) {
|
|
|
$('#visitEacthsNone').show();
|
|
|
$('#visitEacths').hide();
|
|
|
}else{
|
|
|
- $('#visitEacths').show();
|
|
|
- $('#visitEacthsNone').hide();
|
|
|
setOtherData(type,data)
|
|
|
}
|
|
|
break;
|
|
@@ -252,6 +246,10 @@ const getOrderEacths = function (data) {
|
|
|
const setOtherData = function (type,data) {
|
|
|
const dataMap = {
|
|
|
1:{
|
|
|
+ fn:function () {
|
|
|
+ $('#keyWordsEacths').show();
|
|
|
+ $('#keyWordsEacthsNone').hide();
|
|
|
+ },
|
|
|
id:'keyWordsEacths',
|
|
|
color:'#e15616',
|
|
|
series:{
|
|
@@ -260,6 +258,10 @@ const setOtherData = function (type,data) {
|
|
|
},
|
|
|
},
|
|
|
2:{
|
|
|
+ fn:function () {
|
|
|
+ $('#serviceEacths').show();
|
|
|
+ $('#serviceEacthsNone').hide();
|
|
|
+ },
|
|
|
id:'serviceEacths',
|
|
|
color:'#36cbcb',
|
|
|
series:{
|
|
@@ -268,6 +270,10 @@ const setOtherData = function (type,data) {
|
|
|
},
|
|
|
},
|
|
|
3:{
|
|
|
+ fn:function () {
|
|
|
+ $('#visitEacths').show();
|
|
|
+ $('#visitEacthsNone').hide();
|
|
|
+ },
|
|
|
id:'visitEacths',
|
|
|
color:'#3aa0ff',
|
|
|
series:{
|
|
@@ -276,12 +282,12 @@ const setOtherData = function (type,data) {
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
- getOtherEacths(dataMap[type].id,dataMap[type].series,dataMap[type].color);
|
|
|
+ getOtherEacths(dataMap[type].fn,dataMap[type].id,dataMap[type].series,dataMap[type].color);
|
|
|
}
|
|
|
// 其他三个图表
|
|
|
-const getOtherEacths = function (id,data,color) {
|
|
|
+const getOtherEacths = function (hanldeFn,id,data,color) {
|
|
|
// 基于准备好的dom,初始化echarts实例
|
|
|
- console.log('id',id)
|
|
|
+ hanldeFn();
|
|
|
const myChart = echarts.init(document.getElementById(id));
|
|
|
const option = {
|
|
|
title: {
|