You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
162 lines
3.7 KiB
162 lines
3.7 KiB
<#include "../../_include/_t.ftl"/>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<#include "../../_include/_h.ftl"/>
|
|
<#include "../../_include/_l.ftl"/>
|
|
<#include "../../_include/_j.ftl"/>
|
|
<#include "../../_include/_z.ftl"/>
|
|
<#include "../../_include/_e.ftl"/>
|
|
<#include "../../_include/work/_c_0.ftl"/>
|
|
|
|
<style type="text/css">
|
|
.aes-yellow{
|
|
color:#333333 !important;
|
|
background-color:#F4D26F !important;
|
|
}
|
|
.aes-red{
|
|
color:#ffffff !important;
|
|
background-color:red !important;
|
|
}
|
|
.td_class{
|
|
border:solid 1px #0060bf;
|
|
font-size:18px;
|
|
font-weight:bold;
|
|
text-align:center;
|
|
height:40px;
|
|
line-height:40px;
|
|
vertical-align:middle;
|
|
}
|
|
|
|
.tr_class{
|
|
border:solid 1px #0060bf;
|
|
font-size:18px;
|
|
text-align:center;
|
|
height:40px;
|
|
line-height:40px;
|
|
vertical-align:middle;
|
|
}
|
|
._tr_class{
|
|
border:solid 1px #0060bf;
|
|
font-size:18px;
|
|
text-align:center;
|
|
height:40px;
|
|
line-height:40px;
|
|
vertical-align:middle;
|
|
}
|
|
.clear{
|
|
clear: both;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="layui-layout-body">
|
|
<div class="layui-layout layui-layout-admin">
|
|
<!-- 内容主体区域 -->
|
|
<div class="layui-body" style="top:0;">
|
|
<div class="page_content" style="margin-left:0px;width:100%;height:100%;">
|
|
<div style="margin-left:0px;width:100%;height:100%;">
|
|
<blockquote class="layui-elem-quote page_blockquote">按类别统计单位</blockquote>
|
|
<div id="div_echars" style="height:54%;margin:10px;"></div>
|
|
<div id="div_table" style="height:44%;margin:10px;">
|
|
<table width="100%">
|
|
<thead>
|
|
<th width="40%" class="td_class">单位类型</th>
|
|
<th width="10%" class="td_class">单位数</th>
|
|
<th width="40%" class="td_class">单位类型</th>
|
|
<th width="10%" class="td_class">单位数</th>
|
|
</thead>
|
|
<tbody id="table_data">
|
|
<tr>
|
|
<td colspan="6" class="_tr_class">暂无数据</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
layuiplus.on_w_1(function(){
|
|
layuiplus.init(1);
|
|
$.ajax({
|
|
type:"get",
|
|
url:"${ctx}/bdata/data0/load_07",
|
|
data:{
|
|
regionId:"${manager_user['regionId']}"
|
|
},
|
|
dataType:"json",
|
|
success:function(data){
|
|
//解析data.list
|
|
var tArr = new Array();
|
|
var dArr = new Array();
|
|
var _strHtml = "<tr>";
|
|
for(var i = 0;i < data.list.length;i++){
|
|
if((i+1)%2 == 0){
|
|
_strHtml += '<td class="_tr_class">'+data.list[i].lb+'</td><td class="_tr_class">'+data.list[i].sl+'</a></td></tr></tr>';
|
|
}else{
|
|
_strHtml += '<td class="_tr_class">'+data.list[i].lb+'</td><td class="_tr_class">'+data.list[i].sl+'</td>';
|
|
}
|
|
tArr.push(data.list[i].lb);
|
|
dArr.push(data.list[i].sl);
|
|
}
|
|
$("#table_data").html(_strHtml);
|
|
bdataEchars("1","div_echars",tArr,dArr);
|
|
}
|
|
});
|
|
});
|
|
var bdataEchars = function(t,pdiv){
|
|
var option = {
|
|
tooltip: {
|
|
trigger: "axis"
|
|
},
|
|
grid:{
|
|
left:"40px",
|
|
right:"40px",
|
|
bottom:"40px"
|
|
},
|
|
legend: {
|
|
data:["单位数"],
|
|
textStyle:{
|
|
color: '#b5e0ff'
|
|
}
|
|
},
|
|
xAxis:{
|
|
type: "category",
|
|
data:arguments[2],
|
|
axisLabel : {//坐标轴刻度标签的相关设置。
|
|
textStyle:{
|
|
color: '#b5e0ff'
|
|
}
|
|
}
|
|
},
|
|
yAxis:{
|
|
type:"value",
|
|
axisLabel : {//坐标轴刻度标签的相关设置。
|
|
textStyle: {
|
|
color: '#b5e0ff'
|
|
}
|
|
}
|
|
},
|
|
series:[
|
|
{
|
|
name:"单位数",
|
|
type:"bar",
|
|
itemStyle:{
|
|
color:"#b5e0ff"
|
|
},
|
|
data:arguments[3]
|
|
}
|
|
]
|
|
};
|
|
|
|
echarts.init($("#"+pdiv).get(0)).setOption(option);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|