#
luxiaotao1123
2020-11-17 04a9dc98aab72d4cda3d24be233d82c712b4122b
src/main/webapp/views/monitor/monitor.html
@@ -296,7 +296,7 @@
                            在库
                        </div>
                        <div class="elem-footer">
                            3,300
                            <span id="stock-count">0</span>
                        </div>
                    </div>
                    <div class="top-footer-elem">
@@ -306,7 +306,7 @@
                            空库
                        </div>
                        <div class="elem-footer">
                            161
                            <span id="empty-count">0</span>
                        </div>
                    </div>
                    <div class="top-footer-elem">
@@ -316,7 +316,7 @@
                            使用中
                        </div>
                        <div class="elem-footer">
                            666
                            <span id="used-count">0</span>
                        </div>
                    </div>
                </div>
@@ -486,7 +486,7 @@
        legend: {
            orient: 'vertical',
            left: 10,
            data: ['在库库位', '空库位', '使用库位', '禁用库位']
            data: ['在库', '空']
        },
        series: [
            {
@@ -509,10 +509,10 @@
                    show: false
                },
                data: [
                    {value: 1, name: '在库库位'},
                    {value: 1, name: '空库位'},
                    {value: 1, name: '使用库位'},
                    {value: 1, name: '禁用库位'},
                    {value: 1, name: '在库'},
                    {value: 1, name: '空'},
                    {value: 1, name: '使用'},
                    {value: 1, name: '禁用'},
                ],
                itemStyle: {
                    emphasis: {
@@ -533,7 +533,6 @@
            }
        ]
    };
    // pieCharts.setOption(pieChartOption)
    // 饼图加载
    function initPieChart() {
        $.ajax({
@@ -541,8 +540,13 @@
            method: 'GET',
            success: function (res) {
                if (res.code === 200){
                    pieChartOption.series[0].data = res.data;
                    pieCharts.setOption(pieChartOption)
                    console.log(res.data);
                    pieChartOption.series[0].data = res.data.pie;
                    pieCharts.setOption(pieChartOption);
                    $('#stock-count').text(res.data.stockCunt);
                    $('#empty-count').text(res.data.emptyCount);
                    $('#none-count').text(res.data.noneCount);
                } else if (res.code === 403){
                    top.location.href = "/";
                } else {