赣州市洪水风险预警系统三维版本
guoshilong
2023-02-03 17ab57553df0ff07d4b913bb1f315f9f45a9bc0e
corelib/common/popup/js/evaluateAnalysis.js
@@ -1,12 +1,12 @@
$(function () {
// change事件
    // change事件
    $('input[type=radio][name=value]').change(function () {
        if (this.value == 'list'){
            $('.evaluate-echarts').hide()
            $('.evaluate-box-top-left').css('visibility','visible')
            $('.evaluate-table-thead').show()
            $('.evaluate-table').show()
        }else {
            $('.evaluate-table-thead').hide()
            $('.evaluate-table').hide()
            $('.evaluate-box-top-left').css('visibility','hidden')
            recharts_z()
@@ -15,7 +15,9 @@
        }
    });
    //加载饼图
    function loadEcharts(){
        var echartsOption = {
            tooltip: {
                trigger: 'item'
@@ -57,15 +59,12 @@
            ]
        }
        var chartDom = document.getElementById('evaluate-echarts');
        var myChart = echarts.init(chartDom);
        echartsOption&&myChart.setOption(echartsOption,true);
    }
    function recharts_z() {
        console.log($(window).width(),$(window).height(),"777")
        var width = $(window).width() * 0.8;
        var height = ($(window).height() - 50) - 80;
        $('#evaluate-echarts').empty();
@@ -78,4 +77,13 @@
        }
        myChartPie.resize(resize);
    }
    //获取参数
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
});