澳门真人官网游戏

搜索
澳门真人官网游戏 降水量
澳门真人官网游戏 // 初始化折线图 var myChart = echarts.init(document.getElementById('main')); // echarts 使用 $(document).on("click", ".tab-title-2", function () { var stcd = $('[name="stcd"] option:selected').val(); if (stcd != '' && stcd != 'all') { // 只有一个站点才请求 console.log('点击了tab2','去请求echarts的数据'); getEcharts(); var url = '/index.php/Home/True/ajaxGetEchartsTwo'; comTab(url); } else { layer.msg('选择一个站点'); } }); // 请求 图表获取记录 function getEcharts(url) { var url = '/index.php/Home/True/ajaxGetEcharts'; comGetEcharts(url) } function setOption(data) { console.log('有警戒水位'); console.log("setOption函数中data"); console.log(data); if (data.wrzList == undefined) { var legend_title = ['降雨量']; var series = [ { name:'降水量', type:'bar', barWidth: '30%', data: data.drpList }, ]; } else { var legend_title = ['水位','降雨量']; var yAxis = [ ]; var series = [ { symbol: "none", smooth: true, name:'水位', type:'line', data: data.zList, }, { yAxisIndex: 1, name:'降水量', type:'bar', barWidth: '30%', data: data.drpList }, ]; } var option = { title : { text: data.title, }, legend: { data: legend_title, right: 0, }, color: ['#3398DB'], tooltip : { trigger: 'axis', axisPointer : { type : 'shadow' } }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, dataZoom: [ { show: true, realtime: true, start: 0, end: 100 }, { type: 'inside', realtime: true, start: 0, end: 100 } ], xAxis : [ { type : 'category', boundaryGap : false, axisLine: {onZero: false}, data : data.date.map(function (str) { return str.replace(' ', '\n') }) } ], yAxis : [ { name: '降水量(mm)', type : 'value' } ], series : [ { name:'降水量', type:'bar', barWidth: '30%', data: data.drpList } ] }; // 先清除之前的实例 myChart.clear(); // 设置新的配置项 myChart.setOption(option); console.log(option); } 澳门真人官网游戏 function ajax_page_old(id){ var id = id; var sttp = $('input[name="sttp"]').val(); var data = $("#form1").serializeArray(); postData = {}; $(data).each(function(i){ postData[this.name] = this.value; }); postData.p = id; var url = "/index.php/Home/True/ajaxGetRecord"; $.get(url, postData, function(data){ $("#tbody").replaceWith(data); }); } function ajax_page_old2(id){ var id = id; var sttp = $('input[name="sttp"]').val(); var data = $("#form1").serializeArray(); postData = {}; $(data).each(function(i){ postData[this.name] = this.value; }); console.log('查找中2'); postData.p = id; postData.flag = 2; var url = '/index.php/Home/True/ajaxGetEcharts/flag/2'; $.get(url, postData, function(data){ $("#tbody2").replaceWith(data); }); }
XML 地图 | Sitemap 地图