xinjiang/SGGL/FineUIPro.Web/common/mainIII.aspx

1512 lines
53 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mainIII.aspx.cs" Inherits="FineUIPro.Web.common.mainIII" %>
<!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">
.row2 .item {
height: 100%;
}
.spline-mid {
width: 1px;
height: 80%;
border-left: 1px solid #2779AA;
margin-top: 5%;
}
.info {
padding: 10px;
}
.info .item {
display: -webkit-flex;
display: flex;
display: -moz-box;
display: -ms-flexbox;
color: #fff;
font-size: 14px;
letter-spacing: 2px;
margin-bottom: 10px;
}
.info .item .tit {
font-size: 12px;
font-weight: 600;
}
.info .item .val {
-webkit-flex: 1;
-ms-flex: 1;
-moz-box-flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 100;
/*white-space: nowrap;*/
}
.height260 {
height: 260px;
}
.bw-item-content {
padding: 0px;
}
.tab-wrap {
}
.tab-small {
left: auto;
right: 15px;
top: 5px;
}
.tab-small .tab .t-item {
width: auto;
font-size: 12px;
}
.bg-item-fix {
width: 100%;
height: 100%;
padding: 0 10px 10px;
box-sizing: border-box;
}
.mbnone {
margin-bottom: 0;
}
.widthper {
width: 48%;
box-sizing: border-box;
}
.itemfix {
margin-bottom: 25px;
}
.height130 {
height: 130px;
}
/*将中间地图变成监控背景图*/
.bg-img {
displayb: block;
height: 100%;
width: 100%;
border-radius: 16px;
}
.bg-img-jk {
background: url(../res/images/Page-01.jpg) center center no-repeat;
background-size: 100% 100%;
}
.bg-img-jk-1 {
background: url(../images/sedinsite.jpg) center center no-repeat;
background-size: 100% 100%;
}
.wrap {
/*padding: 10px 0 0;*/
height: 100%;
box-sizing: border-box;
}
.bottom-wrap-new {
height: 100%;
}
.swiperHeightWrap {
height: 200px;
}
.swiperHeight {
height: 120px;
}
@media screen and (max-height: 625px) {
.swiperHeightWrap {
height: 200px;
}
.swiperHeight {
height: 120px;
}
.itemfix {
margin-bottom: 0;
}
}
@media screen and (min-height: 625px) {
.swiperHeightWrap {
height: 320px;
}
.swiperHeight {
height: 170px;
}
.itemfix {
margin-bottom: 25px;
}
}
.bw-b-bottom-up {
height: 100%;
margin-bottom: 0 !important;
}
.tab-wrap .tab .t-item {
width: auto;
background-color: rgb(23, 68, 122) !important;
}
.tab-wrap .tab .active {
background-color: rgba(0,162,233, 1) !important;
}
.tab-content .line-item {
background-color: #232a56;
border-radius: 10px;
height: 10px;
}
.tab-content .line-item > div {
background-color: #32d0ff;
}
.txt-board {
align-items: center;
justify-content: space-around;
}
.num-wrap {
background-color: rgb(23, 68, 122, 0.2);
border-radius: 10px;
padding: 5px;
/*min-height: 90px;*/
height: 70%;
justify-content: center;
align-items: center;
margin: 5px;
}
.num-wrap .tit {
color: #88C8E2;
margin: 10px 0 0;
font-size: 11px;
width: 100%;
text-align: center;
}
.num-wrap .num {
align-items: center;
justify-content: space-around;
color: #fff;
width: 100%;
text-align: center;
}
.num-wrap .num > div {
/*background-color: #387491;*/
color: #0c81fe;
padding: 2px;
font-size: 24px;
font-weight:bold;
/*margin:5px;*/
}
.num-wrap .color1 > div {
color: #44f0e9;
}
.num-wrap .color2 > div {
color: #9a05f5;
}
.bg-item {
height: 100%;
}
.itemflex {
padding-bottom: 10px;
}
.itemflex2 {
padding-top: 10px;
}
.bw-b-bottom {
width: 100%;
height: 100%;
}
.pdlr10 {
padding: 0 10px;
}
.tab-wrap-tit-positon {
position: absolute;
right: 10px;
top: 0;
}
.content-ul .c-item .tit {
display:block;
position:relative;
padding-left: 2em;
}
.content-ul .c-item .tit::before {
content: '';
position: absolute;
border-color: #57B8BD;
border-style: solid;
border-width: 0.25em;
height: 0;
top: 0;
left: 0.6em;
margin-top: 0.5em;
width: 0;
border-radius:50%;
}
.content-ul .c-item .tit-read::before {
content: '';
position: absolute;
border-color: #ffffff;
border-style: solid;
border-width: 0.25em;
height: 0;
top: 0;
left: 0.6em;
margin-top: 0.25em;
width: 0;
border-radius:50%
}
.content-ul .c-item .tit .tit-t{
flex:1;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
word-break: keep-all;
}
.content-ul .c-item.disabled .tit::before{
display:none !important;
}
.content-ul .c-item .tit .tit-v{
margin-left: 12px;
width: 80px;
}
</style>
</head>
<body>
<div class="wrap">
<div class="bottom-wrap-new flex">
<!--左侧-->
<div class="bw-s flex1 flex flexV">
<div class="flex1 itemflex">
<div class="bg-item">
<div class="bw-item-content flex flexV">
<div class="tit-new">安全数据统计</div>
<div class="content-wrap-1 flex flexV">
<div class="item flex1 flex flexV">
<div class="tit">安全人工时</div>
<div class="content-1 flex flex1">
<div class="cc-num-wrap flex1 flex">
<div class="specialNum cc-num" runat="server" id="divPNum8">0</div>
<div class="specialNum cc-num" runat="server" id="divPNum7">0</div>
<div class="specialNum cc-num" runat="server" id="divPNum6">0</div>
<div class="specialNum cc-num" runat="server" id="divPNum5">0</div>
<div class="specialNum cc-num" runat="server" id="divPNum4">0</div>
<div class="specialNum cc-num" runat="server" id="divPNum3">0</div>
<div class="specialNum cc-num" runat="server" id="divPNum2">0</div>
<div class="specialNum cc-num" runat="server" id="divPNum1">0</div>
</div>
<%--<div class="unit">小时</div>--%>
</div>
</div>
<div class="item flex1 flex flexV">
<div class="tit">安全隐患整改单</div>
<div class="content flex flex1">
<div class="t-item">
<div class="specialNum c-num" runat="server" id="divAllRectify">0</div>
<div class="c-txt">总数(个)</div>
</div>
<div class="t-item">
<div class="specialNum c-num" runat="server" id="divCRectify">0</div>
<div class="c-txt">已完成(个)</div>
</div>
<div class="t-item">
<div class="specialNum c-num" runat="server" id="divUCRectify">0</div>
<div class="c-txt">未完成(个)</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="flex1 itemflex">
<div class="bg-item ">
<div class="bw-item-content flex flexV">
<div class="tit-new">
<div>质量一次验收合格率</div>
<div class="tab-wrap-tit tab-wrap-tit-positon">
<div class="tab" data-value="2">
<div class="t-item active">建筑</div>
<div class="spline"></div>
<div class="t-item">安装</div>
</div>
</div>
</div>
<div id='two' style="width: 100%; height: 100%;"></div>
</div>
</div>
</div>
<div class="flex1 itemflex">
<div class="bg-item ">
<div class="bw-item-content flex flexV">
<div class="tit-new">焊接数据统计</div>
<%--<div id='three' style="width: 100%; height: 100%;"></div>--%>
<div class="content-wrap flex1 flex">
<div class="flex1" id='three1' style="width: 100%; height: 100%;"></div>
<div class="spline-mid"></div>
<div class="flex1" id='three2' style="width: 100%; height: 100%;"></div>
</div>
</div>
</div>
</div>
</div>
<!--中间-->
<div class="bw-b flex2 flex flexV">
<div class="flex2 " style="display:flex;flex-direction:column;">
<div class="top flex1">
<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='four1' style="width: 100%; height: 100%;"></div>
</div>
</div>
</div>
</div>
<div class="item flex1 iteml">
<div class="bw-b-bottom">
<div class="bw-b-bottom-up">
<div class="tab-wrap">
<div class="tab" data-value="2">
<div class="t-item ">施工分包商</div>
<div class="spline"></div>
<div class="t-item active">安装单位工程</div>
<div class="spline"></div>
<div class="t-item">建筑单位工程</div>
<div class="spline"></div>
<div class="t-item">专业</div>
</div>
</div>
<div class="bw-item-content">
<div id='two1' style="width: 100%; height: 100%;"></div>
</div>
</div>
</div>
</div>
<div class="item flex1">
<div class="bw-b-bottom">
<div class="bw-b-bottom-up flex flexV">
<div class="tit-one tit-center" style="color:#fff;font-size:12px;">赢得值曲线</div>
<div class="bw-item-content flex1 pdtb0">
<div id='twoJDGL' style="width: 100%; height: 100%;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--右侧-->
<div class="bw-s flex1 flex flexV">
<div class="flex1 itemflex">
<div class="bg-item">
<div class="bw-item-content flex flexV">
<div class="tit-new">进度统计</div>
<div class="content-wrap flex1 flex">
<div id='four' style="width: 100%; height: 100%;"></div>
</div>
</div>
</div>
</div>
<div class="flex1 widthper mbnone itemflex" style="width: 100%;">
<div class="flex1 flex flexV bg-item bg-item-fix pd0">
<div class="tit-new">通知</div>
<div class="swiper-container pdlrb" id='swiper2' style="width: 100%;">
</div>
</div>
</div>
<div class="flex1 widthper mbnone" id="swiper-pre" style="width: 100%;">
<div class="flex1 flex flexV bg-item bg-item-fix pd0">
<div class="tit-new">
<div class="tab-wrap-tit">
<div class="tab" data-value="1">
<div class="t-item active">待办</div>
<div class="spline"><form runat="server"><asp:HiddenField runat="server" ID="hdNoticeId" />
<asp:ImageButton ID="ImageButton1" runat="server" OnClick="imgBtn_Click" Style="height: 1px"
Width="0" /></form></div>
<div class="t-item">预警</div>
</div>
</div>
</div>
<div class="swiper-container pdlrb" id='swiper1' style="width: 100%;">
</div>
</div>
</div>
<%--<div class="flex1 itemflex">
<div class="bg-item">
<div class="bw-item-content flex flexV">
<div class="tit-new">合同统计</div>
<div class="content-wrap tab-content flex1" style="overflow: auto;">
<div class="flex tab-h">
<div class="txt">分包合同</div>
<div class="txt">分包商</div>
<div class="flex1">合同完成百分比</div>
</div>
<div class="flex tab-i">
<div class="txt">合同1</div>
<div class="txt">二化建</div>
<div class="flex1 flex line-wrap">
<div class="line-item">
<div style="width: 50%"></div>
</div>
<div class="per">50%</div>
</div>
</div>
<div class="flex tab-i">
<div class="txt">合同2</div>
<div class="txt">分包商</div>
<div class="flex1 flex line-wrap">
<div class="line-item">
<div style="width: 90%" style="background-color: #00e181;"></div>
</div>
<div class="per">90%</div>
</div>
</div>
<div class="flex tab-i">
<div class="txt">合同3</div>
<div class="txt">分包商</div>
<div class="flex1 flex line-wrap">
<div class="line-item">
<div style="width: 90%" style="background-color: #ff505b;"></div>
</div>
<div class="per">90%</div>
</div>
</div>
</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 line(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: false
},
tooltip: {
formatter: '{a}<br />{b}: {c}%'
},
legend: {
show: true,
textStyle: {
color: '#fff'
},
left: 0
},
xAxis: {
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
},
axisLabel: {
show: true,
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)'
},
formatter: '{value} %'
}
},
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(200,201,10, 1)'
},
backgroundColor: 'rgba(0,162,233, 0.01)',
textStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
}
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option)
}
var two =<%=TwoJDGL %>;
var xArr1 = two.categories
var data1 = [ {
name: '计划值',
type: 'bar',
//smooth: true,
data: two.series[0].data,
lineStyle: {
//color: 'rgba(200,201,10, 1)'
}
},{
name: '实际值',
type: 'bar',
//smooth: true,
data: two.series[2].data,
},{
name: '累计计划值',
type: 'line',
//smooth: true,
data: two.series[1].data,
lineStyle: {
//color: 'rgba(200,201,10, 1)'
}
},{
name: '累计实际值',
type: 'line',
//smooth: true,
data: two.series[3].data,
}]
line('twoJDGL', xArr1, data1)
</script>
<script type="text/javascript">
function category_Two(id, xArr, data,num) {
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById(id))
// 指定图表的配置项和数据
var option = {
title: {
// left:'center',
text: '质量问题统计',
textStyle: {
color: '#fff',
fontWeight: 'normal',
fontSize: 12
},
show: true
},
tooltip: {},
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,
textStyle: {
color: 'rgba(255, 255, 255, 0.8)'
},
interval: 0,
formatter:function(value)
{
var ret = "";//拼接加\n返回的类目项
var maxLength = num;//每项显示文字个数
var valLength = value.length;//X轴类目项的文字个数
var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
if (rowN > 1)//如果类目项的文字大于maxLength,
{
for (var i = 0; i < rowN; i++) {
var temp = "";//每次截取的字符串
var start = i * maxLength;//开始截取的位置
var end = start + maxLength;//结束截取的位置
//这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
//temp = value.substring(start, end) + "\n";
temp = value.substring(start, end) + (i == rowN -1 ? "" : "\n");
ret += temp; //凭借最终的字符串
}
return ret;
}
else {
return value;
}
}
},
type: 'category',
data: xArr,
boundaryGap: [0, 0.01],
},
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: '20%',
left: '0%',
right: '0%',
bottom: '0%',
containLabel: true,
backgroundColor: 'rgba(0,162,233, 0.01)',
// borderColor: 'rgba(0,162,233, 1)'
},
backgroundColor: 'rgba(0,162,233, 0.01)',
textStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
}
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option)
}
var two2 =<%=Two2 %>;
//var xArr = ["分包1", "分包2", "分包3", "分包4", "分包5", "分包6", "分包7", "分包8", "分包9"]
var xArr = two2.categories
var data = [
{
name: '未整改',
type: 'bar',
stack: '总量',
barWidth: 40,
//data: [3, 5, 8, 10, 6, 4, 5, 9, 12],
data: two2.series[0].data,
itemStyle: { normal: { color: 'rgba(162,63,21, 1)' } }
},
{
name: '已整改',
type: 'bar',
stack: '总量',
barWidth: 40,
//data: [2, 7, 5, 9, 12, 9, 2, 8, 10],
data: two2.series[1].data,
itemStyle: { normal: { color: 'rgba(206,143,135,1)' } }
}
]
category_Two('two1', xArr, data,two2.xFontNum)
</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,
itemStyle: { normal: { color: '#88cc00' } }
}, {
name: '全部',
type: 'bar',
barWidth: 20,
data: four1.series[1].data,
itemStyle: { normal: { color: '#AE4B23' } }
}];
category_Four('four1', xArr, series)
</script>
<script type="text/javascript">
function category(id, xArr, series) {
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById(id))
// 指定图表的配置项和数据
var option = {
title: {
// left:'center',
text: '',
textStyle: {
color: '#fff',
fontWeight: 'normal',
fontSize: 16
},
show: false
},
tooltip: {},
legend: {
left: '3%',
show: false,
selectedMode: false,
textStyle: {//图例文字的样式
color: '#ffffff'
}
},
xAxis: {
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
},
axisLabel: {
show: true,
interval: 0,
rotate: 50,
textStyle: {
color: 'rgba(255, 255, 255, 0.8)',
fontSize: '8'
},
formatter: function (params) {
var newParamsName = ''
var paramsNameNumber = params.length
var provideNumber = 4
var rowNumber = Math.ceil(paramsNameNumber / provideNumber)
for (let row = 0; row < rowNumber; row++) {
newParamsName +=
params.substring(
row * provideNumber,
(row + 1) * provideNumber
) + '\n'
}
return newParamsName
}
},
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)'
}
},
//设置网格线颜色
splitLine: {
show: true,
lineStyle:{
color: ['#182067'],
width: 1,
type: 'solid'
}
   }
},
series: series,
grid: {
top: '12%',
left: '10',
right: '10',
bottom: '-15',
containLabel: true,
backgroundColor: 'rgba(0,162,233, 0.01)',
// borderColor: 'rgba(0,162,233, 1)'
},
backgroundColor: 'rgba(0,162,233, 0.01)',
textStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
}
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option)
}
var two =<%=TwoCQMS %>;
var xArr = two.categories
var data = [12, 5, 28, 43, 22, 11, 40, 21, 9]
var data1 = [21, 9, 12, 15, 8, 43, 17, 11, 22]
var series = [{
name: '质量一次验收合格率',
type: 'bar',
barWidth: 15,
data: two.series[0].data,
itemStyle: { normal: { color: '#02cffc' } }
}];
category('two', xArr, series)
</script>
<script type="text/javascript">
function line(id, xArr, data) {
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById(id))
// 指定图表的配置项和数据
var option = {
title: {
left: 'center',
text: ' ',
textStyle: {
color: '#fff',
fontSize: 14,
fontWeight: '300'
},
show: false
},
tooltip: {},
legend: {
show: false
},
xAxis: {
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
},
axisLabel: {
show: true,
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)'
}
},
//设置网格线颜色
splitLine: {
show: true,
lineStyle:{
color: ['#182067'],
width: 1,
type: 'solid'
}
   }
},
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(200,201,10, 1)'
},
backgroundColor: 'rgba(0,162,233, 0.01)',
textStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
}
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option)
}
var xArr = ["11.07", "11.08", "11.09", "11.10", "11.11", "11.12", "11.13", "11.14", "11.15", "11.16", "11.17", "11.18"]
var data = [{
name: '项目安全人工时',
type: 'line',
//smooth: true,
data: [3, 5, 2, 3, 4, 2, 9, 8, 4, 7, 6, 1],
lineStyle: {
//color: 'rgba(200,201,10, 1)'
}
}, {
name: '项目安全人工时1',
type: 'line',
//smooth: true,
data: [6, 5, 3, 3, 4, 1, 3, 2, 4, 7, 6, 1]
}, {
name: '项目安全人工时2',
type: 'line',
//smooth: true,
data: [5, 4, 2, 3, 8, 2, 9, 2, 4, 1, 6, 4]
}]
//line('three', xArr, data)
var four =<%=Four %>;
var xArr1 = four.categories
var data1 = [{
name: '累计计划值',
type: 'line',
//smooth: true,
data: four.series[1].data,
lineStyle: {
//color: 'rgba(200,201,10, 1)'
}
}, {
name: '累计实际值',
type: 'line',
//smooth: true,
data: four.series[3].data,
lineStyle: {
color: 'rgba(200,201,10, 1)'
}
}]
line('four', xArr1, data1)
</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: {
fontWeight: 'normal',
fontSize: 16,
color: '#fff'
},
show: true
},
tooltip: {},
legend: {
//data: ['销量'],
show: false
},
xAxis: {
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
},
axisLabel: {
show: true,
textStyle: {
color: 'rgba(255, 255, 255, 0.8)'
}
},
type: 'category',
data: xArr,
boundaryGap: [0, 0.01],
},
yAxis: {
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
},
axisLabel: {
show: true,
textStyle: {
color: 'rgba(255, 255, 255, 0.8)'
},
formatter: function (value, index) {
return (value * 100) + "%";
}
}
},
series: data,
grid: {
top: '15%',
left: '0%',
right: '0%',
bottom: '0%',
containLabel: true,
backgroundColor: 'rgba(0,162,233, 0.01)',
// borderColor: 'rgba(0,162,233, 1)'
},
backgroundColor: 'rgba(0,162,233, 0.01)',
textStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
}
// 使用刚指定的配置项和数据显示图表。
myChart.clear();
myChart.setOption(option)
}
var xArr = ["分包一", "分包二", "分包三"]
var data = [
{
name: '累计计划值',
type: 'line',
smooth: true,
data: [0.23, 0.58, 1],
//itemStyle: { normal: { color: 'rgba(200,201,10, 1)' } }
},
{
name: '累计实际值',
type: 'line',
smooth: true,
data: [0.2, 0.48, 0.83],
//itemStyle: { normal: { color: 'rgba(200,201,10, 1)' } }
}
]
//category_Two('two1', xArr, data)
</script>
<script type="text/javascript">
var swiper_One = '<%=swiper_One %>'
var swiper_Two = '<%=swiper_Two %>'
var todoNum = '<%=TodoNum %>'
var warnNum = '<%=WarnNum %>'
$(".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')
if (value == 0) {
$(".js-item-1").hide()
if (index == 0) {
$(".js-item-1").eq(0).show()
} else if (index == 2) {
$(".js-item-1").eq(1).show()
} else if (index == 4) {
$(".js-item-1").eq(2).show()
}
} else if (value == 1) {
if (index == 0) {
$("#swiper1").html(swiper_One)
if (todoNum >= slidesNum) {
mySwiper = new Swiper('#swiper1', {
autoplay: 4000,//可选选项,自动滑动
direction: 'vertical',
loop: true,
slidesPerView: slidesNum
})
}
else {
mySwiper = new Swiper('#swiper1', {
//autoplay: 4000,//可选选项,自动滑动
direction: 'vertical',
loop: true,
slidesPerView: slidesNum
})
}
} else if (index == 2) {
if (warnNum >= slidesNum) {
$("#swiper1").html(swiper_Two)
mySwiper = new Swiper('#swiper1', {
autoplay: 4000,//可选选项,自动滑动
direction: 'vertical',
loop: true,
slidesPerView: slidesNum
})
}
else {
$("#swiper1").html(swiper_Two)
mySwiper = new Swiper('#swiper1', {
//autoplay: 4000,//可选选项,自动滑动
direction: 'vertical',
loop: true,
slidesPerView: slidesNum
})
}
}
}
else if (value == 2) {
var two =<%=Two %>;
var two2 =<%=Two2 %>;
var xArr = two.categories
var series = [{
name: '质量一次验收合格率',
type: 'bar',
barWidth: 15,
data: two.series[0].data,
itemStyle: { normal: { color: 'rgba(43,155,176,1)' } }
}];
if (index == 2) {
xArr = two2.categories
data = [10, 80]
series = [{
name: '质量一次验收合格率',
type: 'bar',
barWidth: 15,
data: two2.series[0].data,
itemStyle: { normal: { color: 'rgba(43,155,176,1)' } }
}];
}
category('two', xArr, series)
}
else if (value == 3) {
if (index == 0) {
var dataX = ['质量验收一次合格率', '施工资料同步率']
var data = [20, 60]
var dataT = [100, 100]
//echartsBarInit('three', "质量验收", dataX, data, dataT);
} else if (index == 2) {
data = [{ value: 35, name: '质量不合格' },
{ value: 65, name: '质量缺陷' }];
//pie('three', data, "质量问题")
}
}
else if (value == 4) {
if (index == 0) {
pieTxt('four', "安全人工时", "1000安全人工时")
} else if (index == 2) {
data = [{ value: 35, name: '质量不合格' },
{ value: 65, name: '质量缺陷' }];
pie('four', data, "安全隐患")
}
}
})
$("#swiper1").on('click', 'li', function () {
var $this = $(this)
var data = $this.attr("data-id")
if (data != "") {
window.open(data);
top.window.location.reload();
}
})
$("#swiper2").on('click', 'li', function () {
var $this = $(this)
var data = $this.attr("data-id")
var noticeId = $this.attr("notice-id")
if (data != "") {
document.getElementById("hdNoticeId").value = noticeId;
document.getElementById("imgBtn").click();
window.open(data);
top.window.location.reload();
}
})
</script>
<script>
var dataX = ['质量验收一次合格率', '施工资料同步率']
var data = [20, 60]
var dataT = [100, 100]
//echartsBarInit('three1', "质量验收", dataX, data, dataT);
function echartsBarInit(id, title, dataX, data, dataT) {
var myChart = echarts.init(document.getElementById(id)) // 初始化echarts实例
myChart.clear();
myChart.setOption(// 通过setOption来生成柱状图
{
title: {
// left:'center',
text: title,
textStyle: {
color: '#fff',
fontSize: 16,
fontWeight: 'normal',
},
show: true
},
grid: { // 直角坐标系内绘图网格
left: '0', //grid 组件离容器左侧的距离,
//left的值可以是80这样具体像素值
//也可以是'80%'这样相对于容器高度的百分比
top: '25',
right: '0',
bottom: '0',
containLabel: true //gid区域是否包含坐标轴的刻度标签。为true的时候
// left/right/top/bottom/width/height决定的是包括了坐标轴标签在内的
//所有内容所形成的矩形的位置.常用于【防止标签溢出】的场景
},
xAxis: { //直角坐标系grid中的x轴,
//一般情况下单个grid组件最多只能放上下两个x轴,
//多于两个x轴需要通过配置offset属性防止同个位置多个x轴的重叠。
type: 'value',//坐标轴类型,分别有:
//'value'-数值轴;'category'-类目轴;
//'time'-时间轴;'log'-对数轴
splitLine: { show: false },//坐标轴在 grid 区域中的分隔线
axisLabel: { show: false },//坐标轴刻度标签
axisTick: { show: false },//坐标轴刻度
axisLine: { show: false },//坐标轴轴线
},
yAxis: {
type: 'category',
axisTick: { show: false },
axisLine: { show: false },
axisLabel: {
color: '#fff',
// fontSize: 12
},
data: dataX//类目数据在类目轴type: 'category')中有效。
//如果没有设置 type但是设置了axis.data,则认为type 是 'category'。
},
series: [//系列列表。每个系列通过 type 决定自己的图表类型
{
name: '%',//系列名称
type: 'bar',//柱状、条形图
barWidth: 19,//柱条的宽度,默认自适应
data: data,//系列中数据内容数组
label: { //图形上的文本标签
show: true,
position: 'right',//标签的位置
offset: [0, -20], //标签文字的偏移此处表示向上偏移40
formatter: '{c}{a}',//标签内容格式器 {a}-系列名,{b}-数据名,{c}-数据值
color: '#fff',//标签字体颜色
fontSize: 12 //标签字号
},
itemStyle: {//图形样式
normal: { //normal 图形在默认状态下的样式;
//emphasis图形在高亮状态下的样式
barBorderRadius: 10,//柱条圆角半径,单位px.
//此处统一设置4个角的圆角大小;
//也可以分开设置[10,10,10,10]顺时针左上、右上、右下、左下
color: new echarts.graphic.LinearGradient(
0, 0, 1, 0,
[{
offset: 0,
color: '#22B6ED'
},
{
offset: 1,
color: '#3FE279'
}
]
)
}
},
zlevel: 1//柱状图所有图形的 zlevel 值,
//zlevel 大的 Canvas 会放在 zlevel 小的 Canvas 的上面
},
{
name: '进度条背景',
type: 'bar',
barGap: '-100%',//不同系列的柱间距离,为百分比。
// 在同一坐标系上,此属性会被多个 'bar' 系列共享。
// 此属性应设置于此坐标系中最后一个 'bar' 系列上才会生效,
//并且是对此坐标系中所有 'bar' 系列生效。
barWidth: 19,
data: dataT,
color: '#151B87',//柱条颜色
itemStyle: {
normal: {
barBorderRadius: 10
}
}
}
]
}
)
}
</script>
<script type="text/javascript">
var slidesNum = 5
var mySwiper = null
var todoNum = '<%=TodoNum %>'
$(document).ready(function () {
var height = $("#swiper-pre").height() - 29
$("#swiper1").css("height", (height) + 'px')
slidesNum = Math.floor((height) / 24)
$("#swiper1").html(swiper_One)
if (todoNum >= slidesNum) {
mySwiper = new Swiper('#swiper1', {
autoplay: 4000,//可选选项,自动滑动
direction: 'vertical',
loop: true,
slidesPerView: slidesNum
})
}
else {
mySwiper = new Swiper('#swiper1', {
//autoplay: 4000,//可选选项,自动滑动
direction: 'vertical',
loop: true,
slidesPerView: slidesNum
})
}
})
</script>
<script type="text/javascript">
var swiper_Three = '<%=swiper_Three %>'
var height = $("#swiper-pre").height() - 29
$("#swiper2").css("height", (height) + 'px')
slidesNum = Math.floor((height) / 24)
$("#swiper2").html(swiper_Three)
mySwiper = new Swiper('#swiper2', {
autoplay: 4000,//可选选项,自动滑动
direction: 'vertical',
loop: true,
slidesPerView: slidesNum
})
</script>
</html>