澳门真人官网游戏

搜索
编辑
测站名称 测站编码 澳门真人官网游戏 扩展关键字 垂线平均 10cm 20cm 40cm
澳门真人官网游戏 垂线平均 10cm 20cm 40cm
澳门真人官网游戏 // 初始化折线图 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/ajaxGetEcharts'; comTab(url); } else { layer.msg('选择一个站点'); return false; } }); // 请求 图表获取记录 function getEcharts(url) { var url = '/index.php/Home/True/ajaxGetEcharts'; comGetEcharts(url) } function setOption(data) { console.log("setOption函数中data"); console.log(data); var legend_title = ['垂线平均','10cm','20cm','40cm']; var series = [ { symbol: "none", smooth: true, name: '垂线平均', type: 'line', data: data.vtavslmList }, { yAxisIndex: 1, symbol: "none", smooth: true, name: '10cm', type: 'line', data: data.slm10List }, { yAxisIndex: 1, symbol: "none", smooth: true, name: '20cm', type: 'line', data: data.slm20List }, { yAxisIndex: 1, symbol: "none", smooth: true, name: '40cm', type: 'line', data: data.slm40List }, ]; var option = { title : { text: data.title, }, legend: { data: legend_title, right: "50%", top: 30 }, tooltip : { trigger: 'axis', axisPointer: { type: 'cross', }, }, 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: '垂线平均(%)', type : 'value', min: data.vtavslmMin, max: data.vtavslmMax }, { name: 'cm(%)', type : 'value', min: data.slm10Min, max: data.slm10Max } ], series : series }; // 先清除之前的实例 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; }); postData.p = id; postData.flag = 2; var url = '/index.php/Home/True/ajaxGetEcharts'; $.ajax({ async: true, url: url, type: "POST", data: postData, dataType: "HTML", beforeSend: function (XHR) { layer.msg('加载中', { icon: 16 ,shade: 0.01 }); }, success: function(data) { console.log(data); $("#tbody2").replaceWith(data); }, }); }
XML 地图 | Sitemap 地图