src/main/resources/templates/system/report/carincomes.html

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('百度ECharts')" />
</head>
<body class="gray-bg">
<div class="row  border-bottom white-bg dashboard-header">
    <div class="col-sm-12">
        <button id="btn1">本月</button>

        <button id="btn2">本年</button>



    </div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">

        <div class="col-sm-6" style="height:100%; width: 100%">
            <div class="ibox float-e-margins" style="height:100%; width: 100%">

                <div class="ibox-content" style="height:100%; width: 100%">

                    <div class="echarts" id="echarts-bar-chart" ></div>
                </div>
            </div>
        </div>
    </div>

</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: echarts-js" />
<script type="text/javascript">
    //获取本月
    function initCarChart(baroption){
        $.ajax({
            type: "POST",
            async : false, //同步执行
            url: ctx + "system/report/echarts/getCarincomeByMonth",
            data: {},
            dataType : "json",
            success: function(result){
                console.log(result)
                debugger;
                if (result.code==0) {
                    //初始化option.xAxis[0]中的data
                    var carReportdata=result.carReportInfo;
                    baroption.xAxis[0].data=[];
                    for(var i=0;i<carReportdata.length;i++){
                        baroption.xAxis[0].data.push(carReportdata[i].monthTime);
                    }
                    //初始化option.series[0]中的data
                    baroption.series[0].data=[];
                    for(var i=0;i<carReportdata.length;i++){
                        baroption.series[0].data.push(carReportdata[i].zuCheFei);
                    }
                }

                /*  var serverJsonData = eval('('+serverdata.data+')');
后面还有 449 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。