| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- @extends('admin.layouts')
- @section('css')
- @endsection
- @section('title', '控制面板')
- @section('content')
- <!-- BEGIN CONTENT BODY -->
- <div class="page-content" style="padding-top:0;">
- <!-- BEGIN PAGE BASE CONTENT -->
- <div class="row">
- <div class="col-md-12">
- <div class="note note-info">
- <h3 class="block">{{$nodeName}}<small style="padding-left:10px;">{{$nodeServer}}</small></h3>
- <p> 提示:30日内流量统计不会统计当天,24小时内流量统计不会统计当前小时;如果无统计数据,请检查定时任务是否正常。 </p>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <div class="portlet light bordered">
- <div class="portlet-body">
- <div id="chart1" style="width: auto;height:450px;"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <div class="portlet light bordered">
- <div class="portlet-body">
- <div id="chart2" style="width: auto;height:450px;"></div>
- </div>
- </div>
- </div>
- </div>
- <!-- END PAGE BASE CONTENT -->
- </div>
- <!-- END CONTENT BODY -->
- @endsection
- @section('script')
- <script src="/assets/global/plugins/echarts/echarts.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- var myChart = echarts.init(document.getElementById('chart1'));
- option = {
- title: {
- text: '24小时内流量',
- subtext: '单位M'
- },
- tooltip: {
- trigger: 'axis'
- },
- toolbox: {
- show: true,
- feature: {
- saveAsImage: {}
- }
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24']
- },
- yAxis: {
- type: 'value',
- axisLabel: {
- formatter: '{value} M'
- }
- },
- series: [
- @if(!empty($trafficHourly))
- {
- name:'{{$trafficHourly['nodeName']}}',
- type:'line',
- data:[{!! $trafficHourly['hourlyData'] !!}],
- markPoint: {
- data: [
- {type: 'max', name: '最大值'}
- ]
- }
- }
- @endif
- ]
- };
- myChart.setOption(option);
- </script>
- <script type="text/javascript">
- var myChart = echarts.init(document.getElementById('chart2'));
- option = {
- title: {
- text: '30日内流量',
- subtext: '单位M'
- },
- tooltip: {
- trigger: 'axis'
- },
- toolbox: {
- show: true,
- feature: {
- saveAsImage: {}
- }
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30']
- },
- yAxis: {
- type: 'value',
- axisLabel: {
- formatter: '{value} M'
- }
- },
- series: [
- @if(!empty($trafficDaily))
- {
- name:'{{$trafficDaily['nodeName']}}',
- type:'line',
- data:[{!! $trafficDaily['dailyData'] !!}],
- markPoint: {
- data: [
- {type: 'max', name: '最大值'}
- ]
- }
- }
- @endif
- ]
- };
- myChart.setOption(option);
- </script>
- @endsection
|