12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <div style="height: 300px" id="tj1"></div>
- </div>
- <div class="ibox-content" >
- <table class="table table-bordered" >
- <thead>
- <tr>
- {foreach $data as $v}
- <th>{$v.name}</th>
- {/foreach}
- </tr>
- <tr>
- {foreach $data as $v}
- <td>{$v.value}</td>
- {/foreach}
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script type="text/javascript" src="/static/echarts.js"></script>
- <script>
- $(document).ready(function(){
- formSetValue("enable", {$info.enable|default=1});
- });
- option = {
- xAxis: {
- type: 'category',
- data: {:json_encode($key)}
- },
- yAxis: {
- type: 'value'
- },
- series: [{
- data: {:json_encode($value)},
- type: 'line'
- }],
- tooltip : {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- label: {
- backgroundColor: '#6a7985'
- }
- }
- }
- };
- var myChart = echarts.init(document.getElementById('tj1'));
- myChart.setOption(option);
- </script>
- {/block}
|