575 lines
16 KiB
Plaintext
575 lines
16 KiB
Plaintext
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mainMenu_PDigData.aspx.cs" Inherits="FineUIPro.Web.common.mainMenu_PDigData" %>
|
|||
|
|
|||
|
<!DOCTYPE html>
|
|||
|
<html>
|
|||
|
<head id="Head1" runat="server">
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|||
|
<title>首页</title>
|
|||
|
<link href="../res/index/css/reset.css" rel="stylesheet" />
|
|||
|
<link href="../res/index/css/home.css" rel="stylesheet" />
|
|||
|
<link href="../res/index/css/swiper-3.4.2.min.css" rel="stylesheet" />
|
|||
|
<style type="text/css">
|
|||
|
* {
|
|||
|
box-sizing: border-box;
|
|||
|
}
|
|||
|
|
|||
|
.flexV {
|
|||
|
flex-direction: column;
|
|||
|
}
|
|||
|
|
|||
|
.wrap {
|
|||
|
height: 100%;
|
|||
|
padding: 15px;
|
|||
|
}
|
|||
|
|
|||
|
.bottom-wrap {
|
|||
|
padding: 0;
|
|||
|
margin-bottom: 5px;
|
|||
|
}
|
|||
|
|
|||
|
.bottom-wrap:last-child {
|
|||
|
margin-bottom: 0;
|
|||
|
}
|
|||
|
|
|||
|
.bw-item-content {
|
|||
|
padding: 5px;
|
|||
|
}
|
|||
|
|
|||
|
.top {
|
|||
|
display: flex;
|
|||
|
display: -webkit-flex;
|
|||
|
overflow: hidden;
|
|||
|
width: 100%;
|
|||
|
}
|
|||
|
|
|||
|
.bw-b-bottom {
|
|||
|
width: 100%;
|
|||
|
height: 100%;
|
|||
|
}
|
|||
|
|
|||
|
.itemlr {
|
|||
|
margin: 0 5px;
|
|||
|
}
|
|||
|
|
|||
|
.bw-b-bottom-up {
|
|||
|
border-radius: 0;
|
|||
|
height: 100%;
|
|||
|
margin: 0;
|
|||
|
box-shadow: none;
|
|||
|
}
|
|||
|
|
|||
|
.yj-info {
|
|||
|
align-items: center;
|
|||
|
justify-content: center;
|
|||
|
width: 100%;
|
|||
|
height: 100%;
|
|||
|
color: red;
|
|||
|
font-size: 20px;
|
|||
|
}
|
|||
|
|
|||
|
.yj-info .tit {
|
|||
|
font-weight: 700;
|
|||
|
margin-bottom: 20px;
|
|||
|
}
|
|||
|
|
|||
|
.yj-info .tel {
|
|||
|
font-weight: 700;
|
|||
|
}
|
|||
|
|
|||
|
.tab-wrap {
|
|||
|
left: auto;
|
|||
|
right: 15px;
|
|||
|
top: 5px;
|
|||
|
}
|
|||
|
|
|||
|
.tab .t-item {
|
|||
|
width: auto;
|
|||
|
padding: 5px 10px;
|
|||
|
}
|
|||
|
|
|||
|
.bottom-list {
|
|||
|
height: 100px;
|
|||
|
padding: 15px;
|
|||
|
overflow: hidden;
|
|||
|
color: #fff;
|
|||
|
margin: 0 10px;
|
|||
|
}
|
|||
|
|
|||
|
.bottom-list .bl-left {
|
|||
|
float: left;
|
|||
|
margin-right: 30px;
|
|||
|
margin-left: 50px;
|
|||
|
}
|
|||
|
|
|||
|
.bottom-list .bl-right {
|
|||
|
float: right;
|
|||
|
margin-right: 50px;
|
|||
|
}
|
|||
|
|
|||
|
.tab .t-item {
|
|||
|
font-size: 12px;
|
|||
|
}
|
|||
|
|
|||
|
.content-body {
|
|||
|
display: flex;
|
|||
|
flex-direction: column;
|
|||
|
flex: 3;
|
|||
|
}
|
|||
|
|
|||
|
.content-body .content-item {
|
|||
|
}
|
|||
|
|
|||
|
.part-item {
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
}
|
|||
|
|
|||
|
.part-tag {
|
|||
|
display: flex;
|
|||
|
flex-direction: column;
|
|||
|
background-color: #107ca2;
|
|||
|
opacity: 0.8;
|
|||
|
flex: 1;
|
|||
|
border-radius: 10px;
|
|||
|
}
|
|||
|
|
|||
|
.part-tag + .part-tag {
|
|||
|
margin-left: 20px;
|
|||
|
}
|
|||
|
|
|||
|
.item-top {
|
|||
|
display: flex;
|
|||
|
justify-content: center;
|
|||
|
align-items: center;
|
|||
|
font-size: 20px;
|
|||
|
color: #fff;
|
|||
|
border-bottom: 1px solid #f2f2f2;
|
|||
|
padding: 10px 0px;
|
|||
|
}
|
|||
|
|
|||
|
.unit {
|
|||
|
display: flex;
|
|||
|
justify-content: flex-end;
|
|||
|
text-align: right;
|
|||
|
font-size: 16px;
|
|||
|
padding-right: 30px;
|
|||
|
}
|
|||
|
|
|||
|
.num {
|
|||
|
display: flex;
|
|||
|
justify-content: center;
|
|||
|
flex: 1;
|
|||
|
}
|
|||
|
|
|||
|
.unit-btn {
|
|||
|
display: flex;
|
|||
|
justify-content: center;
|
|||
|
padding: 10px 0px;
|
|||
|
font-size: 16px;
|
|||
|
color: #fff;
|
|||
|
}
|
|||
|
|
|||
|
.do-btn {
|
|||
|
display: flex;
|
|||
|
justify-content: center;
|
|||
|
background-color: #107ca2;
|
|||
|
opacity: 0.8;
|
|||
|
flex: 1;
|
|||
|
border-radius: 10px;
|
|||
|
padding: 20px 0px;
|
|||
|
color: #fff;
|
|||
|
}
|
|||
|
.base-wrap{
|
|||
|
padding:15px 10px;
|
|||
|
height:100%;
|
|||
|
}
|
|||
|
.base-wrap .base-tit{
|
|||
|
font-size:12px;
|
|||
|
color:#fff;
|
|||
|
}
|
|||
|
.base-wrap .base-txt-wrap{
|
|||
|
margin-top:5px;
|
|||
|
background-color:#0B508B;
|
|||
|
border-radius:5px;
|
|||
|
color:#FFAE72;
|
|||
|
height:100%;
|
|||
|
align-items:center;
|
|||
|
justify-content:space-around;
|
|||
|
}
|
|||
|
.base-wrap .base-txt-wrap .num-1{
|
|||
|
background-color:#2A759C;
|
|||
|
padding:5px;
|
|||
|
font-size:40px;
|
|||
|
}
|
|||
|
.yj-info-1{
|
|||
|
height:100%;
|
|||
|
}
|
|||
|
.yj-info-1-list{
|
|||
|
color:#fff;
|
|||
|
}
|
|||
|
.yj-info-1 .telbg{
|
|||
|
height:100%;
|
|||
|
width:85px;
|
|||
|
background: url(../res/index/images/tel.png) center center no-repeat;
|
|||
|
background-size: contain;
|
|||
|
}
|
|||
|
.yj-info-1-list-item{
|
|||
|
padding:0 5px;
|
|||
|
background-color:#2A759C;
|
|||
|
margin-bottom:5px;
|
|||
|
font-size:12px;
|
|||
|
align-items:center;
|
|||
|
justify-content:center;
|
|||
|
}
|
|||
|
.yj-info-1-list-item:last-child{
|
|||
|
margin-bottom:0;
|
|||
|
}
|
|||
|
.yj-info-1-list-item .telnum{
|
|||
|
text-align:center;
|
|||
|
align-items:center;
|
|||
|
justify-content:center;
|
|||
|
display:flex;
|
|||
|
}
|
|||
|
.yj-info-1-info{
|
|||
|
color:#fff;
|
|||
|
background-color:#2A759C;
|
|||
|
text-align:center;
|
|||
|
font-size:16px;
|
|||
|
height:40px;
|
|||
|
line-height:40px;
|
|||
|
margin-top:5px;
|
|||
|
}
|
|||
|
</style>
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<div class="wrap flex flexV">
|
|||
|
<div class="bottom-wrap flex1">
|
|||
|
<div class="top">
|
|||
|
<div class="item flex1">
|
|||
|
<div class="bw-b-bottom">
|
|||
|
<div class="bw-b-bottom-up">
|
|||
|
<div class="bw-item-content pd0">
|
|||
|
<div class="base-wrap flex flexV">
|
|||
|
<div class="base-tit">当前现场总人数</div>
|
|||
|
<div class="base-txt-wrap flex flex1">
|
|||
|
<div class="num-1 specialNum" runat="server" id="divperson">0</div>
|
|||
|
<div class="num-1 specialNum" runat="server" id="person00">0</div>
|
|||
|
<div class="num-1 specialNum" runat="server" id="person01">0</div>
|
|||
|
<div class="num-1 specialNum" runat="server" id="person02">0</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="item flex3 itemlr">
|
|||
|
<div class="bw-b-bottom">
|
|||
|
<div class="bw-b-bottom-up">
|
|||
|
<div class="bw-item-content">
|
|||
|
<div id='two' style="width: 100%; height: 100%;"></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="bottom-wrap flex1">
|
|||
|
<div class="top">
|
|||
|
<div class="bw-b-bottom">
|
|||
|
<div class="bw-b-bottom-up">
|
|||
|
<div class="tab-wrap">
|
|||
|
<div class="tab" data-value="4">
|
|||
|
<div class="t-item active">单位</div>
|
|||
|
<div class="spline"></div>
|
|||
|
<div class="t-item">岗位</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="bw-item-content">
|
|||
|
<div id='four' style="width: 100%; height: 100%;"></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
<script type="text/javascript" src="../res/index/js/jquery-3.4.1.min.js"></script>
|
|||
|
<script type="text/javascript" src="../res/index/js/swiper-3.4.2.jquery.min.js"></script>
|
|||
|
<script type="text/javascript" src="../res/index/js/echarts.min.js"></script>
|
|||
|
<script type="text/javascript">
|
|||
|
function category_Two(id, xArr, data) {
|
|||
|
// 基于准备好的dom,初始化echarts实例
|
|||
|
var myChart = echarts.init(document.getElementById(id))
|
|||
|
// 指定图表的配置项和数据
|
|||
|
var option = {
|
|||
|
title: {
|
|||
|
left: 'center',
|
|||
|
text: '项目安全人工时',
|
|||
|
textStyle: {
|
|||
|
color: '#fff',
|
|||
|
fontSize: 12,
|
|||
|
fontWeight: '300'
|
|||
|
},
|
|||
|
show: true
|
|||
|
},
|
|||
|
tooltip: {},
|
|||
|
legend: {
|
|||
|
show: false
|
|||
|
},
|
|||
|
xAxis: {
|
|||
|
axisTick: {
|
|||
|
show: false
|
|||
|
},
|
|||
|
axisLine: {
|
|||
|
lineStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.3)'
|
|||
|
}
|
|||
|
},
|
|||
|
axisLabel: {
|
|||
|
show: true,
|
|||
|
interval: 0,
|
|||
|
textStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.8)'
|
|||
|
}
|
|||
|
},
|
|||
|
type: 'category',
|
|||
|
data: xArr
|
|||
|
},
|
|||
|
yAxis: {
|
|||
|
axisTick: {
|
|||
|
show: false
|
|||
|
},
|
|||
|
axisLine: {
|
|||
|
show: false,
|
|||
|
lineStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.3)'
|
|||
|
}
|
|||
|
},
|
|||
|
axisLabel: {
|
|||
|
show: true,
|
|||
|
textStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.8)'
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
series: data,
|
|||
|
grid: {
|
|||
|
top: '15%',
|
|||
|
left: '10',
|
|||
|
right: '10',
|
|||
|
bottom: '0%',
|
|||
|
containLabel: true,
|
|||
|
backgroundColor: 'rgba(0,162,233, 0.01)',
|
|||
|
// borderColor: 'rgba(0,162,233, 1)'
|
|||
|
},
|
|||
|
itemStyle: {
|
|||
|
color: 'rgba(9,199,113, 1)'
|
|||
|
},
|
|||
|
backgroundColor: 'rgba(0,162,233, 0.01)',
|
|||
|
textStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.3)'
|
|||
|
}
|
|||
|
}
|
|||
|
// 使用刚指定的配置项和数据显示图表。
|
|||
|
myChart.setOption(option)
|
|||
|
}
|
|||
|
|
|||
|
var two =<%=Two %>;
|
|||
|
var xArr = two.categories
|
|||
|
var data = [{
|
|||
|
name: '累计人工时',
|
|||
|
type: 'line',
|
|||
|
data: two.series[0].data,
|
|||
|
label: { //柱体上显示数值
|
|||
|
show: true,//开启显示
|
|||
|
position: 'top',//在上方显示
|
|||
|
textStyle: {//数值样式
|
|||
|
fontSize: '20px',
|
|||
|
color: '#fff'
|
|||
|
},
|
|||
|
formatter: '{c}',
|
|||
|
},
|
|||
|
itemStyle: { normal: { color: '#00c771' } }
|
|||
|
},{
|
|||
|
name: '当月人工时',
|
|||
|
type: 'bar',
|
|||
|
barWidth: 40,
|
|||
|
data: two.series[1].data,
|
|||
|
label: { //柱体上显示数值
|
|||
|
show: true,//开启显示
|
|||
|
position: 'inside',//内部
|
|||
|
textStyle: {//数值样式
|
|||
|
fontSize: '20px',
|
|||
|
color: '#fff'
|
|||
|
},
|
|||
|
formatter: '{c}',
|
|||
|
},
|
|||
|
}]
|
|||
|
category_Two('two', xArr, data)
|
|||
|
</script>
|
|||
|
|
|||
|
<script type="text/javascript">
|
|||
|
function category_Four(id, xArr, series) {
|
|||
|
// 基于准备好的dom,初始化echarts实例
|
|||
|
var myChart = echarts.init(document.getElementById(id))
|
|||
|
// 指定图表的配置项和数据
|
|||
|
var option = {
|
|||
|
title: {
|
|||
|
// left:'center',
|
|||
|
text: '现场人员',
|
|||
|
textStyle: {
|
|||
|
color: '#fff',
|
|||
|
fontSize: 12,
|
|||
|
fontWeight: '300',
|
|||
|
},
|
|||
|
show: true
|
|||
|
},
|
|||
|
tooltip: {},
|
|||
|
color: ['#88cc00', '#AE4B23'],
|
|||
|
legend: {
|
|||
|
left: '15%',
|
|||
|
show: true,
|
|||
|
textStyle: {//图例文字的样式
|
|||
|
color: '#ffffff',
|
|||
|
fontSize: 10,
|
|||
|
}
|
|||
|
},
|
|||
|
xAxis: {
|
|||
|
axisTick: {
|
|||
|
show: false
|
|||
|
},
|
|||
|
axisLine: {
|
|||
|
lineStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.3)'
|
|||
|
}
|
|||
|
},
|
|||
|
axisLabel: {
|
|||
|
show: true,
|
|||
|
interval: 0,
|
|||
|
textStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.8)'
|
|||
|
}
|
|||
|
},
|
|||
|
type: 'category',
|
|||
|
data: xArr
|
|||
|
},
|
|||
|
yAxis: {
|
|||
|
axisTick: {
|
|||
|
show: false
|
|||
|
},
|
|||
|
axisLine: {
|
|||
|
show: false,
|
|||
|
lineStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.3)'
|
|||
|
}
|
|||
|
},
|
|||
|
axisLabel: {
|
|||
|
show: true,
|
|||
|
textStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.8)'
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
series: series,
|
|||
|
grid: {
|
|||
|
top: '25%',
|
|||
|
left: '0%',
|
|||
|
right: '0%',
|
|||
|
bottom: '0%',
|
|||
|
containLabel: true,
|
|||
|
backgroundColor: 'rgba(0,162,233, 0.01)',
|
|||
|
// borderColor: 'rgba(0,162,233, 1)'
|
|||
|
},
|
|||
|
//itemStyle: {
|
|||
|
// color: 'rgba(200,201,10, 1)'
|
|||
|
//},
|
|||
|
backgroundColor: 'rgba(0,162,233, 0.01)',
|
|||
|
textStyle: {
|
|||
|
color: 'rgba(255, 255, 255, 0.3)'
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
// 使用刚指定的配置项和数据显示图表。
|
|||
|
myChart.setOption(option)
|
|||
|
}
|
|||
|
var four1 =<%=Four1 %>;
|
|||
|
var xArr = four1.categories
|
|||
|
var series = [{
|
|||
|
name: '签到',
|
|||
|
type: 'bar',
|
|||
|
barWidth: 20,
|
|||
|
barGap:0.05,
|
|||
|
data: four1.series[0].data,
|
|||
|
label: { //柱体上显示数值
|
|||
|
show: true,//开启显示
|
|||
|
position: 'top',//在上方显示
|
|||
|
textStyle: {//数值样式
|
|||
|
fontSize: '20px',
|
|||
|
color: '#fff'
|
|||
|
},
|
|||
|
formatter: '{c}',
|
|||
|
},
|
|||
|
itemStyle: { normal: { color: '#88cc00' } }
|
|||
|
}, {
|
|||
|
name: '系统',
|
|||
|
type: 'bar',
|
|||
|
barWidth: 20,
|
|||
|
data: four1.series[1].data,
|
|||
|
label: { //柱体上显示数值
|
|||
|
show: true,//开启显示
|
|||
|
position: 'top',//在上方显示
|
|||
|
textStyle: {//数值样式
|
|||
|
fontSize: '20px',
|
|||
|
color: '#fff'
|
|||
|
},
|
|||
|
formatter: '{c}',
|
|||
|
},
|
|||
|
itemStyle: { normal: { color: '#AE4B23' } }
|
|||
|
}];
|
|||
|
category_Four('four', xArr, series)
|
|||
|
</script>
|
|||
|
|
|||
|
<script type="text/javascript">
|
|||
|
$(".tab .t-item").click(function () {
|
|||
|
var $this = $(this)
|
|||
|
var index = $this.index()
|
|||
|
if ($this.hasClass('active') && index == 0) {
|
|||
|
return
|
|||
|
}
|
|||
|
var $tab = $this.closest(".tab")
|
|||
|
var value = $tab.attr("data-value")
|
|||
|
$tab.find(".t-item").removeClass('active');
|
|||
|
$this.addClass('active')
|
|||
|
|
|||
|
var four1 =<%=Four1 %>;
|
|||
|
var four2 =<%=Four2 %>;
|
|||
|
if (value == 4) {
|
|||
|
var xArr = four1.categories
|
|||
|
var data = [{
|
|||
|
name: '签到',
|
|||
|
type: 'bar',
|
|||
|
data: four1.series[0].data
|
|||
|
}, {
|
|||
|
name: '系统',
|
|||
|
type: 'bar',
|
|||
|
data: four1.series[1].data,
|
|||
|
itemStyle: { normal: { color: 'rgba(174,75,37, 1)' } }
|
|||
|
}];
|
|||
|
if (index == 2) {
|
|||
|
var xArr = four2.categories
|
|||
|
var data = [{
|
|||
|
name: '签到',
|
|||
|
data: four2.series[0].data
|
|||
|
}, {
|
|||
|
name: '系统',
|
|||
|
data: four2.series[1].data,
|
|||
|
itemStyle: { normal: { color: 'rgba(174,75,37, 1)' } }
|
|||
|
}];
|
|||
|
}
|
|||
|
category_Four('four', xArr, data)
|
|||
|
}
|
|||
|
})
|
|||
|
</script>
|
|||
|
</html>
|
|||
|
|