text: ﻿define(["config", "common", "t_EchartAjax", "util", "t_Main"], function (con, com, t_EchartAjax, util, t_Main) {
      //人员车辆统计图表数据
      var oRycltjChartRqaIndex = -1; 
      var oRycltjChartData1 = null;
      var oRycltjChartData2 = null;
      var legendOption = null;
      var rycltjChartClose = true;
  
      //交通信息图表数据
      var JtxxCharData1 = null;
      var JtxxCharData2 = null;
      var JtxxCharData3 = null;
      var JtxxCharxAxisData = null;
  
      //停车场使用情况图表数据
      var tccsyqkChartData1 = null;
      var tccsyqkChartData2 = null;
      var tccsyqkChartData3 = null;
      var tccsyqkChartData4 = null;
      var tccsyqkChartxAxisData = null;
  
      function xData() {//获取近6月日期
          var dataArr = [];
          var data = new Date();
          var year = data.getFullYear();
          data.setMonth(data.getMonth() + 1)//获取到当前月份,设置月份
          for (var i = 0; i < 6; i++) {
              data.setMonth(data.getMonth() - 1);//每次循环一次 月份值减1
              dataArr.push(data.getMonth() + 1 + '月')
          }
          return dataArr.reverse();
      }
   function MyDate(n) {
          var n = n;
          var d = new Date();
          var year = d.getFullYear();
          var mon = d.getMonth() + 1;
          var day = d.getDate();
          if (day <= n) {
              if (mon > 1) {
                  mon = mon - 1;
              }
              else {
                  year = year - 1;
                  mon = 12;
              }
          }
          d.setDate(d.getDate() - n);
          year = d.getFullYear()+"";
          mon = d.getMonth() + 1;
          //   day=d.getDate();      s = year+"-"+(mon<10?('0'+mon):mon)+"-"+(day<10?('0'+day):day);//日期类型2019-03-07
          day = d.getDate();
          s = year + (mon < 10 ? ('0' + mon) : mon) + (day < 10 ? ('0' + day) : day);//日期类型20190307(字符串)
  
          return s;
  
      }
      function MyDate1(n) {
          var n = n;
          var d = new Date();
          var year = d.getFullYear();
          var mon = d.getMonth() + 1;
          var day = d.getDate();
          if (day <= n) {
              if (mon > 1) {
                  mon = mon - 1;
              }
              else {
                  year = year - 1;
                  mon = 12;
              }
          }
          d.setDate(d.getDate() - n);
          year = d.getFullYear();
          mon = d.getMonth() + 1;
          //   day=d.getDate();      s = year+"-"+(mon<10?('0'+mon):mon)+"-"+(day<10?('0'+day):day);//日期类型2019-03-07
          day = d.getDate();
          s = year + (mon < 10 ? ('0' + mon) : mon) + (day < 10 ? ('0' + day) : day);//日期类型20190307(字符串)
  
          return s;
  
      }
      function MonDayDate(n) {
          var n = n;
          var d = new Date();
          var year = d.getFullYear();
          var mon = d.getMonth() + 1;
          var day = d.getDate();
          if (day <= n) {
              if (mon > 1) {
                  mon = mon - 1;
              }
              else {
                  year = year - 1;
                  mon = 12;
              }
          }
          d.setDate(d.getDate() - n);
          year = d.getFullYear();
          mon = d.getMonth() + 1;
          //day = d.getDate(); s = (mon < 10 ? ('0' + mon) : mon) + "月" + (day < 10 ? ('0' + day+'日') : day);//日期类型2019-03-07
          day = d.getDate(); s = mon + "月" + day + "日";
          //day=d.getDate();      s = year+(mon<10?('0'+mon):mon)+(day<10?('0'+day):day);//日期类型20190307(字符串)
  
          return s;
      }
      //获取当前的日期时间 格式“yyyy-MM-dd HH:MM:SS”
      function getNowFormatDate() {
          var date = new Date();
          var seperator1 = "-";
          var seperator2 = ":";
          var month = date.getMonth() + 1;
          var strDate = date.getDate();
          if (month >= 1 && month <= 9) {
              month = "0" + month;
          }
          if (strDate >= 0 && strDate <= 9) {
              strDate = "0" + strDate;
          }
          var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
                  + " " + date.getHours() + seperator2 + date.getMinutes()
                  + seperator2 + date.getSeconds();
          return currentdate;
      }
      return {
          myBigChart: null,//大的图表显示
          //加载图表
          personCarTimer: null,            //人员车辆统计定时器
          personCarTimer2: null,           //人员车辆统计定时器
          personCarTimer3: null,           //人员车辆统计定时器
          personCarTimer4: null,           //人员车辆统计定时器
          personCarTimer5: null,           //交通信息定时器
          Interval1: null,                 //交通信息数字定时器        
          Interval2: null,                 //交通信息数字定时器  
          Interval3: null,                 //无人机定时器
          Interval4: null,                 //交通信息数字定时器  
          Interval5: null,                 //交通信息数字定时器  
  
  
          myChartykfx: null,               //游客分析
          TouristAnalysisData: null,        //游客分析数据
  
          myChartykqsfx: null,              //游客趋势分析 
          FutureVisitorTrafficData: null,   //游客区域分析数据
          yqfxData: null,                   //舆情分析数据
          yqfxTypeData: null,               //舆情分析（类型统计数 正面负面中性）
          wrjData: null,                    //无人机数据
          ykhxData: null,                   //游客分析数据
          tccsyqkData: null,                 //停车场使用情况
          rycltjData: null,                  //人员车辆统计
          rycltjdtData: null,                  //人员车辆统计地铁
          rycltjjcclData: null,              //人员车辆统计进出车辆
          zxsxtData: null,                   //在线摄像头 
          yqsjlbData: null,                  //园区事件列表
          yqsjlbtjData: null,                //园区事件列表统计
          yqsjlbCenterEventData: null,       //园区事件列表放大
          myChartyqfx: null,                 //舆情分析
          myChartwrj: null,                  //无人机
          myChartjtxx: null,                 //交通信息 
          myChartrycltj: null,               //人员车辆统计
          myCharttccsyqk: null,              //停车场使用情况
          myChartjwrsjtj: null,             //近五日事件统计
          jwrsjtjData: null,                //近五日事件统计数据
          dtJtxxData: null,                 //地铁数据
          jcgJtxxData: null,                //进出港数据
          tccJtxxData: null,                //停车场数据
          jtxxData: null,                    //交通信息数据
          yqsjtjTypeData: null,             //园区事件统计类型
          yqsjtjQuyuData: null,             //园区事件统计区域
          droneRwlbData: null,             //景区事件任务列表
          loadEcharts: function () {
  
              this.rq();                  //日期
  
              this.jtxxtj();              //交通信息统计
  
  
  
          },
  
          //显示大的图表
          loadBigChart: function (divname) {
  
              //if ($("#" + divname).length <= 0) { return false; }
              
  
              var url = con.HtmlUrl + 'TourNew/Center_03.html';
              require(['text!' + url], function (template) {
                  $("#center_03").html(template);
                  $("#center_03").show('drop', 1000);//左侧
                  rycltjChartClose = true;
  
                  switch (divname) {
                      case "Left_First_02"://游客分析
                          require("t_Echart").bigTouristAnalysis();
                          break;
                      case "Left_First_03"://游客趋势分析
                          require("t_Echart").bigFutureVisitorTraffic();
                          break;
                      case "Left_First_04"://舆情分析
                          require("t_Echart").bigYqfx();
                          break;
                      case "Left_First_wrj"://无人机视频
                          require("t_Echart").wrjsp();
                          break;
                      case "Left_Second_01"://无人机
                          require("t_Echart").bigwrj();
                          break;
                      case "Left_Second_03"://交通信息
                          require("t_Echart").bigJtxx();
                          break;
                      case "Right_First_01"://人员车辆统计
                          rycltjChartClose = false;
                          require("t_Echart").bigRycltj(oRycltjChartRqaIndex, oRycltjChartData1, oRycltjChartData2, legendOption);
                          break;
                      case "Right_First_02"://停车场使用情况
                          require("t_Echart").bigTccsyqk();
                          break;
                      case "Right_First_03"://近五日事件统计
                          require("t_Echart").bigjwrsjtj();
                          break;
                      default:
                  }
  
              })
          },
          //关闭大的图表
          closeBigChart: function () {
              if (require("t_Echart").mybigChart != null && require("t_Echart").mybigChart != "" && require("t_Echart").mybigChart != undefined) {
                  require("t_Echart").mybigChart.dispose();
              }
              rycltjChartClose = true;
              $("#center_03").html("");           
          },
  		
  		// 景区居中放大 事件列表
          loadCenterEventList: function () {
          	var url = con.HtmlUrl + 'TourNew/Center_04.html';
          	require(['text!' + url], function (template) {
          		$("#center_04").html(template);
          		$("#center_04").show('drop', 1000);//左侧
          		require("t_Echart").yqsjCenterEventList();
          	})
          },
      	// 景区居中放大 事件列表关闭
          closeCenterEventList: function () {
          	$("#center_04").html("");
          },
  
  
          //园区预警指标动画
          dh: function () {
              var mathRandom = 0;
              var yqyjLevelbgTimer = null;
  
              var yqyjLevelLeftArr = [];
              $(".yqyj-levelbox>.yqyj-level").each(function (index, element) {
                  yqyjLevelLeftArr[index] = parseInt($(this).css("left")) / $(this).parent().width() * 100;
              })
              // 园区事件统计
              var yqsjNum = 0;
              var yqsjTimer = null;
              var yqsjTranFnTimer = null;
  
              yqsjFn();
  
              // 园区事件统计 定时器
              function yqsjFn() {
                  yqsjTimer = setTimeout(function () {
                      yqsjNum++;
                      yqsjNum = yqsjNum > 1 ? 0 : yqsjNum;
                      yqsjTranFn(yqsjNum);
                  }, 2000)
              }
  
              function yqsjTranFn(yqsjNum) {
                  if (yqsjNum == 0) {
                      $(".yqsj-tabitemul").css({ transform: "translateX(0)" })
                                          .children().eq(0).css({ opacity: 1 })
                                          .siblings().css({ opacity: 0 });
                  } else {
                      $(".yqsj-tabitemul").css({ transform: "translateX(-50%)" })
                                          .children().eq(0).css({ opacity: 0 })
                                          .siblings().css({ opacity: 1 });
                  }
                  $(".yqsj .jtxx-tabbox>.jtxx-tab").eq(yqsjNum).addClass("active").siblings().removeClass("active");
  
                  yqsjTranFnTimer = setTimeout(function () {
                      clearTimeout(yqsjTranFnTimer);
                      yqsjFn()
                  }, 500)
              }
  
              // 点击事件
              $(".yqsj .jtxx-tabbox>.jtxx-tab").each(function (index, element) {
                  $(this).click(function () {
                      clearTimeout(yqsjTimer);
                      clearTimeout(yqsjTranFnTimer);
                      yqsjNum = index;
  
                      yqsjTranFn(yqsjNum);
                  })
              })
  
          },
          //人员车辆统计日期
          rq: function () {
              function MyDate(n) {
                  var n = n;
                  var d = new Date();
                  var year = d.getFullYear();
                  var mon = d.getMonth() + 1;
                  var day = d.getDate();
                  if (day <= n) {
                      if (mon > 1) {
                          mon = mon - 1;
                      }
                      else {
                          year = year - 1;
                          mon = 12;
                      }
                  }
                  d.setDate(d.getDate() - n);
                  year = d.getFullYear();
                  mon = d.getMonth() + 1;
                  //day = d.getDate(); s = (mon < 10 ? ('0' + mon) : mon) + "月" + (day < 10 ? ('0' + day+'日') : day);//日期类型2019-03-07
                  day = d.getDate(); s = mon + "月" + day + "日";
                  //day=d.getDate();      s = year+(mon<10?('0'+mon):mon)+(day<10?('0'+day):day);//日期类型20190307(字符串)
  
                  return s;
              }
              $('#rq').empty()
              var html = '';
              html += '<a class="rycltj-datetab">' + MyDate(6) + '</a>';
              html += '<a class="rycltj-datetab">' + MyDate(5) + '</a>';
              html += '<a class="rycltj-datetab">' + MyDate(4) + '</a>';
              html += '<a class="rycltj-datetab">' + MyDate(3) + '</a>';
              html += '<a class="rycltj-datetab">' + MyDate(2) + '</a>';
              html += '<a class="rycltj-datetab">' + MyDate(1) + '</a>';
              html += '<a class="rycltj-datetab">' + MyDate(0) + '</a>';
              $('#rq').html(html)
          },
          //加载中间无人机视频
          wrjsp:function(){
              $("#bigechartHead").empty();
              require("t_Main").loadCenter_Video();
          },
          //游客分析
          ykfx: function () {
              if ($("#ykfx-chart").length <= 0) { return false; }
              var ykfxChart = document.getElementById('ykfx-chart');
              t_EchartAjax.getTouristAnalysis(function (result) {
  
                  if (require("t_Echart").TouristAnalysisData == null) { return false; }
  
  
                  var data = require("t_Echart").TouristAnalysisData;
                  var ykfxdata = [], ykfxage = [];
  
                  ykfxdata.push(data[1].value, data[0].value, data[2].value, data[3].value, data[4].value, data[5].value);
                  ykfxage.push(data[1].name, data[0].name, data[2].name, data[3].name, data[4].name, data[5].name);
  
                  require("t_Echart").myChartykfx = echarts.init(ykfxChart);
                  option = {
  
                      legend: {
                          show: false
                      },
                      color: ['#3398DB'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                              type: 'shadow',       //阴影指示器  默认为直线，可选为：'line' | 'shadow'
                          },
                          textStyle: {//默认值，
                              fontSize: 20,//默认值，
                          },
                      },
                      grid: {
                          left: '1%',   // grid 组件离容器左侧的距离。
                          right: '2%',
                          bottom: '2%',
                          height: "90%",
                          containLabel: true   //grid 区域是否包含坐标轴的刻度标签。
                      },
                      xAxis: {
                          type: 'category',
                          data: ykfxage,
                          boundaryGap: ['20%', '20%'],
                          nameTextStyle: {     //  坐标轴标题
                              color: "#00d7fe",
                              fontSize: 16,
                          },
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              lineStyle: {
                                  color: "rgba(80,172,254,.6)"
                              }
                          },
                          axisLabel: {
                              textStyle: {
                                  fontSize: 22,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              lineStyle: {
                                  color: "rgba(80,172,254,.6)"
                              }
                          }
                      },
                      yAxis: {
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              lineStyle: {
                                  color: "rgba(80,172,254,.6)",
                              }
                          },
                          //interval :1000,
                          axisLabel: {
                              formatter: function (value, index) {
                                  if (value >= 10000 && value < 10000000) {
                                      value = value / 10000 + "万";
                                  }
                                  return value;
                              },
                              textStyle: {
                                  fontSize: 22,
                                  color: "#00d7fe",
  
                              },
                          },
                          splitLine: {
                              lineStyle: {
                                  color: "rgba(80,172,254,.6)"
                              }
                          }
                      },
                      series: [
                      {
                          type: 'bar',
                          barWidth: 50,
                          itemStyle: {
                              normal: {
                                  barBorderRadius: [10,10,0,0],
                                  color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                      offset: 0,
                                      color: '#04cafc'
                                  }, {
                                      offset: 1,
                                      color: '#0e4abc'
                                  }]),
                              }
                          },
  
                          data: ykfxdata,
                      }
                      ]
                  };
                  //require("t_Echart").myChartykfx.clear();
                  require("t_Echart").myChartykfx.setOption(option, true);
              });
              
              $("#ykfx-title").click(function () {
                   require("t_Echart").ykfx();
              })
  
  
          },
          //游客分析（用户年龄分布）
          bigTouristAnalysis: function () {
              $("#bigechartHead").html('游客分析（用户年龄分布）');
              t_EchartAjax.getTouristAnalysis(function (result) {
  
                  if (require("t_Echart").TouristAnalysisData == null) { return false; }
  
  
                  var data = require("t_Echart").TouristAnalysisData;
                  var ykfxdata = [], ykfxage = [];
  
                  ykfxdata.push(data[1].value, data[0].value, data[2].value, data[3].value, data[4].value, data[5].value);
                  ykfxage.push(data[1].name, data[0].name, data[2].name, data[3].name, data[4].name, data[5].name);
  
                  option = {
  
                      legend: {
                          show: false
                      },
                      color: ['#3398DB'],
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                              type: 'shadow',       //阴影指示器  默认为直线，可选为：'line' | 'shadow'
                          },
                          textStyle: {//默认值，
                              fontSize: 50,//默认值，
                          },
                      },
                      grid: {
                          left: '5%',   // grid 组件离容器左侧的距离。
                          right: '5%',
                          bottom: '5%',
                          height: "86%",
                          containLabel: true   //grid 区域是否包含坐标轴的刻度标签。
                      },
                      xAxis: {
                          type: 'category',
                          data: ykfxage,
                          boundaryGap: ['20%', '20%'],
                          nameTextStyle: {     //  坐标轴标题
                              color: "#00d7fe",
                              fontSize: 50,
                          },
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              lineStyle: {
                                  width:4,
                                  color: "rgba(80,172,254,.6)"
                              }
                          },
                          axisLabel: {
                              textStyle: {
                                  fontSize: 50,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              lineStyle: {
                                  color: "rgba(80,172,254,.6)"
                              }
                          }
                      },
                      yAxis: {
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              lineStyle: {
                                  width:4,
                                  color: "rgba(80,172,254,.6)",
                              }
                          },
                          //interval :1000,
                          axisLabel: {
                              formatter: function (value, index) {
                                  if (value >= 10000 && value < 10000000) {
                                      value = value / 10000 + "万";
                                  }
                                  return value;
                              },
                              textStyle: {
                                  fontSize: 50,
                                  color: "#00d7fe",
                              }
                          },
                          splitLine: {
                              lineStyle: {
                                  width:4,
                                  color: "rgba(80,172,254,.6)"
                              }
                          }
                      },
                      series: [
                      {
                          type: 'bar',
                          barWidth: 120,
                          itemStyle: {
                              normal: {
                                  barBorderRadius: [20,20,0,0],
                                  color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                      offset: 0,
                                      color: '#04cafc'
                                  }, {
                                      offset: 1,
                                      color: '#0e4abc'
                                  }]),
                              }
                          },
  
                          data: ykfxdata,
                      }
                      ]
                  };
  
                  if (require("t_Echart").mybigChart != null && require("t_Echart").mybigChart != "" && require("t_Echart").mybigChart != undefined) {
                      require("t_Echart").mybigChart.dispose();
                  }
                  require("t_Echart").mybigChart = echarts.init(document.getElementById('Big-chart'));
                  require("t_Echart").mybigChart.setOption(option);
              });
          },
          //游客画像
          ykhx: function () {
              t_EchartAjax.ykhx(function (result) {
                  try {
  
                  
                  var data = require("t_Echart").ykhxData;
  
                 // var nvPer = data[0].Value.toFixed(2) * 100
                  var nvPer = (data[0].Value * 100).toFixed(0);
                  var nanPer = 100 - nvPer;
                      //这里报错，缺少性别数据
                  var benPer = (data[3].Value * 100).toFixed(0);
                  var waiPer = 100 - benPer;
  
                  var numPer = [nvPer, nanPer, waiPer, benPer]
  
  
  
                  var html = '';
                  for (var i = 0; i < data.length; i++) {
                      html += '<li class="cgq-li">';
                      html += '<div class="item-l" data-text="3"></div>';
                      html += '<div class="item-r"><div class="item-r-name">' + data[i].Name + '</div><div class="item-r-data"><span class="testAerial">' + numPer[i] + '</span>%</div></div>';
                      html += '</li>';
                  }
                  $('.ykhx-ul').html(html)
                  } catch (e) {
  
                  }
              })
  
          },
          //游客趋势分析
          ykqsfx: function () {
              var post_data = {
              	"Timenow": require("common").getNowFormatDate()
              }
              t_EchartAjax.getfutureVisitorTraffic(post_data, function (result) {
  
              	var data = require("t_Echart").FutureVisitorTrafficData;
  
              	var ykqsfxdata=[], ykqsfxtime=[];
  
              	for (var i = 0; i < data.length - 1; i++) { //不显示当前月的数据
              	    ykqsfxdata.push(data[i].ryrs);
              	    ykqsfxtime.push(data[i].MONTH);
  				}
  
                 option = {
                      legend: {
                          show: false
                      },
                      color: ['#3398DB'],
                      grid: {
                          left: '5%',   // grid 组件离容器左侧的距离。
                          right: '5%',
                          bottom: '5%',
                          height: "86%",
                          containLabel: true,   //grid 区域是否包含坐标轴的刻度标签。
                          show: true,
                          backgroundColor: "rgba(74,128,244,.1)",
              			borderColor:"transparent",
  					},
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'cross',
                              label: {
                                  show: false,
                              }
  
                          },
                          textStyle: {//默认值，
                              fontSize: 20,//默认值，
                          },
                      },
                      xAxis: {
                          type: 'category',
                          data: ykqsfxtime,
                          boundaryGap: false,
                          nameTextStyle: {
                              color: "#00d7fe",
                              fontSize: 15,
                          },
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  width: 1,
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          axisLabel: {
                              textStyle: {
                                  fontSize: 22,
                                  color: "#00d7fe"
                              },
                              //rotate:45,
                          },
                          splitLine: {
                              show: true,
                              lineStyle: {
                                  width: 1,
                                  color: "rgba(80,172,254,0.3)"
                              }
                          }
  
                      },
                      yAxis: {
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          //interval: 150,
                          axisLabel: {
                              formatter: function (value, index) {
                                  if (value >= 10000 && value < 10000000) {
                                      value = value / 10000 + "万";
                                  }
                                  return value;
                              },
                              textStyle: {
                                  fontSize: 22,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              lineStyle: {
                                  width: 1,
                                  color: "rgba(80,172,254,0.3)",
                              }
                          }
                      },
                      series: [
                        {
                            type: 'line',
                            //smooth:true,
                            color: "rgba(7,196,230,1)",
                            lineStyle: {
                                width: 4,
                            },
                            symbolSize: 10,
                            data: ykqsfxdata
                        }
                      ]
                  };
  
                  require("t_Echart").myChartykqsfx = echarts.init(document.getElementById('ykqsfx-chart'));
                  //require("t_Echart").myChartykqsfx.clear();
                  require("t_Echart").myChartykqsfx.setOption(option);
  
              });
          },
          //大游客趋势分析
          bigFutureVisitorTraffic: function () {
              $("#bigechartHead").html( "游客趋势分析");
              var post_data = {
              	"Timenow": require("common").getNowFormatDate()
              }
              t_EchartAjax.getfutureVisitorTraffic(post_data, function (result) {
              	var data = require("t_Echart").FutureVisitorTrafficData;
  
              	var ykqsfxdata = [], ykqsfxtime = [];
  
              	for (var i = 0; i < data.length - 1; i++) {
              	    // ykqsfxdata.push(data[i].visNumber);
                      // ykqsfxtime.push(data[i].month + "月");
                      ykqsfxdata.push(data[i].ryrs);
              	    ykqsfxtime.push(data[i].MONTH);
              	}
  
                  option = {
                      legend: {
                          show: false
                      },
                      color: ['#3398DB'],
                      grid: {
                          left: '5%',   // grid 组件离容器左侧的距离。
                          right: '5%',
                          bottom: '5%',
                          height: "86%",
                          containLabel: true,  //grid 区域是否包含坐标轴的刻度标签。
                          show: true,
                          backgroundColor: "rgba(74,128,244,.1)",
                          borderColor: "transparent",
                      },
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'cross',
                              label: {
                                  show: false,
                              }
  
                          },
                          textStyle: {//默认值，
                              fontSize: 50,//默认值，
                          },
                      },
                      xAxis: {
                          type: 'category',
                          data: ykqsfxtime,
                          boundaryGap: false,
                          nameTextStyle: {
                              color: "#00d7fe",
                              fontSize: 50,
                          },
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  width: 3,
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          axisLabel: {
                              textStyle: {
                                  fontSize: 50,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              show: true,
                              lineStyle: {
                                  width:3,
                                  color: "rgba(80,172,254,0.3)"
                              }
                          }
  
                      },
                      yAxis: {
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  width: 3,
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          //interval: 150,
                          axisLabel: {
                              formatter: function (value, index) {
                                  if (value >= 10000 && value < 10000000) {
                                      value = value / 10000 + "万";
                                  }
                                  return value;
                              },
                              textStyle: {
                                  fontSize: 50,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              lineStyle: {
                                  width: 3,
                                  color: "rgba(80,172,254,0.3)",
                              }
                          }
                      },
                      series: [
                        {
                            type: 'line',
                            //smooth:true,
                            color: "rgba(7,196,230,1)",
                            lineStyle: {
                                width: 8,
                            },
                            symbolSize: 20,
                            data: ykqsfxdata
                        }
                      ]
                  };
                  if (require("t_Echart").mybigChart != null && require("t_Echart").mybigChart != "" && require("t_Echart").mybigChart != undefined) {
                      require("t_Echart").mybigChart.dispose();
                  }
                  require("t_Echart").mybigChart = echarts.init(document.getElementById('Big-chart'));
                  require("t_Echart").mybigChart.setOption(option);
  
              });
          },
          //舆情分析
          yqfx: function () {
              var yqfxChart = document.getElementById('yqfx-chart');
              if ($("#yqfx-chart").length <= 0) { return false; }
              t_EchartAjax.bigyqfx(function (result) {
                  if (require("t_Echart").yqfxData == null) { return false; }
  
                  var data = require("t_Echart").yqfxData;
                  var seriesData = [];
                  for (var i = 0; i < data.ValueList.length; i++) {
                      seriesData.push({ "value": data.ValueList[i], "name": data.NameList[i], });
                  }
  
                  require("t_Echart").myChartyqfx = echarts.init(yqfxChart);
                  option = {
                      tooltip: {
                          show: false,
                          trigger: 'item',
                      },
                      legend: {
                          show: false,
                      },
                      color: ["#3cb2ef", "#32c4e9", "#66e0e3", "#9fe7b9", "#fedb5b", "#ff9f7f", "#fc7293", "#e061ae", "#e690d1", "#e7bcf2"],
                      series: [
                          {
                              name: '访问来源',
                              type: 'pie',
                              radius: '55%',
                              minAngle: 15,//最小角度
                              startAngle: 45, //起始角度
                              center: ["center", "center"],
                              data: seriesData,
                              itemStyle: {
                                  emphasis: {
                                      shadowBlur: 10,
                                      shadowOffsetX: 0,
                                      shadowColor: 'rgba(0, 0, 0, 0.5)'
                                  }
                              },
                              labelLine: {
                                  normal: {
                                      length: 10,
                                      length2:90,
                                      lineStyle: {
                                          width: 2,
                                          color: "#0996d1"
                                      }
                                  }
                              },
                              label: {
                                  normal: {
                                      fontSize: 18,
                                      formatter: '{b|{b}}{per|{d}}%\n',
                                      padding: [0, -90],
                                      rich: {
                                          b: {
                                              fontSize: 16,
                                              lineHeight: 36,
                                          },
                                          per: {
                                              fontSize: 20,
                                              fontFamily: "Aerial",
                                          },
                                          center: {
                                              position: "center",
                                          }
                                      }
                                  }
                              },
                          }
                      ]
                  };
  
                  require("t_Echart").myChartyqfx.setOption(option, true)
              })
  
              //舆情分析（类型统计数 正面负面中性）
              t_EchartAjax.yqfxType(function (result) {
                  if (require("t_Echart").yqfxTypeData == null) { return false; }
                  var data = require("t_Echart").yqfxTypeData;
  
                  $("#yqfx-positive").html("(" + data[1].fsPercent + "%)")
                  $("#yqfx-neutral").html("(" + data[0].fsPercent + "%)")
                  $("#yqfx-negative").html("(" + data[2].fsPercent + "%)")
  
              })
  
          },
          //舆情分析（统计图表）
          bigYqfx: function () {
              $("#bigechartHead").html("舆情分析（统计图表）");
              if ($("#yqfx-chart").length <= 0) { return false; }
              if ($("#Big-chart").length <= 0) { return false; }
  
              t_EchartAjax.bigyqfx(function (result) {
                  if (require("t_Echart").yqfxData == null) { return false; }
  
                  var data = require("t_Echart").yqfxData;
                  var seriesData = [];
                  for (var i = 0; i < data.ValueList.length; i++) {
                      seriesData.push({ "value": data.ValueList[i], "name": data.NameList[i], });
                  }
  
                  option = {
                      tooltip: {
                          show: false,
                          trigger: 'item',
                          formatter: "{a} <br/>{b} : {c} ({d}%)"
                      },
                      legend: {
                          show: false,
                      },
                     // color: ["#e77800", "#5672ed", "#70d958", "#b758d9", "#e7e300", "#1a8fef"],
                      color: ["#3cb2ef", "#32c4e9", "#66e0e3", "#9fe7b9", "#fedb5b", "#ff9f7f", "#fc7293", "#e061ae", "#e690d1", "#e7bcf2"],
                      series: [
                          {
                              name: '访问来源',
                              type: 'pie',
                              radius: '65%',
                              minAngle: 15,//最小角度
                              startAngle: 45, //起始角度
                              center: ["center", "center"],
                              data: seriesData,
                              itemStyle: {
                                  emphasis: {
                                      shadowBlur: 10,
                                      shadowOffsetX: 0,
                                      shadowColor: 'rgba(0, 0, 0, 0.5)'
                                  }
                              },
                              labelLine: {
                                  normal: {
                                      length: 20,
                                      length2: 200,
                                      lineStyle: {
                                          width: 4,
                                          color: "#0996d1"
                                      }
                                  }
                              },
                              label: {
                                  normal: {
                                      fontSize: 50,
                                      formatter: '{b|{b}}{per|{d}}%\n',
                                      padding: [0, -180],
                                      rich: {
                                          b: {
                                              fontSize: 50,
                                              lineHeight: 52,
                                          },
                                          per: {
                                              fontSize: 56,
                                              fontFamily: "Aerial",
                                          },
                                          center: {
                                              position: "center",
                                          }
                                      }
                                  }
                              },
                          }
                      ]
                  };
                  if (require("t_Echart").mybigChart != null && require("t_Echart").mybigChart != "" && require("t_Echart").mybigChart != undefined) {
                      require("t_Echart").mybigChart.dispose();
                  }
                  require("t_Echart").mybigChart = echarts.init(document.getElementById('Big-chart'));
                  require("t_Echart").mybigChart.setOption(option);
              })
          },
  
          //舆情信息数 话题数
          yqxxs: function () {
              $.ajax({
                  type: 'POST',
                  url: con.InterfaceUrl_DataStation + '/v1/publicSentimentStatistic',
                  cache: false,
                  // data:post_data,
                  dataType: 'json',
                  success: function (data) {
                      $('#yqxxs').html(data[0])
                      $('#rmhts').html(data[1])
                  },
                  error: function () {
  
                  }
              })
          },
  
          //无人机
          wrj: function () {
              this.Interval3 = setInterval(function () {
                  if ($("#wrj-chart").length <= 0) { return false; }
  
                  var wrjChart = document.getElementById('wrj-chart');
  
                  t_EchartAjax.getBigwrj(function (data) {
  
                      var data = require("t_Echart").wrjData;
  
  
                      require("t_Echart").myChartwrj = echarts.init(wrjChart);
  
                      wrjOption = {
                          title: {
                              text: data[0].wrj_cnt,
                              subtext: '总数',
                              x: 'center',
                              y: '38%',
                              textStyle: {
                                  color: '#ea6604',
                                  fontSize: 24,
                                  fontFamily: "Aerial"
                              },
                              subtextStyle: {
                                  color: '#fff',
                                  fontSize: 20
                              }
                          },
                          tooltip: {},
                          legend: {
                              show: false
                          },
                          color: ["#09d10e", "#0024fe", "#7d43f3"],
                          series: [
                              {
                                  type: 'pie',
                                  radius: ['50%', '64%'],
                                  center: ["center", "center"],
                                  itemStyle: {
                                      borderWidth: 0,
                                      borderColor: "#000",
                                  },
                                  labelLine: {
                                      normal: {
                                          length: 20,
                                          length2: 80,
                                          lineStyle: {
                                              width: 2,
                                              color: "#0996d1"
                                          }
                                      }
                                  },
                                  label: {
                                      normal: {
                                          fontSize: 20,
                                          formatter: '{b|{b}}\n{c}架',
                                          padding: [0, -70],
                                          color: "#0996d1",
                                          rich: {
                                              b: {
                                                  fontSize: 20,
                                                  lineHeight: 36,
                                                  color: "#fff",
                                              },
                                              c: {
                                                  fontSize: 20,
                                                  lineHeight: 36,
                                                  color: "#fff",
                                                  position: "center",
                                              },
                                              per: {
                                                  fontSize: 20,
                                                  color: "#0996d1",
                                                  fontFamily: "Aerial",
                                              },
                                              center: {
                                                  position: "center",
                                              }
                                          }
                                      }
                                  },
                                  data: [
                                      { value: data[0].wrj_flying_cnt, name: '执飞中' },
                                      { value: data[0].wrj_charging_cnt, name: '充电中' },
                                      { value: data[0].wrj_idle_cnt, name: '待命中' }
                                  ]
                              }
                          ]
                      };
                      //require("t_Echart").myChartwrj.clear();
                      $("#wrjsx").click(function () {
                          require("t_Echart").myChartwrj.clear()
                          require("t_Echart").wrj()
                          require("t_Echart").myChartwrj.setOption(wrjOption, true)
                      });
                      require("t_Echart").myChartwrj.setOption(wrjOption, true);
                  })
              }, 5000);
          },
          //大无人机(统计)
          bigwrj: function () {
              if ($("#wrj-chart").length <= 0) { return false; }
              $("#bigechartHead").html("无人机（统计）");
              t_EchartAjax.getBigwrj(function (data) {
                  var data = require("t_Echart").wrjData;
                  wrjOption = {
                      title: {
                          text: data[0].wrj_cnt,
                          subtext: '总数',
                          x: 'center',
                          y: '38%',
                          textStyle: {
                              color: '#ea6604',
                              fontSize: 140,
                              fontFamily: "Aerial"
                          },
                          subtextStyle: {
                              color: '#fff',
                              fontSize: 100
                          }
                      },
                      tooltip: {
                          show:false
                      },
                      legend: {
                          show: false
                      },
                      color: ["#09d10e", "#0024fe", "#7d43f3"],
                      series: [
                          {
                              type: 'pie',
                              radius: ['48%', '62%'],
                              center: ["center", "center"],
                              itemStyle: {
                                  borderWidth: 0,
                                  borderColor: "#000",
                              },
                              labelLine: {
                                  normal: {
                                      length: 40,
                                      length2: 300,
                                      lineStyle: {
                                          width: 8,
                                          color: "#0996d1"
                                      }
                                  }
                              },
                              label: {
                                  normal: {
                                      fontSize: 70,
                                      formatter: '{b|{b}}\n{c}架',
                                      padding: [0, -200],
                                      color: "#0996d1",
                                      rich: {
                                          b: {
                                              fontSize: 70,
                                              lineHeight: 76,
                                              color: "#fff",
                                          },
                                          c: {
                                              fontSize: 20,
                                              lineHeight: 36,
                                              color: "#fff",
                                              position: "center",
                                          },
                                          per: {
                                              fontSize: 70,
                                              color: "#0996d1",
                                              fontFamily: "Aerial",
                                          },
                                          center: {
                                              position: "center",
                                          }
                                      }
                                  }
                              },
                              data: [
                                       { value: data[0].wrj_flying_cnt, name: '执飞中' },
                                       { value: data[0].wrj_charging_cnt, name: '充电中' },
                                       { value: data[0].wrj_idle_cnt, name: '待命中' }
                              ]
                          }
                      ]
                  };
  
                  if (require("t_Echart").mybigChart != null && require("t_Echart").mybigChart != "" && require("t_Echart").mybigChart != undefined) {
                      require("t_Echart").mybigChart.dispose();
                  }
                  require("t_Echart").mybigChart = echarts.init(document.getElementById('Big-chart'));
                  require("t_Echart").mybigChart.setOption(wrjOption);
              });
  
          },
          //交通信息统计
          jtxxtj: function () {
  
              var sum = MyDate(0);//索引查找第一天日期
              t_EchartAjax.getJtxxData(function (data) {
                  var data = require("t_Echart").jtxxData;//数据
                  try {
                      var cgNumber = data[sum].进港;
  
                      var jgNumber = data[sum].出港;
  
                      var tccNumber = data[sum].停车场;
  
                      var dtNumber = data[sum].地铁;
  
                      $('#subway').html(cgNumber);
                      $('#car').html(jgNumber);
                      $('#park').html(tccNumber);
                      $('#dt').html(dtNumber);
                  } catch (error) {
  
                  }
              })
              personCarTimer5 = setInterval(function () {
                  var sum = MyDate(0);//索引查找第一天日期
                  t_EchartAjax.getJtxxData(function (data) {
                      var data = require("t_Echart").jtxxData;//数据
                      try {
  
                          var jgNumber = data[sum].进港;
                          var cgNumber = data[sum].出港;
                          var tccNumber = data[sum].停车场;
                          var dtNumber = data[sum].地铁;
                          $('#subway').html(jgNumber);
                          $('#car').html(cgNumber);
                          $('#park').html(tccNumber);
                          $('#').html(dtNumber);
                      } catch (error) {
  
                      }
                  })
              }, 1000 * 60 * 1); //每分钟刷新一次页面下边显示的数据
              if ($("#car").length > 0) {
                  this.Interval1 = setInterval(function () {
                      var cgNumber = $("#car").html();
                      if (cgNumber != "" && cgNumber != null) {
                          cgNumber = cgNumber.replace(/,/ig, '');
                      }
                      var step_values = com.random(0, 10)
                      var current_values = parseInt(cgNumber) + step_values
                      //if (current_values <= 20) { current_values = 20 }
                      current_values = com.toThousands(current_values)
                      $("#car").html(current_values)
                  }, 6400);
              }
              if ($("#park").length > 0) {
                  this.Interval2 = setInterval(function () {
                      var tccNumber = $("#park").html();
                      if (tccNumber != "" && tccNumber != null) {
                          tccNumber = tccNumber.replace(/,/ig, '');
                      }
                      var step_values = com.random(0, 10)
                      var current_values = parseInt(tccNumber) + step_values
                      //if (current_values <= 20) { current_values = 20 }
                      current_values = com.toThousands(current_values)
                      $("#park").html(current_values)
                  }, 5000);
              }
              if ($("#subway").length > 0) {
                  this.Interval4 = setInterval(function () {
                      var jgNumber = $("#subway").html();
                      if (jgNumber != "" && jgNumber != null) {
                          jgNumber = jgNumber.replace(/,/ig, '');
                      }
                      var step_values = com.random(0, 10)
                      var current_values = parseInt(jgNumber) + step_values
                      //if (current_values <= 20) { current_values = 20 }
                      current_values = com.toThousands(current_values)
                      $("#subway").html(current_values)
                  }, 5400);
              }
              if ($("#dt").length > 0) {
                  this.Interval5 = setInterval(function () {
                      var dtNumber = $("#dt").html();
                      if (dtNumber != "" && dtNumber != null) {
                          dtNumber = dtNumber.replace(/,/ig, '');
                      }
                      var step_values = com.random(0, 10)
                      var current_values = parseInt(dtNumber) + step_values
                      //if (current_values <= 20) { current_values = 20 }
                      current_values = com.toThousands(current_values)
                      $("#dt").html(current_values)
                  }, 6000);
              }
          },
  
          //交通信息
          jtxx: function () {  //交通信息-实时人流量
              function MyDate(n) {
                  var n = n;
                  var d = new Date();
                  var year = d.getFullYear();
                  var mon = d.getMonth() + 1;
                  var day = d.getDate();
                  if (day <= n) {
                      if (mon > 1) {
                          mon = mon - 1;
                      }
                      else {
                          year = year - 1;
                          mon = 12;
                      }
                  }
                  d.setDate(d.getDate() - n);
                  year = d.getFullYear();
                  mon = d.getMonth() + 1;
                  //day = d.getDate(); s = (mon < 10 ? ('0' + mon) : mon) + "月" + (day < 10 ? ('0' + day+'日') : day);//日期类型2019-03-07
                  day = d.getDate(); s = mon + "月" + day + "日";
                  //day=d.getDate();      s = year+(mon<10?('0'+mon):mon)+(day<10?('0'+day):day);//日期类型20190307(字符串)
                  return s;
              }
              var jtxxChart = document.getElementById('jtxx-chart');
              if ($("#jtxx-chart").length <= 0) { return false; }
              t_EchartAjax.getJtxxData(function (data) {
                  // var dtData = [0, 0, 0, 0, 0, 0, 0], jcgData = [129116, 137918, 118433, 126314, 121394, 127931, 93626], tccData = [28887, 25124, 15987, 10006, 19017, 19364, 14042];
                  var jgclData = [], cgclData = [], tccData = [],dtData=[]
  
                  var TempData = 0;
                  var data = require("t_Echart").jtxxData;//数据
                  try {
                      for (var i in data) {
                          jgclData.push(data[i].进港)
                          cgclData.push(data[i].出港)
                          tccData.push(data[i].停车场)
                          dtData.push(data[i].地铁)
                          TempData++
                      }
                      JtxxCharxAxisData = [MyDate(6), MyDate(5), MyDate(4), MyDate(3), MyDate(2), MyDate(1), MyDate(0)];
  
                      if (TempData >= 7) {
                          JtxxCharData1 = jgclData;
                          JtxxCharData2 = cgclData;
                          JtxxCharData3 = tccData;
                          JtxxCharData4 = dtData;
                          JtxxChartFun(JtxxCharData1, JtxxCharData2, JtxxCharData3,JtxxCharData4, JtxxCharxAxisData)
                      }
                      function JtxxChartFun(JtxxCharData1, JtxxCharData2, JtxxCharData3,JtxxCharData4, JtxxCharxAxisData) {
                          jtxxOption = {
                              title: {
                                  text: "实时流量",
                                  left: "1%",
                                  top: "5%",
                                  textStyle: {
                                      fontSize: 30,
                                      color: "#00fddc"
                                  },
                              },
                              legend: {
                                  left: '25%',
                                  top: " 5%",
                                  data: ['进港车辆', '出港车辆', '停车场','地铁'],
                                  icon: 'rect',
                                  itemWidth: 40,
                                  itemHeight: 26,
                                  textStyle: {
                                      fontSize: 28,
                                      color: "#fff"
                                  },
                              },
                              color: ['#3398DB'],
                              grid: {
                                  left: '2%',   // grid 组件离容器左侧的距离。
                                  right: '2%',
                                  bottom: '2%',
                                  height: "76%",
                                  containLabel: true,   //grid 区域是否包含坐标轴的刻度标签。
                                  show: true,
                                  backgroundColor: "rgba(74,128,244,.1)",
                                  borderColor: "transparent",
                              },
                              tooltip: {
                                  trigger: 'axis',
                                  axisPointer: {
                                      type: 'cross',
                                      label: {
                                          show: false,
                                      }
  
                                  },
                              },
                              xAxis: {
                                  type: 'category',
                                  data: JtxxCharxAxisData,
                                  boundaryGap: false,
                                  nameTextStyle: {
                                      color: "#00d7fe",
                                      fontSize: 16,
                                  },
                                  axisTick: {
                                      show: false,
                                      //length:2
                                  },
                                  axisLine: {
                                      show: true,
                                      lineStyle: {
                                          color: "rgba(80,172,254,0.3)"
                                      }
                                  },
                                  axisLabel: {
                                      textStyle: {
                                          fontSize: 18,
                                          color: "#00d7fe"
                                      }
                                  },
                                  splitLine: {
                                      show: false,
                                      lineStyle: {
                                          color: "rgba(80,172,254,0.3)"
                                      }
                                  }
  
                              },
                              yAxis: {
                                  axisTick: {
                                      show: false,
                                  },
                                  axisLine: {
                                      show: true,
                                      lineStyle: {
                                          color: "rgba(80,172,254,0.3)"
                                      }
                                  },
                                  //interval: 1000,
                                  axisLabel: {
                                      formatter: function (value, index) {
                                          if (value >= 10000 && value < 10000000) {
                                              value = value / 10000 + "万";
                                          }
                                          return value;
                                      },
                                      textStyle: {
                                          fontSize: 18,
                                          color: "#00d7fe"
                                      }
                                  },
                                  splitLine: {
                                      lineStyle: {
                                          color: "rgba(80,172,254,0.3)",
                                      }
                                  }
                              },
                              series: [
                                {
                                    type: 'line',
                                    color: "rgba(253,238,0,.5)",
                                    lineStyle: {
                                        width: 4,
                                    },
                                    symbolSize: 8,
                                    name: "进港车辆",
                                    data: JtxxCharData1
                                },
                                {
                                    type: 'line',
                                    color: "rgba(11,239,215,.5)",
                                    lineStyle: {
                                        width: 4,
                                    },
                                    symbolSize: 8,
                                    name: "出港车辆",
                                    data: JtxxCharData2
                                },
                                {
                                    type: 'line',
                                    color: "rgba(195,70,2,.8)",
                                    lineStyle: {
                                        width: 4,
                                    },
                                    symbolSize: 8,
                                    name: "停车场",
                                    data: JtxxCharData3
                                },
                                {
                                    type: 'line',
                                    color: "blue",
                                    lineStyle: {
                                        width: 4,
                                    },
                                    symbolSize: 8,
                                    name: "地铁",
                                    data: JtxxCharData4
                                }
                              ]
                          };
  
                          require("t_Echart").myChartjtxx = echarts.init(jtxxChart);
                          require("t_Echart").myChartjtxx.setOption(jtxxOption, true);
  
                          //require("t_Echart").myChartjtxx.clear();
                          $("#ssll").click(function () {
                              require("t_Echart").myChartjtxx.clear()
                              require("t_Echart").myChartjtxx = echarts.init(jtxxChart);
                              require("t_Echart").myChartjtxx.setOption(jtxxOption, true);
  
  
                             // require("t_Echart").jtxx()
                              require("t_Echart").mybigChart.clear()
                              require("t_Echart").bigJtxx()
                              require("t_Echart").jtxxtj()
  
                          });
  
                      }
                  } catch (error) {
  
                  }
  
              })
          },
          //大交通信息
          bigJtxx: function () {
              $("#bigechartHead").html("交通信息（实时流量）");
              try {
                  option = {
                      title: {
                          show:false,
                          text: "实时流量",
                          left: "1%",
                          top: "5%",
                          textStyle: {
                              fontSize: 50,
                              color: "#00fddc"
                          },
                      },
                      legend: [
                          {
                              left: '20%',
                              top: "1%",
                              icon: 'rect',
                              itemWidth: 50,
                              itemHeight: 50,
                              textStyle: {
                                  fontSize: 50,
                                  color: "#fff"
                              },
                              data: ['进港车辆']
                          },
                          {
                              left: '40%',
                              top: "1%",
                              icon: 'rect',
                              itemWidth: 50,
                              itemHeight: 50,
                              textStyle: {
                                  fontSize: 50,
                                  color: "#fff"
                              },
                              data: ['出港车辆']
                          },
                          {
                              left: '60%',
                              top: "1%",
                              icon: 'rect',
                              itemWidth: 50,
                              itemHeight: 50,
                              textStyle: {
                                  fontSize: 50,
                                  color: "#fff"
                              },
                              data: ['停车场']
                          },
                          {
                              left: '80%',
                              top: "1%",
                              icon: 'rect',
                              itemWidth: 50,
                              itemHeight: 50,
                              textStyle: {
                                  fontSize: 50,
                                  color: "#fff"
                              },
                              data: ['地铁']
                          },
                      ],
                      color: ['#3398DB'],
                      grid: {
                          left: '5%',   // grid 组件离容器左侧的距离。
                          right: '5%',
                          bottom: '5%',
                          height: "86%",
                          containLabel: true,   //grid 区域是否包含坐标轴的刻度标签。
                          show: true,
                          backgroundColor: "rgba(74,128,244,.1)",
                          borderColor: "transparent",
                      },
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'cross',
                              label: {
                                  show: false,
                              },
                          },
                          textStyle: {//默认值，
                              fontSize: 50,//默认值，
                          },
                      },
                      xAxis: {
                          type: 'category',
                          data: JtxxCharxAxisData,
                          boundaryGap: false,
                          nameTextStyle: {
                              color: "#00d7fe",
                              fontSize: 50,
                          },
                          axisTick: {
                              show: false,
                              //length:2
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  width: 3,
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          axisLabel: {
                              textStyle: {
                                  fontSize: 50,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              show: false,
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)"
                              }
                          }
  
                      },
                      yAxis: {
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  width: 3,
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          //interval: 1000,
                          axisLabel: {
                              formatter: function (value, index) {
                                  if (value >= 10000 && value < 10000000) {
                                      value = value / 10000 + "万";
                                  }
                                  return value;
                              },
                              textStyle: {
                                  fontSize: 50,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              lineStyle: {
                                  width: 3,
                                  color: "rgba(80,172,254,0.3)",
                              }
                          }
                      },
                      series: [
                          {
                              type: 'line',
                              color: "rgba(253,238,0,.5)",
                              lineStyle: {
                                  width: 8,
                              },
                              symbolSize: 16,
                              name: "进港车辆",
                              data: JtxxCharData1
                          },
                          {
                              type: 'line',
                              color: "rgba(11,239,215,.5)",
                              lineStyle: {
                                  width: 8,
                              },
                              symbolSize: 16,
                              name: "出港车辆",
                              data: JtxxCharData2
                          },
                          {
                              type: 'line',
                              color: "rgba(195,70,2,.8)",
                              lineStyle: {
                                  width: 8,
                              },
                              symbolSize: 16,
                              name: "停车场",
                              data: JtxxCharData3
                          },
                          {
                              type: 'line',
                              color: "blue",
                              lineStyle: {
                                  width: 8,
                              },
                              symbolSize: 16,
                              name: "地铁",
                              data: JtxxCharData4
                          }
                      ]
                  };
  
                  if (require("t_Echart").mybigChart != null && require("t_Echart").mybigChart != "" && require("t_Echart").mybigChart != undefined) {
                      require("t_Echart").mybigChart.dispose();
                  }
                  require("t_Echart").mybigChart = echarts.init(document.getElementById('Big-chart'));
                  require("t_Echart").mybigChart.setOption(option);
  
              } catch (error) {
  
              }
  
          },
          //在线摄像头
          zxsxt: function () {
              t_EchartAjax.zxsxt(function (data) {
                  var data = require('t_Echart').zxsxtData;
                  $('#total').html(data.onTotal);
                  $('#ball').html(data.onBall);
                  $('#gun').html(data.onGun);
                  $('#eagle').html(data.onEagle);
              })
          },
  
  
  
          /*人员车辆统计*/
  
          personcarData: new util.HashMap,
          personTotal_xj: function () {
  
              //自动点击
              setTimeout(function () {
                  // IE
                  if (document.all && $("#ry").length > 0) {
                      document.getElementById("ry").click();
                  }
                      // 其它浏览器
                  else {
                      var e = document.createEvent("MouseEvents");
                      e.initEvent("click", true, true);
                      document.getElementById("clickMe").dispatchEvent(e);
                  }
              }, 10);
              
          },
          /****************************************************/
          rycltjClickEvent: function (domName) {
              $("#" + domName).addClass("active").siblings().removeClass("active");
              var rqa = $("#rq a");
              var nowHour = new Date().getHours();
              var nowDate = new Date().getDate();
  
              function tb(oRycltjChartRqaIndex, rycltjdata1, rycltjdata2, legendOption) {
  
                  if ($("#rycltj-chart").length <= 0) { return false; }
                  var rycltjChart = document.getElementById('rycltj-chart');
  
                  rycltjOption = {
                      legend: {
                          show: true,
                          icon: "rect",
                          itemGap: 50,
                          itemWidth: 30,
                          itemHeight: 16,
                          textStyle: {
                              fontSize: 20,
                              color: "#00d7fe"
                          }
                      },
                      color: ['#3398DB'],
                      //backgroundColor: "rgba(74,128,244,.15)",
                      grid: {
                          left: '1%',
                          right: '1%',
                          bottom: '2%',
                          height: "90%",
                          containLabel: true,   //grid 区域是否包含坐标轴的刻度标签。
                          show: true,
                          backgroundColor: "rgba(74,128,244,.1)",
                          borderColor: "transparent",
  
                      },
                      tooltip: {
                      	trigger: 'axis',
                      },
                      xAxis: {
                          type: 'category',
                          data: ['09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00', '24:00'],
                          boundaryGap: false,
                          nameTextStyle: {
                              color: "#00d7fe",
                              fontSize: 16,
                          },
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          axisLabel: {
                              textStyle: {
                                  fontSize: 18,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              show: false,
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)"
                              }
                          }
                      },
                      yAxis: {
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          //interval: 1500,
                          axisLabel: {
                              textStyle: {
                                  fontSize: 18,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)",
                              }
                          }
                      },
                      series: [
                        {
                            name: legendOption.enter,
                            type: 'line',
                            color: "#4085ed",
                            lineStyle: {
                                width: 4,
                            },
                            symbolSize: 10,
                            tooltip: {
                            	formatter: '{a}:{c}',
                            },
  
                            data: rycltjdata1
                        },
                        {
                            name: legendOption.out,
                            type: 'line',
                            color: "#46d1c2",
                            lineStyle: {
                                width: 4,
                            },
                            symbolSize: 10,
                            tooltip: {
                            	formatter: '{a}:{c}',
                            },
                            data: rycltjdata2
                        },
                      ]
                  };
  
                  require("t_Echart").myChartrycltj = echarts.init(rycltjChart);
                  require("t_Echart").myChartrycltj.setOption(rycltjOption, true);
  
                  require("t_Echart").bigRycltj(oRycltjChartRqaIndex, rycltjdata1, rycltjdata2, legendOption);
  
                  $("#renche").click(function () {
                      require("t_Echart").myChartrycltj.clear();
                      require("t_Echart").myChartrycltj.setOption(rycltjOption, true);
  
                      rycltjChartClose = false;
                      require("t_Echart").mybigChart.clear();
                      require("t_Echart").bigRycltj(oRycltjChartRqaIndex, rycltjdata1, rycltjdata2, legendOption);
                  });
              }
              if (domName == "ry") {
                      clearInterval(window.personCarTimer2)
                      clearInterval(window.personCarTimer3);
                      clearInterval(window.personCarTimer4);
                      window.personCarTimer2 = null;
                      window.personCarTimer3 = null;
                      window.personCarTimer4 = null;
  
                      t_EchartAjax.bigrycltj(function () {
  
                          var datetemp = 6;
                          var dataAll = require("t_Echart").rycltjData;
  
                          if (!dataAll) { return false; }
                          var sum = "";
                          for (var i = dataAll.length - 1; i >= 0; i--) {
                              sum = MyDate(i);
                              require("t_Echart").personcarData.put(sum, dataAll[i][sum]);
                          }
                          window.personCarTimer2 = setInterval(function () {
                              console.info(datetemp)
                              if (datetemp == 0) {
                                  datetemp = 6;
                              }
                              else {
                                  datetemp--;
                              }
                              cryFun();
  
                          }, 60000);
                          cryFun()
                          function cryFun() {
                              var rysum = [];
                              var cysum = [];
                              var key = require("t_Echart").personcarData.keys()[dataAll.length - 1 - datetemp];
                              var data = require("t_Echart").personcarData.get(key);
  
                              rqa.eq(rqa.length - 1 - datetemp).addClass("active").siblings().removeClass("active");
                              oRycltjChartRqaIndex = rqa.eq(rqa.length - 1 - datetemp).addClass("active").index();
                              if (data != null) {
                              	var keyDate = key.substring(key.length - 2, key.length);
                                  for (var item in data.入园) {
                                  	if (Number(item) >= 9 && Number(item) <= 24) {
                                  		if (keyDate == nowDate && Number(item) > nowHour) {
                                  			rysum[Number(item) - 9] = '';
                                  		} else if (Number(item) === 24 && data.入园[item] === 0) {
                                  		    rysum[Number(item) - 9] = data.入园[Number(item)-1];
                                  		} else {
                                  		    rysum[Number(item) - 9] = data.入园[item];
                                  		}
                                      }
                                  }
  
                                  for (var item in data.出园) {
                                      if (Number(item) >= 9 && Number(item) <= 24) {
                                      	if (keyDate == nowDate && Number(item) > nowHour) {
                                      		cysum[Number(item) - 9] = '';
                                      	} else if (Number(item) === 24 && data.出园[item] === 0) {
                                      	    cysum[Number(item) - 9] = data.出园[Number(item) - 1];
                                      	} else {
                                      		cysum[Number(item) - 9] = data.出园[item];
                                      	}
                                      }
                                  }
                                  oRycltjChartData1 = rysum;
                                  oRycltjChartData2 = cysum;
                                  legendOption = { "out":"出园", "enter":"入园"};
  
                                  tb(oRycltjChartRqaIndex, oRycltjChartData1, oRycltjChartData2, legendOption);
                              }
                          }
  
  
                          rqa.each(function (index, element) {
                              $(this).click(function () {
                                  require('t_Home').rqClickEvent(index);
                          		$(this).addClass("active").siblings().removeClass("active");
                          		datetemp = rqa.length - 1 - index;
                          		oRycltjChartRqaIndex = index;
  
                          		var rysum = [];
                          		var cysum = [];
                          		var key = require("t_Echart").personcarData.keys()[dataAll.length - 1 - datetemp];
                          		var data = require("t_Echart").personcarData.get(key);
  
                          		if (data != null) {
                          			var keyDate = key.substring(key.length - 2, key.length);
                          			for (var item in data.入园) {
                          				if (Number(item) >= 9 && Number(item) <= 24) {
                          					if (keyDate == nowDate && Number(item) > nowHour) {
                          						rysum[Number(item) - 9] = '';
                          					} else if( Number(item) === 24 && data.入园[item] === 0 ){
                          					    rysum[Number(item) - 9] = data.入园[Number(item)-1];
                          					} else {
                          						rysum[Number(item) - 9] = data.入园[item];
                          					}
                          				}
                          			}
  
                          			for (var item in data.出园) {
                          				if (Number(item) >= 9 && Number(item) <= 24) {
                          					if (keyDate == nowDate && Number(item) > nowHour) {
                          						cysum[Number(item) - 9] = '';
                          					} else if (Number(item) === 24 && data.出园[item] === 0) {
                          					    cysum[Number(item) - 9] = data.出园[Number(item) - 1];
                          					} else {
                          					    cysum[Number(item) - 9] = data.出园[item];
                          					}
                          				}
                          			}
                          			oRycltjChartData1 = rysum;
                          			oRycltjChartData2 = cysum;
                          			tb(oRycltjChartRqaIndex, oRycltjChartData1, oRycltjChartData2, legendOption);
                          		}
  
                          	})//
                          })
  
                          $("#rycltj-datebtn-pre").click(function () {
                              require('t_Home').rqPreOrNextClickEvent("#rycltj-datebtn-pre");
                          	datetemp++;
                          	if (datetemp == 7) {
                          		datetemp = 0;
                          	}
                          	cryFun();
                          })
                          $("#rycltj-datebtn-next").click(function () {
                              require('t_Home').rqPreOrNextClickEvent("#rycltj-datebtn-next");
                          	datetemp--;
                          	if (datetemp == -1) {
                          		datetemp = 6;
                          	}
                          	cryFun();
                          })
  
  
                      })
              }
              else if (domName == "dtrs") {
                      clearInterval(window.personCarTimer2)
                      clearInterval(window.personCarTimer3);
                      clearInterval(window.personCarTimer4);
                      window.personCarTimer2 = null;
                      window.personCarTimer3 = null;
                      window.personCarTimer4 = null;
  
                      t_EchartAjax.bigrycltjdt(function () {
                          var dataAll = require("t_Echart").rycltjdtData;
                          if (!dataAll) { return false; }
                          for (var i = dataAll.length - 1; i >= 0; i--) {
                              var sumdt = MyDate(i);
                              require("t_Echart").personcarData.put(sumdt, dataAll[i][sumdt]);
                          }
  
                          var datetemp = 6;
                          window.personCarTimer3 = setInterval(function () {
                              if (datetemp == 0) {
                                  datetemp = 6;
                              }
                              else {
                                  datetemp--;
                              }
                              cryFun()
                          }, 60000);
                          cryFun()
                          function cryFun() {
                              var dtsum = [];
                              var key = require("t_Echart").personcarData.keys()[dataAll.length - 1 - datetemp];
                              var data = require("t_Echart").personcarData.get(key);
  
                              rqa.eq(rqa.length - 1 - datetemp).addClass("active").siblings().removeClass("active");
                              oRycltjChartRqaIndex = rqa.eq(rqa.length - 1 - datetemp).addClass("active").index();
  
                              if (data != null) {
                              	var keyDate = key.substring(key.length - 2, key.length);
                                  for (var item in data) {
                                  	if (/:00$/.test(item) && parseInt(item) >= 9 && parseInt(item) <= 24) {
                                  		if (keyDate == nowDate && parseInt(item) > nowHour) {
                                  			dtsum[parseInt(item) - 9] = '';
                                  		} else {
                                  			dtsum[parseInt(item) - 9] = data[item]
                                  		}
                                      }
                                  }
                                  oRycltjChartData1 = dtsum;
                                  oRycltjChartData2 = null;
                                  legendOption = { "out": "", "enter": "地铁人数" };
  
                                  tb(oRycltjChartRqaIndex, oRycltjChartData1, oRycltjChartData2, legendOption);
                              }
                          }
  
  
                          rqa.each(function (index, element) {
                          	$(this).click(function () {
                          		$(this).addClass("active").siblings().removeClass("active");
                          		datetemp = rqa.length - 1 - index;
                          		oRycltjChartRqaIndex = index;
  
                          		var dtsum = [];
                          		var key = require("t_Echart").personcarData.keys()[dataAll.length - 1 - datetemp];
                          		var data = require("t_Echart").personcarData.get(key);
  
                          		if (data != null) {
                          			var keyDate = key.substring(key.length - 2, key.length);
                          			for (var item in data) {
                          				if (/:00$/.test(item) && parseInt(item) >= 9 && parseInt(item) <= 24) {
                          					if (keyDate == nowDate && parseInt(item) > nowHour) {
                          						dtsum[parseInt(item) - 9] = '';
                          					} else {
                          						dtsum[parseInt(item) - 9] = data[item]
                          					}
                          				}
                          			}
                          			oRycltjChartData1 = dtsum;
                          			oRycltjChartData2 = null;
                          			tb(oRycltjChartRqaIndex, oRycltjChartData1, oRycltjChartData2, legendOption);
                          		}
  
                          	})
                          })
  
                          $("#rycltj-datebtn-pre").click(function () {
                          	datetemp++;
                          	if (datetemp == 7) {
                          		datetemp = 0;
                          	}
                          	cryFun();
                          })
                          $("#rycltj-datebtn-next").click(function () {
                          	datetemp--;
                          	if (datetemp == -1) {
                          		datetemp = 6;
                          	}
                          	cryFun();
                          })
  
  
  
                      })
              }
              else if (domName == "jccl") {
                      clearInterval(window.personCarTimer2)
                      clearInterval(window.personCarTimer3);
                      clearInterval(window.personCarTimer4);
                      window.personCarTimer2 = null;
                      window.personCarTimer3 = null;
                      window.personCarTimer4 = null;
  
                      t_EchartAjax.bigrycltjjccl(function () {
                          var dataAll = require("t_Echart").rycltjjcclData;
                          if (!dataAll) { return false; }
                          for (var i = dataAll.length - 1; i >= 0; i--) {
                              var sum = MyDate(i);
                              require("t_Echart").personcarData.put(sum, dataAll[i][sum]);
                          }
  
                          var datetemp = 6;
                          window.personCarTimer4 = setInterval(function () {
                              if (datetemp == 0) {
                                  datetemp = 6;
                              }
                              else {
                                  datetemp--;
                              }
                              cryFun()
                          }, 60000);
  
                          cryFun()
                          function cryFun() {
                              var rysum = [];
                              var cysum = [];
                              var key = require("t_Echart").personcarData.keys()[dataAll.length - 1 - datetemp];
                              var data = require("t_Echart").personcarData.get(key);
  
                              rqa.eq(rqa.length - 1 - datetemp).addClass("active").siblings().removeClass("active");
                              oRycltjChartRqaIndex = rqa.eq(rqa.length - 1 - datetemp).addClass("active").index();
  
                              if (data != null) {
                              	var keyDate = key.substring(key.length - 2, key.length);
                                  for (var item in data.入临港) {
                                  	if (Number(item) >= 9 && Number(item) <= 24) {
                                  		if (keyDate == nowDate && Number(item) > nowHour) {
                                  			rysum[Number(item) - 9] = '';
                                  		} else {
                                  			rysum[Number(item) - 9] = data.入临港[item];
                                  		}
                                      }
                                  }
                                  for (var item in data.出临港) {
  
                                  	if (Number(item) >= 9 && Number(item) <= 24) {
                                  		if (keyDate == nowDate && Number(item) > nowHour) {
                                  			cysum[Number(item) - 9] = '';
                                  		} else {
                                  			cysum[Number(item) - 9] = data.出临港[item];
                                  		}
                                      }
                                  }
                                  oRycltjChartData1 = rysum;
                                  oRycltjChartData2 = cysum;
                                  legendOption = { "out": "出临港", "enter": "入临港" };
                                  tb(oRycltjChartRqaIndex, oRycltjChartData1, oRycltjChartData2, legendOption);
                              }
                          }
  
  
  
                          rqa.each(function (index, element) {
                          	$(this).click(function () {
                          		$(this).addClass("active").siblings().removeClass("active");
                          		datetemp = rqa.length - 1 - index;
                          		oRycltjChartRqaIndex = index;
  
                          		var rysum = [];
                          		var cysum = [];
                          		var key = require("t_Echart").personcarData.keys()[dataAll.length - 1 - datetemp];
                          		var data = require("t_Echart").personcarData.get(key);
  
                          		if (data != null) {
                          			var keyDate = key.substring(key.length - 2, key.length);
                          			for (var item in data.入临港) {
                          				if (Number(item) >= 9 && Number(item) <= 24) {
                          					if (keyDate == nowDate && Number(item) > nowHour) {
                          						rysum[Number(item) - 9] = '';
                          					} else {
                          						rysum[Number(item) - 9] = data.入临港[item];
                          					}
                          				}
                          			}
                          			for (var item in data.出临港) {
  
                          				if (Number(item) >= 9 && Number(item) <= 24) {
                          					if (keyDate == nowDate && Number(item) > nowHour) {
                          						cysum[Number(item) - 9] = '';
                          					} else {
                          						cysum[Number(item) - 9] = data.出临港[item];
                          					}
                          				}
                          			}
                          			oRycltjChartData1 = rysum;
                          			oRycltjChartData2 = cysum;
                          			tb(oRycltjChartRqaIndex, oRycltjChartData1, oRycltjChartData2, legendOption);
                          		}
  
                          	})
                          })
  
                          $("#rycltj-datebtn-pre").click(function () {
                          	datetemp++;
                          	if (datetemp == 7) {
                          		datetemp = 0;
                          	}
                          	cryFun();
                          })
                          $("#rycltj-datebtn-next").click(function () {
                          	datetemp--;
                          	if (datetemp == -1) {
                          		datetemp = 6;
                          	}
                          	cryFun();
                          })
  
                      })
              }           
          },
          /******************************END*******************/
          bigRycltj: function (oRycltjChartRqaIndex, rycltjdata1, rycltjdata2) {
              if (rycltjChartClose) {
                  return false;
              } else {
                  var bigRycltjIndex = -1;
                  $(".rycltj-tabbox>button").each(function () {
                      if ($(this).hasClass("active")) {
                          bigRycltjIndex = $(this).index();
                      }
                  })
  
                  var rqa = $("#rq a");
                  //console.log(bigRycltjIndex, oRycltjChartRqaIndex)
  
                  if (bigRycltjIndex === 0) {
                      $("#bigechartHead").html('出入园人数统计--' + rqa.eq(oRycltjChartRqaIndex).html());
                      tb(rycltjdata1, rycltjdata2, legendOption);
  
                  } else if (bigRycltjIndex === 1) {
                      $("#bigechartHead").html('地铁人数统计--' + rqa.eq(oRycltjChartRqaIndex).html());
                      tb(rycltjdata1, rycltjdata2, legendOption);
  
                  } else if (bigRycltjIndex === 2) {
                      $("#bigechartHead").html('进出临港车辆统计--' + rqa.eq(oRycltjChartRqaIndex).html());
                      tb(rycltjdata1, rycltjdata2, legendOption);
                  }
  
                  function tb(rycltjdata1, rycltjdata2, legendOption) {
  
                      if ($("#Big-chart").length <= 0) { return false; }
                      option = {
                          legend: {
                              show: true,
                              icon: "rect",
                              itemGap:100,
                              itemWidth: 75,
                              itemHeight: 42,
                              textStyle: {
                                  fontSize: 50,
                                  color: "#00d7fe"
                              }
                          },
                          color: ['#3398DB'],
                          //backgroundColor: "rgba(74,128,244,.15)",
                          grid: {
                              left: '5%',
                              right: '5%',
                              bottom: '5%',
                              height: "86%",
                              containLabel: true,   //grid 区域是否包含坐标轴的刻度标签。
                              show: true,
                              backgroundColor: "rgba(74,128,244,.1)",
                              borderColor: "transparent",
  
                          },
                          tooltip: {
                          	trigger: 'axis',
                          	textStyle: {
                          		fontSize: 50,
                          	},
                          },
                          xAxis: {
                              type: 'category',
                              data: ['09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00', '24:00'],
                              boundaryGap: false,
                              nameTextStyle: {
                                  color: "#00d7fe",
                                  fontSize: 50,
                              },
                              axisTick: {
                                  show: false,
                              },
                              axisLine: {
                                  show: true,
                                  lineStyle: {
                                      width: 3,
                                      color: "rgba(80,172,254,0.3)"
                                  }
                              },
                              axisLabel: {
                                  textStyle: {
                                      fontSize: 50,
                                      color: "#00d7fe"
                                  }
                              },
                              splitLine: {
                                  show: false,
                                  lineStyle: {
                                      color: "rgba(80,172,254,0.3)"
                                  }
                              }
                          },
                          yAxis: {
                              axisTick: {
                                  show: false,
                              },
                              axisLine: {
                                  show: true,
                                  lineStyle: {
                                      width: 3,
                                      color: "rgba(80,172,254,0.3)"
                                  }
                              },
                              //interval: 1500,
                              axisLabel: {
                                  textStyle: {
                                      fontSize: 50,
                                      color: "#00d7fe"
                                  }
                              },
                              splitLine: {
                                  lineStyle: {
                                      width: 3,
                                      color: "rgba(80,172,254,0.3)",
                                  }
                              }
                          },
                          series: [
                            {
                                name: legendOption.enter,
                                type: 'line',
                                color: "#4085ed",
                                lineStyle: {
                                    width: 8,
                                },
                                symbolSize: 16,
                                tooltip: {
                                	formatter: '{a}:{c}',
                                },
  
                                data: rycltjdata1
                            },
                            {
                                name: legendOption.out,
                                type: 'line',
                                color: "#46d1c2",
                                lineStyle: {
                                    width: 8,
                                },
                                symbolSize: 16,
                                tooltip: {
                                	formatter: '{a}:{c}',
                                },
                                data: rycltjdata2
                            },
                          ]
                      };
  
                      if (require("t_Echart").mybigChart != null && require("t_Echart").mybigChart != "" && require("t_Echart").mybigChart != undefined) {
                          require("t_Echart").mybigChart.dispose();
                      }
                      require("t_Echart").mybigChart = echarts.init(document.getElementById('Big-chart'));
                      require("t_Echart").mybigChart.setOption(option, true);
  
                  }
              }
          },
  
          //停车场使用情况
          tccsyqk: function (post_data) {
              function MyDate(n) {
                  var n = n;
                  var d = new Date();
                  var year = d.getFullYear();
                  var mon = d.getMonth() + 1;
                  var day = d.getDate();
                  if (day <= n) {
                      if (mon > 1) {
                          mon = mon - 1;
                      }
                      else {
                          year = year - 1;
                          mon = 12;
                      }
                  }
                  d.setDate(d.getDate() - n);
                  year = d.getFullYear();
                  mon = d.getMonth() + 1;
                  day = d.getDate(); s = mon + "月" + day + "日";
  
                  return s;
              }
              if ($("#wrj-chart").length <= 0) { return false; }
  
              var tccsyqkChart = document.getElementById('tccsyqk-chart');
  
              t_EchartAjax.bigtccsyqk(post_data, function (data) {
                  var tccsyqkdata1 = [], tccsyqkdata2 = [], tccsyqkdata3 = [], tccsyqkdata4 = [];
                  var data = require("t_Echart").tccsyqkData;
                  try {
                      var outer = {};
                      outer["临港大道"] = {};
                      outer["港城新天地"] = {};
                      outer["海昌公园"] = {};
                      outer["雪绒花"] = {};
                      for (var key in data) {
                          var dateItem = data[key];
                          for (var name in dateItem) {
                              if (!outer[name][key]) {
                                  outer[name][key] = 0;
                              }
                              outer[name][key] += dateItem[name]
                          }
                      }
                      var hcgy = outer.海昌公园
                      for (var i in hcgy) {
                          tccsyqkdata1.push(hcgy[i])
                      }
                      var xrh = outer.雪绒花
                      for (var i in xrh) {
                          tccsyqkdata2.push(xrh[i])
                      }
                      var lgdd = outer.临港大道
                      for (var i in lgdd) {
                          tccsyqkdata3.push(lgdd[i])
                      }
                      var gcxtd = outer.港城新天地
                      for (var i in gcxtd) {
                          tccsyqkdata4.push(gcxtd[i])
                      }
  
                      //缓存图表数据
                      tccsyqkChartData1 = tccsyqkdata1;
                      tccsyqkChartData2 = tccsyqkdata2;
                      tccsyqkChartData3 = tccsyqkdata3;
                      tccsyqkChartData4 = tccsyqkdata4;
                      tccsyqkChartxAxisData = [MyDate(6), MyDate(5), MyDate(4), MyDate(3), MyDate(2), MyDate(1), MyDate(0)];
  
                      tccsyqkOption = {
                          tooltip: {
                              trigger: 'axis',
                              axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                                  type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                              }
                          },
                          legend: [
                              {
                                  left: '4%',
                                  bottom: " 2%",
                                  icon: 'rect',
                                  itemWidth: 20,
                                  itemHeight: 20,
                                  textStyle: {
                                      fontSize: 22,
                                      color: "#0296d4"
                                  },
                                  data: ['海昌公园停车场']
                              },
                              {
                                  left: '27%',
                                  bottom: " 2%",
                                  icon: 'rect',
                                  itemWidth: 20,
                                  itemHeight: 20,
                                  textStyle: {
                                      fontSize: 22,
                                      color: "#0296d4"
                                  },
                                  data: ['雪绒花停车场']
                              },
                              {
                                  left: '50%',
                                  bottom: " 2%",
                                  icon: 'rect',
                                  itemWidth: 20,
                                  itemHeight: 20,
                                  textStyle: {
                                      fontSize: 22,
                                      color: "#0296d4"
                                  },
                                  data: ['临港大道停车场']
                              },
                              {
                                  left: '75%',
                                  bottom: " 2%",
                                  icon: 'rect',
                                  itemWidth: 20,
                                  itemHeight: 20,
                                  textStyle: {
                                      fontSize: 22,
                                      color: "#0296d4"
                                  },
                                  data: ['港城新天地停车场']
                              }
                          ],
                          grid: {
                              left: '1%',
                              right: '1%',
                              top: '6%',
                              containLabel: true
                          },
                          xAxis: [
                              {
                                  type: 'category',
                                  data: tccsyqkChartxAxisData,
                                  nameTextStyle: {
                                      color: "#00d7fe",
                                      fontSize: 16,
                                  },
                                  axisTick: {
                                      show: false,
                                  },
                                  axisLine: {
                                      show: true,
                                      lineStyle: {
                                          color: "rgba(80,172,254,0.5)"
                                      }
                                  },
                                  axisLabel: {
                                      textStyle: {
                                          fontSize: 22,
                                          color: "#00d7fe"
                                      }
                                  },
                                  splitLine: {
                                      show: false,
                                      lineStyle: {
                                          color: "rgba(80,172,254,0.5)"
                                      }
                                  }
                              }
                          ],
                          yAxis: [
                              {
                                  type: 'value',
                                  axisTick: {
                                      show: false,
                                  },
                                  axisLine: {
                                      show: true,
                                      lineStyle: {
                                          color: "rgba(80,172,254,0.5)"
                                      }
                                  },
                                  //interval: 1000,
                                  axisLabel: {
                                      textStyle: {
                                          fontSize: 22,
                                          color: "#00d7fe"
                                      }
                                  },
                                  splitLine: {
                                      lineStyle: {
                                          color: "rgba(80,172,254,0.5)",
                                      }
                                  }
                              }
                          ],
                          series: [
                              {
                                  name: '海昌公园停车场',
                                  type: 'bar',
                                  barWidth: 14,
                                  itemStyle: {
                                      normal: {
                                          barBorderRadius: 3,
                                          color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                              offset: 0,
                                              color: '#fffd00'
                                          }, {
                                              offset: 1,
                                              color: '#ff6f02'
                                          }]),
                                      }
                                  },
                                  data: tccsyqkChartData1
                              },
                              {
                                  name: '雪绒花停车场',
                                  type: 'bar',
                                  barWidth: 14,
                                  itemStyle: {
                                      normal: {
                                          barBorderRadius: 3,
                                          color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                              offset: 0,
                                              color: '#02fdf6'
                                          }, {
                                              offset: 1,
                                              color: '#00a3ff'
                                          }]),
                                      }
                                  },
                                  data: tccsyqkChartData2
                              },
                              {
                                  name: '临港大道停车场',
                                  type: 'bar',
                                  barWidth: 14,
                                  itemStyle: {
                                      normal: {
                                          barBorderRadius: 3,
                                          color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                              offset: 0,
                                              color: '#ace419'
                                          }, {
                                              offset: 1,
                                              color: '#5aad0b'
                                          }]),
                                      }
                                  },
                                  data: tccsyqkChartData3
                              },
                              {
                                  name: '港城新天地停车场',
                                  type: 'bar',
                                  barWidth: 14,
                                  itemStyle: {
                                      normal: {
                                          barBorderRadius: 3,
                                          color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                              offset: 0,
                                              color: '#d9d9d9'
                                          }, {
                                              offset: 1,
                                              color: '#808080'
                                          }]),
                                      }
                                  },
                                  data: tccsyqkChartData4
                              }
                          ]
                      };
  
                      require("t_Echart").myCharttccsyqk = echarts.init(tccsyqkChart);
                      require("t_Echart").myCharttccsyqk.setOption(tccsyqkOption, true);
  
                      $("#tcc").click(function () {
                          require("t_Echart").myCharttccsyqk.clear()
                          require("t_Echart").myCharttccsyqk = echarts.init(tccsyqkChart);
                          require("t_Echart").myCharttccsyqk.setOption(tccsyqkOption, true);
  
                          require("t_Echart").mybigChart.clear()
                          require("t_Echart").bigTccsyqk();
  
                      });
  
                  } catch (error) {
  
                  }
  
              })
          },
  
          /*大停车场使用情况*/
          bigTccsyqk: function () {
              $("#bigechartHead").html("停车场使用情况");
              try {
                  option = {
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {            
                              type: 'shadow' 
                          },
                          textStyle: {//默认值，
                              fontSize: 50,//默认值，
                          }
                      },
                      legend: [
                          {
                              left: '4%',
                              bottom: "5%",
                              icon: 'rect',
                              itemWidth: 50,
                              itemHeight: 50,
                              textStyle: {
                                  fontSize: 40,
                                  color: "#0296d4"
                              },
                              data: ['海昌公园停车场']
                          },
                          {
                              left: '27%',
                              bottom: "5%",
                              icon: 'rect',
                              itemWidth: 50,
                              itemHeight: 50,
                              textStyle: {
                                  fontSize: 40,
                                  color: "#0296d4"
                              },
                              data: ['雪绒花停车场']
                          },
                          {
                              left: '50%',
                              bottom: "5%",
                              icon: 'rect',
                              itemWidth: 50,
                              itemHeight: 50,
                              textStyle: {
                                  fontSize: 40,
                                  color: "#0296d4"
                              },
                              data: ['临港大道停车场']
                          },
                          {
                              left: '75%',
                              bottom: "5%",
                              icon: 'rect',
                              itemWidth: 50,
                              itemHeight: 50,
                              textStyle: {
                                  fontSize: 40,
                                  color: "#0296d4"
                              },
                              data: ['港城新天地停车场']
                          },
                      ],
                      grid: {
                          left: '5%',
                          right: '5%',
                          bottom: '14%',
                          height: "82%",
                          containLabel: true
                      },
                      xAxis: [
                          {
                              type: 'category',
                              data: tccsyqkChartxAxisData,
                              nameTextStyle: {
                                  color: "#00d7fe",
                                  fontSize: 50,
                              },
                              axisTick: {
                                  show: false,
                              },
                              axisLine: {
                                  show: true,
                                  lineStyle: {
                                      width: 4,
                                      color: "rgba(80,172,254,0.5)"
                                  }
                              },
                              axisLabel: {
                                  textStyle: {
                                      fontSize: 50,
                                      color: "#00d7fe"
                                  }
                              },
                              splitLine: {
                                  show: false,
                                  lineStyle: {
                                      color: "rgba(80,172,254,0.5)"
                                  }
                              }
                          }
                      ],
                      yAxis: [
                          {
                              type: 'value',
                              axisTick: {
                                  show: false,
                              },
                              axisLine: {
                                  show: true,
                                  lineStyle: {
                                      width: 4,
                                      color: "rgba(80,172,254,0.5)"
                                  }
                              },
                              //interval: 1000,
                              axisLabel: {
                                  textStyle: {
                                      fontSize: 50,
                                      color: "#00d7fe"
                                  }
                              },
                              splitLine: {
                                  lineStyle: {
                                      width: 4,
                                      color: "rgba(80,172,254,0.5)",
                                  }
                              }
                          }
                      ],
                      series: [
                          {
                              name: '海昌公园停车场',
                              type: 'bar',
                              barWidth: 30,
                              itemStyle: {
                                  normal: {
                                      barBorderRadius: 5,
                                      color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                          offset: 0,
                                          color: '#fffd00'
                                      }, {
                                          offset: 1,
                                          color: '#ff6f02'
                                      }]),
                                  }
                              },
                              data: tccsyqkChartData1
                          },
                          {
                              name: '雪绒花停车场',
                              type: 'bar',
                              barWidth: 30,
                              itemStyle: {
                                  normal: {
                                      barBorderRadius: 5,
                                      color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                          offset: 0,
                                          color: '#02fdf6'
                                      }, {
                                          offset: 1,
                                          color: '#00a3ff'
                                      }]),
                                  }
                              },
                              data: tccsyqkChartData2
                          },
                          {
                              name: '临港大道停车场',
                              type: 'bar',
                              barWidth: 30,
                              itemStyle: {
                                  normal: {
                                      barBorderRadius: 5,
                                      color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                          offset: 0,
                                          color: '#ace419'
                                      }, {
                                          offset: 1,
                                          color: '#5aad0b'
                                      }]),
                                  }
                              },
                              data: tccsyqkChartData3
                          },
                          {
                              name: '港城新天地停车场',
                              type: 'bar',
                              barWidth: 30,
                              itemStyle: {
                                  normal: {
                                      barBorderRadius: 5,
                                      color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                          offset: 0,
                                          color: '#d9d9d9'
                                      }, {
                                          offset: 1,
                                          color: '#808080'
                                      }]),
                                  }
                              },
                              data: tccsyqkChartData4
                          }
                      ]
                  };
  
                  if (require("t_Echart").mybigChart != null && require("t_Echart").mybigChart != "" && require("t_Echart").mybigChart != undefined) {
                      require("t_Echart").mybigChart.dispose();
                  }
                  require("t_Echart").mybigChart = echarts.init(document.getElementById('Big-chart'));
                  require("t_Echart").mybigChart.setOption(option);
              } catch (error) {
  
              }
          },
  
          /*近五日事件统计*/
          jwrsjtj: function () {
              if ($("#jwrsjtj-chart").length <= 0) { return false; }
              var jwrsjtjChart = document.getElementById('jwrsjtj-chart');
              function MyDate2(n) {
                  var n = n;
                  var d = new Date();
                  var year = d.getFullYear();
                  var mon = d.getMonth() + 1;
                  var day = d.getDate();
                  if (day <= n) {
                      if (mon > 1) {
                          mon = mon - 1;
                      }
                      else {
                          year = year - 1;
                          mon = 12;
                      }
                  }
                  d.setDate(d.getDate() - n);
                  year = d.getFullYear();
                  mon = d.getMonth() + 1;
                  day = d.getDate(); s = year + "-" + (mon < 10 ? ('0' + mon) : mon) + "-" + (day < 10 ? ('0' + day) : day);//日期类型2019-03-07
                  return s;
              }
              var num = 6;
              //五种数据的每日统计
              var jwrsjtjdata1 = [], jwrsjtjdata2 = [], jwrsjtjdata3 = [];
  
              var starttime = [];      //请求数据的日期
              var Day = [];
  
              for (var i = 0; i < 5; i++) {
                  num--;
                  starttime.push(MyDate2(num))
                  Day.push(MonDayDate(num))
              }
  
  
              //图表
              t_EchartAjax.getJwrsjtj(function (data) {
                  var keyTemp = [];
                  var data = require("t_Echart").jwrsjtjData;
  
                  for (var key in data) {
                      if (key !== "疑似渣土车" && key !== "疑似黑车") {
                          keyTemp.push(key);
                      }
                  }
  
                  for (var i = 0; i < 5; i++) {
                      jwrsjtjdata1.push(data[keyTemp[0]][starttime[i]])
                      jwrsjtjdata2.push(data[keyTemp[1]][starttime[i]])
                      jwrsjtjdata3.push(data[keyTemp[2]][starttime[i]])
                  }
  
                  //if ($("#" + jwrsjtjChart).length <= 0) { return false; }
                  var myChartjwrsjtj = echarts.init(jwrsjtjChart);
                  require("t_Echart").myChartjwrsjtj = echarts.init(jwrsjtjChart);
                  jwrsjtjOption = {
                      legend: {
                          bottom: "2%",
                          icon: 'circle',
                          itemGap: 20,
                          itemWidth: 20,
                          itemHeight: 20,
                          textStyle: {
                              fontSize: 18,
                              color: "#0296d4"
                          },
                          data: keyTemp,
                      },
  
  
                      //legend: [
                      //     {
                      //         left: '2%',
                      //         bottom: " 2%",
                      //         icon: 'circle',
                      //         itemWidth: 20,
                      //         itemHeight: 20,
                      //         textStyle: {
                      //             fontSize: 18,
                      //             color: "#0296d4"
                      //         },
                      //         data: [keyTemp[0]]
                      //     },
                      //     {
                      //         left: '16%',
                      //         bottom: " 2%",
                      //         icon: 'circle',
                      //         itemWidth: 20,
                      //         itemHeight: 20,
                      //         textStyle: {
                      //             fontSize: 18,
                      //             color: "#0296d4"
                      //         },
                      //         data: [keyTemp[1]]
                      //     },
                      //     {
                      //         left: '40%',
                      //         bottom: " 2%",
                      //         icon: 'circle',
                      //         itemWidth: 20,
                      //         itemHeight: 20,
                      //         textStyle: {
                      //             fontSize: 18,
                      //             color: "#0296d4"
                      //         },
                      //         data: [keyTemp[2]]
                      //     },
                      //     {
                      //         left: '60%',
                      //         bottom: " 2%",
                      //         icon: 'circle',
                      //         itemWidth: 20,
                      //         itemHeight: 20,
                      //         textStyle: {
                      //             fontSize: 18,
                      //             color: "#0296d4"
                      //         },
                      //         data: [keyTemp[3]]
                      //     },
                      //     {
                      //         left: '78%',
                      //         bottom: " 2%",
                      //         icon: 'circle',
                      //         itemWidth: 20,
                      //         itemHeight: 20,
                      //         textStyle: {
                      //             fontSize: 18,
                      //             color: "#0296d4"
                      //         },
                      //         data: [keyTemp[4]]
                      //     },
                      //],
                      color: ['#3398DB'],
                      grid: {
                          left: '2%',
                          right: '2%',
                          top: '2%',
                          containLabel: true,   //grid 区域是否包含坐标轴的刻度标签。
                          show: true,
                          backgroundColor: "rgba(74,128,244,.1)",
                          borderColor: "transparent",
  
                      },
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'cross',
                              label: {
                                  show: false,
                              }
                          },
                      },
                      xAxis: {
                          type: 'category',
                          data: Day,
                          boundaryGap: false,
                          nameTextStyle: {
                              color: "#00d7fe",
                              fontSize: 16,
                          },
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          axisLabel: {
                              textStyle: {
                                  fontSize: 18,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              show: false,
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)"
                              }
                          }
                      },
                      yAxis: {
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          // interval :5,
                          axisLabel: {
                              textStyle: {
                                  fontSize: 18,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)",
                              }
                          }
                      },
                      series: [
                        {
                            type: 'line',
                            name: keyTemp[0],
                            color: "#02e32c",
                            lineStyle: {
                                width: 4,
                            },
                            symbolSize: 8,
                            data: jwrsjtjdata1
                        },
                        {
                            type: 'line',
                            name: keyTemp[1],
                            color: "#02d8e3",
                            lineStyle: {
                            	width: 4,
                            },
                            symbolSize: 8,
                            data: jwrsjtjdata2
                        },
                        {
                            type: 'line',
                            name: keyTemp[2],
                            color: "#e3a102",
                            lineStyle: {
                            	width: 4,
                            },
                            symbolSize: 8,
                            data: jwrsjtjdata3
                        },
                      ]
                  };
  
                  require("t_Echart").myChartjwrsjtj.setOption(jwrsjtjOption);
  
                  $("#jwrsjtjsx").click(function () {
                      require("t_Echart").myChartjwrsjtj.clear()
                     // require("t_Echart").jwrsjtj()
                      require("t_Echart").myChartjwrsjtj.setOption(jwrsjtjOption, true)
  
                      require("t_Echart").mybigChart.clear()
                      require("t_Echart").bigjwrsjtj()
  
  
                  });
              })
          },
  
          /*大近五日事件统计（当前事件）*/
          bigjwrsjtj: function () {
              $("#bigechartHead").html("近五日事件统计（当前事件数）");
              if ($("#jwrsjtj-chart").length <= 0) { return false; }
  
              function MyDate2(n) {
                  var n = n;
                  var d = new Date();
                  var year = d.getFullYear();
                  var mon = d.getMonth() + 1;
                  var day = d.getDate();
                  if (day <= n) {
                      if (mon > 1) {
                          mon = mon - 1;
                      }
                      else {
                          year = year - 1;
                          mon = 12;
                      }
                  }
                  d.setDate(d.getDate() - n);
                  year = d.getFullYear();
                  mon = d.getMonth() + 1;
                  day = d.getDate(); s = year + "-" + (mon < 10 ? ('0' + mon) : mon) + "-" + (day < 10 ? ('0' + day) : day);//日期类型2019-03-07
                  //  day = d.getDate(); s = year + (mon < 10 ? ('0' + mon) : mon) + (day < 10 ? ('0' + day) : day);//日期类型20190307(字符串)
                  return s;
              }
              var num = 6;
              //五种数据的每日统计
              var jwrsjtjdata1 = [], jwrsjtjdata2 = [], jwrsjtjdata3 = [], jwrsjtjdata4 = [], jwrsjtjdata5 = [];
  
              var starttime = [];      //请求数据的日期
              var Day = [];
  
              for (var i = 0; i < 5; i++) {
                  num--;
                  starttime.push(MyDate2(num))
                  Day.push(MonDayDate(num))
              }
  
  
              //图表
              t_EchartAjax.getJwrsjtj(function (data) {
                  var keyTemp = [];
                  var data = require("t_Echart").jwrsjtjData;
                  for (var key in data) {
                      if (key !== "疑似渣土车" && key !== "疑似黑车") {
                          keyTemp.push(key);
                      }
                  }
  
                  for (var i = 0; i < 5; i++) {
                      jwrsjtjdata1.push(data[keyTemp[0]][starttime[i]])
                      jwrsjtjdata2.push(data[keyTemp[1]][starttime[i]])
                      jwrsjtjdata3.push(data[keyTemp[2]][starttime[i]])
                  }
  
                  option = {
                      legend: {
                          bottom: "5%",
                          icon: 'circle',
                          itemGap: 80,
                          itemWidth: 50,
                          itemHeight: 50,
                          textStyle: {
                              fontSize: 40,
                              color: "#0296d4"
                          },
                          data: keyTemp,
                      }, 
                      color: ['#3398DB'],
                      grid: {
                          left: '5%',
                          right: '5%',
                          bottom: '14%',
                          height:"82%",
                          containLabel: true,   //grid 区域是否包含坐标轴的刻度标签。
                          show: true,
                          backgroundColor: "rgba(74,128,244,.1)",
                          borderColor: "transparent",
  
                      },
                      tooltip: {
                          trigger: 'axis',
                          axisPointer: {
                              type: 'cross',
                              label: {
                                  show: false,
                              }
                          },
                          textStyle: {//默认值，
                              fontSize: 50,//默认值，
                          },
                      },
                      xAxis: {
                          type: 'category',
                          data: Day,
                          boundaryGap: false,
                          nameTextStyle: {
                              color: "#00d7fe",
                              fontSize: 50,
                          },
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  width: 3,
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          axisLabel: {
                              textStyle: {
                                  fontSize: 50,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              show: false,
                              lineStyle: {
                                  color: "rgba(80,172,254,0.3)"
                              }
                          }
                      },
                      yAxis: {
                          axisTick: {
                              show: false,
                          },
                          axisLine: {
                              show: true,
                              lineStyle: {
                                  width: 3,
                                  color: "rgba(80,172,254,0.3)"
                              }
                          },
                          // interval :5,
                          axisLabel: {
                              textStyle: {
                                  fontSize: 50,
                                  color: "#00d7fe"
                              }
                          },
                          splitLine: {
                              lineStyle: {
  								width: 3,
                                  color: "rgba(80,172,254,0.3)",
                              }
                          }
                      },
                      series: [
                        {
                            type: 'line',
                            name: keyTemp[0],
                            color: "#02e32c",
                            lineStyle: {
                                width: 8,
                            },
                            symbolSize: 16,
                            data: jwrsjtjdata1
                        },
                        {
                            type: 'line',
                            name: keyTemp[1],
                            color: "#02d8e3",
                            lineStyle: {
                                width: 8,
                            },
                            symbolSize: 16,
                            data: jwrsjtjdata2
                        },
                        {
                            type: 'line',
                            name: keyTemp[2],
                            color: "#e3a102",
                            lineStyle: {
                                width: 8,
                            },
                            symbolSize: 16,
                            data: jwrsjtjdata3
                        },
                      ]
                  };
  
                  if (require("t_Echart").mybigChart != null && require("t_Echart").mybigChart != "" && require("t_Echart").mybigChart != undefined) {
                      require("t_Echart").mybigChart.dispose();
                  }
                  require("t_Echart").mybigChart = echarts.init(document.getElementById('Big-chart'));
                  require("t_Echart").mybigChart.setOption(option);
              })
  
          },
          jqsjtjClickEvent: function (domName) {
              $("#jqsj_" + domName).addClass("active").siblings().removeClass("active");
  
              var mathRandom = 0;
              var yqyjLevelbgTimer = null;
  
              var yqyjLevelLeftArr = [];
              $(".yqyj-levelbox>.yqyj-level").each(function (index, element) {
                  yqyjLevelLeftArr[index] = parseInt($(this).css("left")) / $(this).parent().width() * 100;
              })
  
              function yqyjLevelbgFn(num) {
                  var numLittle = 0;
                  num = parseInt(Math.random() * 100);
                  yqyjLevelbgTimer = setTimeout(function () {
                      clearTimeout(yqyjLevelbgTimer);
  
                      num = num > 20 ? num < 35 ? num : 35 - parseInt(Math.random() * 5) : 20 + parseInt(Math.random() * 5);
  
                      $(".yqyj-levelbg").width(num + "%");
  
                      if (num > yqyjLevelLeftArr[0]) {
                          do {
                              numLittle++;
                          } while (num > yqyjLevelLeftArr[numLittle])
                          numLittle--;
                          $(".yqyj-levelbox>.yqyj-level").eq(numLittle).addClass("active").siblings().removeClass("active");
                      } else {
                          $(".yqyj-levelbox>.yqyj-level").eq(0).removeClass("active").siblings().removeClass("active");
                      }
  
  
                      //yqyjLevelbgFn(mathRandom);
                  }, 1000)
              }
              yqyjLevelbgFn(mathRandom);
  
  
              // 园区事件统计
              var yqsjNum = 0;
              var yqsjTimer = null;
              var yqsjTranFnTimer = null;
  
              yqsjFn();
  
              // 园区事件统计 定时器
              function yqsjFn() {
                  yqsjTimer = setTimeout(function () {
                      clearTimeout(yqsjTimer);
                      yqsjNum++;
                      yqsjNum = yqsjNum > 1 ? 0 : yqsjNum;
                      yqsjTranFn(yqsjNum);
                  }, 60000)
              }
  
              function yqsjTranFn(yqsjNum) {
                  if (yqsjNum == 0) {
                      $(".yqsj-tabitemul").css({ transform: "translateX(0)" })
                                          .children().eq(0).css({ opacity: 1 })
                                          .siblings().css({ opacity: 0 });
                  } else {
                      $(".yqsj-tabitemul").css({ transform: "translateX(-50%)" })
                                          .children().eq(0).css({ opacity: 0 })
                                          .siblings().css({ opacity: 1 });
                  }
                  $(".yqsj .jtxx-tabbox>.jtxx-tab").eq(yqsjNum).addClass("active").siblings().removeClass("active");
  
                  yqsjTranFnTimer = setTimeout(function () {
                      clearTimeout(yqsjTranFnTimer);
                      yqsjFn()
                  }, 500)
              }
  
              // 点击事件
              //$(".yqsj .jtxx-tabbox>.jtxx-tab").each(function (index, element) {
                  //$(this).click(function () {
                      clearTimeout(yqsjTimer);
                      clearTimeout(yqsjTranFnTimer);
                      //$(this).addClass("active").siblings().removeClass("active");
                      if (domName == "category") {
                          
                      } else {
                          yqsjNum = 1;
                      }
                      
                      //console.log(yqsjNum, yqsjTranFn())
                      yqsjTranFn(yqsjNum);
                  //})
              //})
  
  
          },
          //园区事件统计--类型和区域
          yqsjtjTypeAndQuyu: function () {
              //园区事件统计--类型
              t_EchartAjax.getYqsjtjType(function (result) {
                  var data = require("t_Echart").yqsjtjTypeData;
                  var htmltotal = '';
  
                 // htmltotal += ' <div class="">事件类型：<span class="testAerial">' + data.catCounts + '</span>类</div>';
                  htmltotal += ' <div class="">事件类型：<span class="testAerial">' + data.carCounts + '</span>类</div>';
                  htmltotal += '<div class="">事件个数：<span class="testAerial">' +data.eventCounts + '</span>个</div>';
                  $('#sjlxtotal').html(htmltotal);
  
                  data = data.list;
                  var html = '';
                  for (var i = 0; i < data.length; i++) {
                      for (var key in data[i]) {
                          html += '<li class="yqsj-item">' +
  								  '<div class="yqsj-itemdiv"><span>' + data[i][key].total + '</span>' + key + '</div>' +
  								  '<ol class="yqsj-itemol">'
                          for (var key2 in data[i][key]) {
                              if (key2 !== "total") {
                                  html += '<li>' + key2 + '（<em class="testAerial">' + data[i][key][key2] + '</em>）</li>'
                              }
                          }
                          html += '</ol></li>'
                      }
                  }
  
  
  
  
                  //var html = '';
                  //for (var key in data) {
                  //    if (key !== "catCounts" && key !== "eventCounts") {
                  //        html += '<li class="yqsj-item">' +
  				//				  '<div class="yqsj-itemdiv"><span>' + data[key].total + '</span>' + key + '</div>' +
  				//				  '<ol class="yqsj-itemol">'
                  //        for (var key2 in data[key]) {
                  //            if (key2 !== "total") {
                  //                html += '<li>' + key2 + '（<em class="testAerial">' + data[key][key2] + '</em>）</li>'
                  //            }
                  //        }
                  //        html += '</ol></li>'
                  //    }
                  //}
  
                  $('#sjlxList').html(html);
                  $('#sjlxList>li:first-child').addClass("active");
                  $('#sjlxList>li:first-child  .yqsj-itemol>li:first-child').addClass("active");
                  $('.scrolldiv').perfectScrollbar({ cursorwidth: 10, cursorcolor: "rgba(0, 126, 179, .6)", });
              });
  
              //园区事件统计--区域
              t_EchartAjax.getYqsjtjQuyu(function (result) {
                  var data = require("t_Echart").yqsjtjQuyuData.list;
                  var dataNum = 0; dataTypeArr = [];
                  for (var i = 0; i < data.length; i++) {
                      dataNum += data[i].value;
                      if (dataTypeArr.indexOf(data[i].content) === -1) {
                          dataTypeArr.push(data[i].content);
                      }
                  }
  
                  var htmltotal = '';
                  htmltotal += ' <div class="">监控区域：<span class="testAerial">' + require("t_Echart").yqsjtjQuyuData.carCounts + '</span>个</div>';
                  htmltotal += '<div class="">事件个数：<span class="testAerial">' + require("t_Echart").yqsjtjQuyuData.eventCounts + '</span>个</div>';
                  $('#sjqytotal').html(htmltotal);
  
                  var html = '';
                  for (var i = 0; i < data.length; i++) {
                      html += '<li class="yqsj-item">' +
                             '    <div class="yqsj-itemdiv">' + data[i].content.split("(")[0] + '（<em class="testAerial">' + data[i].value + '</em>）</div>' +
                             '</li>'
                  }
                  $('#sjqyList').html(html);
                  $('#sjqyList>li:first-child').addClass("active");
                  $('.scrolldiv').perfectScrollbar({ cursorwidth: 10, cursorcolor: "rgba(0, 126, 179, .6)", });
              });
  
              $("#jqsjtj").click(function () {
                  require("t_Echart").yqsjtjTypeAndQuyu();
              });
              
          },
  
      	//园区事件列表
          yqsjlbtj: function () {
          	var nowdata = require("common").getNowFormatDate();//当前时间
          	var before7 = require("common").getDaysBefore(nowdata, 7);//30天前的时间
          	var post_data = { "starttime": before7, "endtime": nowdata, "offset": 0, "count": 10000} //&offset=0&count=10000
  
          	t_EchartAjax.yqsjlbCenterEvent(post_data, function (result) {
          		var data = require("t_Echart").yqsjlbCenterEventData;
          		$('.yqsjlb-list').empty();
          		var html = '';
  
          		for (var i = 0; i < data.length; i++) {
          			html += '<li class="yqsjlb-item clearfix">';
          			html += '<div class="item-l"></div>';
          			html += '<div class="item-r">';
          			html += '<div>事件时间：' + data[i].sbsj + '</div>';
          			// html += '<div>事件类型：' + data[i].sj + '<span>处置状态：' + data[i].DICTNAME + '</span></div>';   //DICTNAME
          			html += '<div>事件类型：' + data[i].sj + '</div>';   //DICTNAME
          			html += '<div>事件详情：' + data[i].sjms + '。</div>';
          			html += '</div>';
          			html += '</li>';
          		}
  
          		$('.yqsjlb-list').html(html);
          		for (var i = 0; i < data.length; i++) {
          		    if (data[i].snapshoturiwithrect == undefined || data[i].snapshoturiwithrect == "") {
          		        var url = "url(Content/images/yqsjlb-default.png)";
          		        if (data[i].sj.indexOf("停车场爆满") > -1) {
          		            url = "url(Content/images/tccbmsj.png)"
          		        } else if (data[i].sj.indexOf("大客流预警") > -1) {
          		            url = "url(Content/images/dklsj_1.png)"
          		        } else if (data[i].sj.indexOf("车辆拥堵") > -1) {
          		            url = "url(Content/images/clydsj_1.png)"
          		        }
          		        else if (data[i].sj.indexOf("黑车") > -1) {
          		            url = "url(Content/images/黑车.jpg)"
          		        }
          				$('.yqsjlb-list .item-l').eq(i).css("background-image", url)
          				$('.yqsjlb-list .item-l').eq(i).css("background-size", "cover")
          			} else if (data[i].snapshoturiwithrect != undefined) {
          				$('.yqsjlb-list .item-l').eq(i).css("background-image", "url(" + data[i].snapshoturiwithrect + ")")
          			}
  
          		}
  
          	})
          },
      	//中间放大 园区事件列表
          yqsjCenterEventList: function () {
          	$("#center-event-tabtour .center-event-tab").each(function (index, element) {
          	    $(this).click(function () {
          	        require("t_Home").EventListBigChartTimeClickEvent(index);
  					$(this).addClass("active").siblings().removeClass("active");
  					var thisHtml = $(this).html();
  					switch (thisHtml) {
  						case "近三天":// 近三天
  							setPostData(3);
  							break;
  						case "近一周"://近一周
  							setPostData(7);
  							break;
  						case "近一月"://近一月
  							setPostData(30);
  							break;
  						default:
  					}
  				})
  				$("#center-event-tabtour .center-event-tab").eq(0).click();
         		})
  
          	function setPostData(n) {
          		var nowdata = require("common").getNowFormatDate();//当前时间
          		var before7 = require("common").getDaysBefore(nowdata, n);//7天前的时间
          		var post_data = { "starttime": before7, "endtime": nowdata, "offset": 0, "count": 10000 }
  
          		t_EchartAjax.yqsjlbCenterEvent(post_data, function (result) {
          			var data = require("t_Echart").yqsjlbCenterEventData;
          			$('#center-event-tourul').empty();
          			var html = '';
  
          			for (var i = 0; i < data.length; i++) {
          				html += '<li class="yqsjlb-item clearfix">';
          				html += '<div class="item-l"></div>';
          				html += '<div class="item-r">';
          				html += '<div>事件时间：' + data[i].sbsj + '</div>';
          				// html += '<div>' + data[i].sj + '<span>' + data[i].DICTNAME + '</span></div>';  //DICTNAME
          				html += '<div>' + data[i].sj + '</div>';  //DICTNAME
          				html += '<div>事件详情：' + data[i].sjms + '。</div>';
          				html += '</div>';
          				html += '</li>';
          			}
  
          			$('#center-event-tourul').html(html);
          			for (var i = 0; i < data.length; i++) {
          			    if (data[i].snapshoturiwithrect == undefined || data[i].snapshoturiwithrect == "") {
          			        var url = "url(Content/images/yqsjlb-default.png)";
          			        if (data[i].sj.indexOf("停车场爆满") > -1) {
          			            url = "url(Content/images/tccbmsj.png)"
          			        } else if (data[i].sj.indexOf("大客流预警") > -1) {
          			            url = "url(Content/images/dklsj_1.png)"
          			        } else if (data[i].sj.indexOf("车辆拥堵") > -1) {
          			            url = "url(Content/images/clydsj_1.png)"
          			        }
          			        else if (data[i].sj.indexOf("黑车") > -1) {
          			            url = "url(Content/images/黑车.jpg)"
          			        }
                              $('#center-event-tourul .item-l').eq(i).css("background-image", url);
                              $('#center-event-tourul .item-l').eq(i).css("background-size", "cover");
          				} else if (data[i].snapshoturiwithrect != undefined) {
          					$('#center-event-tourul .item-l').eq(i).css("background-image", "url(" + data[i].snapshoturiwithrect + ")")
          				}
          			}
          			$('.scrolldiv').perfectScrollbar({ cursorwidth: 6, cursorcolor: "rgba(0, 126, 179, .6)", });
  
          		})
          	}
          },
  
          //园区总统计数（中间列）
          parkCount: function () {
              //    var CarTemp = 0;//园区内车辆数
              //    var wlCarTemp = 0;//未来30分钟车辆
              //    var post_data = {
              //        // "id": "2",
              //        "pageIndex": "1",
              //        "pageSize": "100",
              //        "count": "100",
              //    }
              //    $.ajax({
              //        type: 'POST',
              //        url: con.InterfaceUrl + '/v1/park/getData',
              //        cache: false,
              //        data: post_data,
              //        dataType: 'json',
              //        //async: true, //将ajax异步加载关闭
              //        success: function (data) {
              //            //console.log(data)
              //        },
              //        error: function (err) {
              //            if (err.status == 200) {
              //                var jsonStr = err.responseText.replace("null", '"null"')
              //                showData(JSON.parse(jsonStr))//园区内车辆数
              //                showData2(JSON.parse(jsonStr))//园区内未来30分钟车辆
              //            } else {
              //                ////console.log(err)
              //            }
              //        }
              //    })
  
  
              //    function showData(data) {//园区内车辆数
              //        CarTemp += data.currentCarNum.null.total + data.currentCarNum.临港大道.total + data.currentCarNum.海昌公园.total + data.currentCarNum.港城新天地.total + data.currentCarNum.雪绒花路.total
  
              //        $('#yqncls-center').html(CarTemp);
              //    }
              //    function showData2(data) {//未来30分钟车辆
              //        for (var i = 0; i < data.estimate30mParkVehicleNo.data.length; i++) {
              //            wlCarTemp += data.estimate30mParkVehicleNo.data[i].zycws
              //        }
              //        ////console.log(wlCarTemp)
              //        $('#yqnwlcls-center').html(wlCarTemp);
              //    }
              //    //定时调用
              //    setInterval(function () {
              //        var CarTemp = 0;//园区内车辆数
              //        var wlCarTemp = 0;//未来30分钟车辆
              //        var post_data = {
              //            // "id": "2",
              //            "pageIndex": "1",
              //            "pageSize": "100",
              //            "count": "100",
              //        }
              //        $.ajax({
              //            type: 'POST',
              //            url: con.InterfaceUrl + '/v1/park/getData',
              //            cache: false,
              //            data: post_data,
              //            dataType: 'json',
              //            //async: true, //将ajax异步加载关闭
              //            success: function (data) {
  
              //            },
              //            error: function (err) {
              //                if (err.status == 200) {
              //                    var jsonStr = err.responseText.replace("null", '"null"')
              //                    showData(JSON.parse(jsonStr))//园区内车辆数
              //                    showData2(JSON.parse(jsonStr))//园区内未来30分钟车辆
              //                } else {
              //                    //console.log(err)
              //                }
              //            }
              //        })
              //        function showData(data) {//园区内车辆数
              //            CarTemp += data.currentCarNum.null.total + data.currentCarNum.临港大道.total + data.currentCarNum.海昌公园.total + data.currentCarNum.港城新天地.total + data.currentCarNum.雪绒花路.total
  
              //            $('#yqncls-center').html(CarTemp);
              //        }
              //        function showData2(data) {//未来30分钟车辆
              //            for (var i = 0; i < data.estimate30mParkVehicleNo.data.length; i++) {
              //                wlCarTemp += data.estimate30mParkVehicleNo.data[i].zycws
              //            }
              //            ////console.log(wlCarTemp)
              //            $('#yqnwlcls-center').html(wlCarTemp);
              //        }
  
              //    }, 1000*60*1);
  
              //},
              //parkcount: function () {
  
              //    var mydata;
              //    var post_data = {
              //        "count": "5",
              //        "offset": "0"
              //    }
              //    $.ajax({
              //        type: 'POST',
              //        url: 'http://47.101.181.131:8091/v1/park/vehicle/estimate30mVehicleNo',
              //        cache: false,
  
              //        data: post_data,
              //        dataType: 'json',
              //        success: function (data) {
  
              //            mydata = data.data[0].zycws + data.data[1].zycws + data.data[2].zycws + data.data[3].zycws
              //            //console.log(mydata);
              //            //require(['animateNumber'], function () {
              //            //    var comma_separator_number_step = $.animateNumber.numberStepFactories.separator(',')//千位分割符
              //            //    $('#bj_StreamTotal')
              //            //       .prop('number', mydata - 200)
              //            //       .animateNumber(
              //            //       {
              //            //           number: mydata,
              //            //           numberStep: comma_separator_number_step
              //            //       },
              //            //       2800
              //            //    );
              //            //});
              //            $('#yqnwlcls-center').html(mydata);
  
              //        },
              //        error: function () {
              //            //console.log('错误')
              //        }
              //    })
  
          },
  
          //清空
          Revert: function () {
              if (this.personCarTimer != null) {
                  clearInterval(this.personCarTimer)
              }
              if (this.personCarTimer2 != null) {
                  clearInterval(this.personCarTimer2)
              }
              if (this.personCarTimer3 != null) {
                  clearInterval(this.personCarTimer3)
              }
              if (this.personCarTimer4 != null) {
                  clearInterval(this.personCarTimer4)
              }
              if (this.personCarTimer5 != null) {
                  clearInterval(this.personCarTimer5)
              }
              if (this.Interval1 != null) {
                  clearInterval(this.Interval1)
              }
              if (this.Interval2 != null) {
                  clearInterval(this.Interval2)
              }
              if (this.Interval3 != null) {
                  clearInterval(this.Interval3)
              }
              if (this.Interval4 != null) {
                  clearInterval(this.Interval4)
              }
              if (this.Interval5 != null) {
                  clearInterval(this.Interval5)
              }
              //游客趋势分析
              if (require("t_Echart").myChartykqsfx != null && require("t_Echart").myChartykqsfx != "" && require("t_Echart").myChartykqsfx != undefined) {
                  require("t_Echart").myChartykqsfx.dispose();
              }
              //舆情分析
              if (require("t_Echart").myChartyqfx != null && require("t_Echart").myChartyqfx != "" && require("t_Echart").myChartyqfx != undefined) {
                  require("t_Echart").myChartyqfx.dispose();
              }
              //无人机
              if (require("t_Echart").myChartwrj != null && require("t_Echart").myChartwrj != "" && require("t_Echart").myChartwrj != undefined) {
                  require("t_Echart").myChartwrj.dispose();
              }
              //交通信息
              if (require("t_Echart").myChartjtxx != null && require("t_Echart").myChartjtxx != "" && require("t_Echart").myChartjtxx != undefined) {
                  require("t_Echart").myChartjtxx.dispose();
              }
              //人员车辆统计
              if (require("t_Echart").myChartrycltj != null && require("t_Echart").myChartrycltj != "" && require("t_Echart").myChartrycltj != undefined) {
                  require("t_Echart").myChartrycltj.dispose();
              }
              //停车场使用情况
              if (require("t_Echart").myCharttccsyqk != null && require("t_Echart").myCharttccsyqk != "" && require("t_Echart").myCharttccsyqk != undefined) {
                  require("t_Echart").myCharttccsyqk.dispose();
              }
              //近五日事件统计
              if (require("t_Echart").myChartjwrsjtj != null && require("t_Echart").myChartjwrsjtj != "" && require("t_Echart").myChartjwrsjtj != undefined) {
                  require("t_Echart").myChartjwrsjtj.dispose();
              }
          },
      }
  })