1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069 |
- <%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8" %>
- <%@ page isELIgnored="false" %>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
- <title>工作台</title>
- <jsp:include page="../common/common-meta-include.jsp"></jsp:include>
- <jsp:include page="../common/common-js-include.jsp"></jsp:include>
- <jsp:include page="../common/common-css-include.jsp"></jsp:include>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.3/echarts.min.js"
- integrity="sha512-EmNxF3E6bM0Xg1zvmkeYD3HDBeGxtsG92IxFt1myNZhXdCav9MzvuH/zNMBU1DmIPN6njrhX1VTbqdJxQ2wHDg=="
- crossorigin="anonymous" referrerpolicy="no-referrer"></script>
- <style type="text/css">
- .tips {
- position: absolute;
- display: contents;
- float: right;
- }
- .tips a {
- color: blue;
- }
- body {
- background: #ffffff;
- }
- .layui-table-cell{
- height: 42px !important;
- line-height: 42px;
- }
- </style>
- </head>
- <body>
- <div class="layui-layout layui-layout-admin zr_gzt" >
- <!-- 内容区域 -->
- <div class="zheren_taizhang" id="app">
- <%--政府端--%>
- <div class="top_bar" v-if="kingUnit=='1'">
- <div class="left">
- <%-- <div class="layui-card active" @click="initChart(this)">--%>
- <%-- <div class="layui-card-header"></div>--%>
- <%-- <div class="layui-card-body" style="padding-top: 15px;">--%>
- <%-- <img src="${WebSite.asset }/css/images/u394.svg" /> 工作台账--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- <div class="layui-card" @click="getTotalTodo(this)">--%>
- <%-- <div class="layui-card-body">--%>
- <%-- <div class="img_num">--%>
- <%-- <img src="${WebSite.asset }/css/images/workPlat/backlog.png"/>--%>
- <%-- <span class="num">${numData.num_1}</span>--%>
- <%-- </div>--%>
- <%-- <div class="word">--%>
- <%-- 待办事项--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- <div class="line"></div>--%>
- <%-- <div class="layui-card" @click="getTotalDo(this)">
- <div class="layui-card-header"></div>
- <div class="layui-card-body" style="padding-top: 15px;">
- <img src="${WebSite.asset }/css/images/u138.svg" /> 已办事项
- </div>
- </div> --%>
- <div class="layui-card" @click="toYQ()">
- <div class="layui-card-body">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/remind.png"/>
- <%-- <span class="num">${numData.num_2}</span>--%>
- <span class="num">${warningNum}</span>
- </div>
- <div class="word">
- <%-- 项目逾期竣工--%>
- 预警提醒
- </div>
- </div>
- </div>
- <%-- <div class="line"></div>--%>
- <%-- <div class="layui-card" @click="openCt()">--%>
- <%-- <div class="layui-card-body">--%>
- <%-- <div class="img_num">--%>
- <%-- <img src="${WebSite.asset }/css/images/workPlat/remind.png"/>--%>
- <%-- <span class="num">${openNum}</span>--%>
- <%-- </div>--%>
- <%-- <div class="word">--%>
- <%-- 开工红黄灯预警--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <div class="line"></div>
- <div class="layui-card" @click="offsetCt()">
- <div class="layui-card-body">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/remind.png"/>
- <span class="num">${exceedNum}</span>
- </div>
- <div class="word">
- <%-- 偏离度红黄灯--%>
- 进度红灯
- </div>
- </div>
- </div>
- <%-- <div class="line" style="display: none"></div>--%>
- <%-- <div class="layui-card" @click="toItems(7)" style="display: none">--%>
- <%-- <div class="layui-card-body">--%>
- <%-- <div class="img_num">--%>
- <%-- <img src="${WebSite.asset }/css/images/workPlat/rgb.png"/>--%>
- <%-- </div>--%>
- <%-- <div class="word">--%>
- <%-- 红黄绿灯--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- <div class="line"></div>--%>
- <%-- <div class="layui-card">--%>
- <%-- <div class="layui-card-body" @click="toItems(6)">--%>
- <%-- <div class="img_num">--%>
- <%-- <img src="${WebSite.asset }/css/images/workPlat/wisdom.png"/>--%>
- <%-- </div>--%>
- <%-- <div class="word">--%>
- <%-- 智慧工地--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- <div class="layui-card">--%>
- <%-- <div class="layui-card-body" @click="toItems(5)">--%>
- <%-- <div class="img_num">--%>
- <%-- <img src="${WebSite.asset }/css/images/workPlat/flow.png"/>--%>
- <%-- </div>--%>
- <%-- <div class="word">--%>
- <%-- 办事流程--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- <div class="line" style="display: none"></div>--%>
- <%-- <div class="layui-card" style="margin-bottom: 17px;display: none" >--%>
- <%-- <div class="layui-card-body" @click="toItems(4)">--%>
- <%-- <div class="img_num">--%>
- <%-- <img src="${WebSite.asset }/css/images/workPlat/project.png"/>--%>
- <%-- </div>--%>
- <%-- <div class="word">--%>
- <%-- 包联项目--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- </div>
- <%-- <div class="tips">--%>
- <%-- <span>提示:</span>--%>
- <%-- <ul>--%>
- <%-- <li>1.如果是新项目申报,请在<<a href="${domain }/subject/subInfo/report">项目信息</a>>里,点击新增进行项目申报</li>--%>
- <%-- <li>2.如果需要查询项目基本信息和进度等,请到<<a href="${domain }/subject/subInfo/projTz">项目信息台帐</a>>页面查询</li>--%>
- <%-- <li>3.进入施工阶段后,需要编制计划,项目开工申报,竣工申报,项目变更,请到<<a href="${domain }/subject/process/manage">项目施工阶段管理</a>>页面</li>--%>
- <%-- </ul>--%>
- <%-- </div>--%>
- <div class="right">
- <div class="layui-card bgc">
- <div class="layui-card-body" @click="toItems(1)" style="padding-top: 0;">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/week.png"/>
- </div>
- <div class="word">
- 周报查询
- </div>
- </div>
- </div>
- <div class="layui-card bgc">
- <div class="layui-card-body" @click="toItems(2)" style="padding-top: 0;">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/month.png"/>
- </div>
- <div class="word">
- 月报查询
- </div>
- </div>
- </div>
- <div class="layui-card bgc" style="margin-bottom: 27px;padding-top: 0;">
- <div class="layui-card-body" @click="toItems(3)">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/question.png"/>
- </div>
- <div class="word">
- 问题推送处理
- </div>
- </div>
- </div>
- </div>
- <%-- <div class="right" @click="reportEdit()">--%>
- <%-- <span class="layui-badge">${numData.num_3}</span>--%>
- <%-- <img src="${WebSite.asset }/css/images/u397.svg" /> --%>
- <%-- <span class="txt">写周报</span>--%>
- <%-- </div>--%>
- </div>
- <%--企业端--%>
- <div class="top_bar" v-if="kingUnit=='2'">
- <div class="left" style="width: 52%">
- <%-- <div class="layui-card active" @click="initChart(this)">--%>
- <%-- <div class="layui-card-header"></div>--%>
- <%-- <div class="layui-card-body" style="padding-top: 15px;">--%>
- <%-- <img src="${WebSite.asset }/css/images/u394.svg" /> 工作台账--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <div class="layui-card" @click="getTotalTodo(this)">
- <div class="layui-card-body">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/backlog.png"/>
- <span class="num">${numData.num_1}</span>
- </div>
- <div class="word">
- 待办事项
- </div>
- </div>
- </div>
- <div class="line"></div>
- <%-- <div class="layui-card" @click="getTotalDo(this)">
- <div class="layui-card-header"></div>
- <div class="layui-card-body" style="padding-top: 15px;">
- <img src="${WebSite.asset }/css/images/u138.svg" /> 已办事项
- </div>
- </div> --%>
- <div class="layui-card" @click="toYQ()">
- <div class="layui-card-body">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/remind.png"/>
- <span class="num">${numData.num_2}</span>
- </div>
- <div class="word">
- <%-- 预警提醒--%>
- <%-- 项目逾期竣工--%>
- 预警提醒
- </div>
- </div>
- </div>
- <%-- <div class="line"></div>--%>
- <%-- <div class="layui-card" @click="openCt()">--%>
- <%-- <div class="layui-card-body">--%>
- <%-- <div class="img_num">--%>
- <%-- <img src="${WebSite.asset }/css/images/workPlat/remind.png"/>--%>
- <%-- <span class="num">${openNum}</span>--%>
- <%-- </div>--%>
- <%-- <div class="word">--%>
- <%-- 开工红黄灯预警--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <div class="line"></div>
- <div class="layui-card" @click="offsetCt()">
- <div class="layui-card-body">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/remind.png"/>
- <span class="num">${offsetNum}</span>
- </div>
- <div class="word">
- 偏离度红黄灯
- </div>
- </div>
- </div>
- <div class="line"></div>
- <div class="layui-card">
- <div class="layui-card-body" @click="reportEdit()">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/week_com.png"/>
- </div>
- <div class="word">
- 写周报
- </div>
- </div>
- </div>
- <div class="layui-card">
- <%-- <div class="layui-card-header"></div>--%>
- <div class="layui-card-body" style="margin-bottom: 17px;" @click="monthReportEdit()">
- <div class="img_num">
- <img src="${WebSite.asset }/css/images/workPlat/month_com.png"/>
- </div>
- <div class="word">
- 写月报
- </div>
- </div>
- </div>
- </div>
- <%-- <div class="tips">--%>
- <%-- <span>快捷提示</span>--%>
- <%-- <ul>--%>
- <%-- <li>新项目申报,点击<a href="${domain }/subject/subInfo/report">项目信息</a>申报,点击新增进行项目申报;查询项目基本信息和进度等,点击<a--%>
- <%-- href="${domain }/subject/subInfo/projTz">项目信息台帐</a>;施工阶段,编制计划,开工申报,竣工申报,项目变更,点击<a--%>
- <%-- href="${domain }/subject/process/manage">项目施工阶段管理</a>--%>
- <%-- </li>--%>
- <%-- </ul>--%>
- <%-- </div>--%>
- <div class="tips">
- <span>快捷提示</span>
- <ul>
- <li>新项目申报,1.点击<a href="${domain }/subject/subInfo/report">【项目信息申报】</a>,然后点击新增进行项目申报;2.点击<a @click="add()">【新增项目】</a>直接进行申报;
- <%-- 查询项目基本信息和进度等,点击<a--%>
- <%-- href="${domain }/subject/subInfo/projTz">项目信息台帐</a>;施工阶段,编制计划,开工申报,竣工申报,项目变更,点击<a--%>
- <%-- href="${domain }/subject/process/manage">项目施工阶段管理</a>--%>
- </li>
- </ul>
- </div>
- </div>
- <div class="table_box" id="chart" style="box-shadow: 0 2px 13px transparent;padding: 0;">
- <section class="section1">
- <div class="box1">
- <div class="build-rate-charts" id="charts-year-start"></div>
- <%-- <div class="num_box">--%>
- <%-- <span class="num" id="year"></span>--%>
- <%-- </div>--%>
- <div class="plan_number">
- <div class="nummber_top" style="border-bottom: 1px solid #EDEDED;display: flex;flex-direction:column;align-items:flex-start;">
- <div>
- <span class="title">项目总数</span>
- <span class="num" id="totalNum"></span>
- </div>
- <div>
- <span class="title">储备项目数</span>
- <span class="num" id="cbNum"></span>
- </div>
- <div>
- <span class="title">新建项目数</span>
- <span class="num" id="xjNum"></span>
- </div>
- <div>
- <span class="title">在建项目数</span>
- <span class="num" id="zjNum"></span>
- </div>
- <div>
- <span class="title">投产项目数</span>
- <span class="num" id="tcNum"></span>
- </div>
- <%-- <div class="num_box" style="border-right: 1px solid #EDEDED;">--%>
- <%-- <span class="num_unit">--%>
- <%-- <span class="num" id="proTotalNum"></span>--%>
- <%-- <span style="font-size: 16px;color: #111111">个</span>--%>
- <%-- </span>--%>
- <%-- <span class="title">项目总数</span>--%>
- <%-- </div>--%>
- <%-- <div class="num_box">--%>
- <%-- <span class="num_unit">--%>
- <%-- <span class="num" id="proDoingNum"></span>--%>
- <%-- <span style="font-size: 16px;color: #111111">个</span>--%>
- <%-- </span>--%>
- <%-- <span class="title">已开工</span>--%>
- <%-- </div>--%>
- </div>
- <%-- <div class="nummber_top">--%>
- <%-- <div class="num_box" style="border-right: 1px solid #EDEDED;">--%>
- <%-- <span class="num_unit">--%>
- <%-- <span class="num" id="proNoStartNum"></span>--%>
- <%-- <span style="font-size: 16px;color: #111111">个</span>--%>
- <%-- </span>--%>
- <%-- <span class="title">未开工</span>--%>
- <%-- </div>--%>
- <%-- <!-- <div class="num_box">--%>
- <%-- <span class="num" style="color: #fc1cf4;" id="yearPlanNum"></span>--%>
- <%-- 年度计划完成--%>
- <%-- </div> -->--%>
- <%-- <div class="num_box">--%>
- <%-- <span class="num_unit">--%>
- <%-- <span class="num" id="proEndNum"></span>--%>
- <%-- <span style="font-size: 16px;color: #111111">个</span>--%>
- <%-- </span>--%>
- <%-- <span class="title">已竣工</span>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- </div>
- </div>
- <div class="box2">
- <div class="nummber_top" style="border-bottom: 1px solid #EDEDED;display: flex;flex-direction:column;align-items:flex-start;justify-content: space-evenly;">
- <div>
- <span class="title">绿灯项目数</span>
- <span class="num" id="greenNum">${notExceedNum}</span>
- </div>
- <div>
- <span class="title">黄灯项目数</span>
- <span class="num" id="yellowNum">${withinNum}</span>
- </div>
- <div>
- <span class="title">红灯项目数</span>
- <span class="num" id="redNum">${outsideNum}</span>
- </div>
- </div>
- <%-- <div class="monthly-charts" id="charts-year-done"></div>--%>
- <%-- <div class="plan_number">--%>
- <%-- <div class="nummber_top" style="border-bottom: 1px solid #EDEDED;">--%>
- <%-- <div class="num_box" style="width: 100%">--%>
- <%-- <span class="num_unit">--%>
- <%-- <span class="num" id="proPlanAmt"></span>--%>
- <%-- <span style="font-size: 16px;color: #111111">亿</span>--%>
- <%-- </span>--%>
- <%-- <span class="title">年度目标总投资</span>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- <div class="nummber_top">--%>
- <%-- <div class="num_box" style="border-right: 1px solid #EDEDED;width: 50%;">--%>
- <%-- <span class="num_unit">--%>
- <%-- <span class="num" id="proActualTotal"></span>--%>
- <%-- <span style="font-size: 16px;color: #111111">亿</span>--%>
- <%-- </span>--%>
- <%-- <span class="title">年度计划投资</span>--%>
- <%-- </div>--%>
- <%-- <div class="num_box" style="border-right: 1px solid #EDEDED;width: 50%;">--%>
- <%-- <span class="num_unit">--%>
- <%-- <span class="num" id="proActualTotalGt"></span>--%>
- <%-- <span style="font-size: 16px;color: #111111">亿</span>--%>
- <%-- </span>--%>
- <%-- <span class="title">年度固投金额</span>--%>
- <%-- </div>--%>
- <%-- <!-- <div class="num_box">--%>
- <%-- <span class="num" style="color: #fc1cf4;" id="yearPlanNum"></span>--%>
- <%-- 年度计划完成--%>
- <%-- </div> -->--%>
- <%-- <div class="num_box" style="width: 50%;">--%>
- <%-- <span class="num_unit">--%>
- <%-- <span class="num" id="proActualAmt"></span>--%>
- <%-- <span style="font-size: 16px;color: #111111">亿</span>--%>
- <%-- </span>--%>
- <%-- <span class="title">年度实际投资</span>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- </div>
- <%-- <div class="box3">--%>
- <%-- <div class="txt">整体进度</div>--%>
- <%-- <div class="layui-progress" lay-showPercent="true" lay-filter="demo">--%>
- <%-- <div class="layui-progress-bar" id="propercent"></div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- </section>
- <section class="section2">
- <div class="layui-card" style="box-shadow: 0px 0px 0px 0px transparent;">
- <%-- <div class="layui-card-header" style="border:none;display: flex;">--%>
- <%-- <span :class="{activeSpan:checkChart==1}" @click="checkChartFun(1)">项目数量占比</span>--%>
- <%-- <span :class="{activeSpan:checkChart==2}" @click="checkChartFun(2)" style="margin-left: 20px;">项目投资占比</span>--%>
- <%-- </div>--%>
- <div class="layui-card-body" style="border:none">
- <div class="chart" id="charts1" v-if="checkChart==1"></div>
- <%-- <div class="chart" id="charts2" v-if="checkChart==2"></div>--%>
- </div>
- </div>
- <%-- <div class="layui-card" style="box-shadow: 0px 0px 0px 0px transparent;">--%>
- <%-- <div class="layui-card-header" style="border:none">--%>
- <%-- <span class="activeSpan">投资情况月度分析</span>--%>
- <%-- </div>--%>
- <%-- <div class="layui-card-body" style="border:none">--%>
- <%-- <div class="chart" id="charts3"></div>--%>
- <%-- </div>--%>
- <%-- </div>--%>
- </section>
- </div>
- </div>
- <div id="toDo">
- </div>
- <%-- <c:if test="${overAmount.isOver != '0' || overAmount.willOver != '0'}">--%>
- <%-- <ul class="layui-fixbar" id="fixedBlock" style="right: 10px; bottom: 0px;width:200px;height:90px;display:none;">--%>
- <%-- <li class="" style="width:200px;height:26px;line-height:26px;font-size:14px;background-color:#3362c9;color:#fafafa;border-radius: 7px 7px 0px 0px;">--%>
- <%-- <span style="position: relative;left: -50px;bottom:0;">逾期提醒</span>--%>
- <%-- </li>--%>
- <%-- <li class="" style="width:200px;height:32px;line-height:32px;background-color:#fff;color:#f69401;font-size:14px;" @click="loadOverDue(0)">--%>
- <%-- <i class="layui-icon layui-icon-radio" style="position: relative;left: -25px;"></i><span style="position: relative;left: -15px;">即将逾期:</span><i style="position:relative;left:20px;"><span>${overAmount.willOver}</span><a href="javascript:void(0);" style="color:#5b64d7;">></a></i>--%>
- <%-- </li>--%>
- <%-- <li class="" style="width:200px;height:32px;line-height:32px;background-color:#fff;color:#ff2222;border-radius: 0px 0px 7px 7px;font-size:14px;" @click="loadOverDue(1)">--%>
- <%-- <i class="layui-icon icon-diy" style="position: relative;left: -28px;"></i><span style="position: relative;left: -18px;">已逾期:</span><i style="position:relative;left:28px;"><span>${overAmount.isOver}</span><a href="javascript:void(0);" style="color:#5b64d7;">></a></i>--%>
- <%-- </li>--%>
- <%-- </ul>--%>
- <%-- </c:if>--%>
- </div>
- </body>
- <script type="text/javascript">
- new Vue({
- el: '#app',
- data: {
- checkChart: 1,
- kingUnit: "${kingUnit}",
- },
- mounted() {
- this.init();
- },
- methods: {
- init: function () {
- this.initChartsYearStart();
- // this.initChartsYearDone();
- this.initChart();
- },
- initChart: function (target) {
- $("#year").text(new Date().getFullYear() + "年度")
- $("#chart").show();
- $("#toDo").hide();
- $("#fixedBlock").show();
- this.changeTab(target);
- this.getStatisData();
- },
- loadOverDue: function (status) {
- window.location.href = App.getUrl("/overdue/view?overStatus=" + status);
- },
- getStatisData: function () {
- var self = this;
- var data = {};
- App.postJson("/api/workBench/getStatis", {}, function (res) {
- if (res.success) {
- data.chart1Data = {
- // 统计数据
- cbNum: res.data.cbNum,
- xjNum: res.data.xjNum,
- zjNum: res.data.zjNum,
- tcNum: res.data.tcNum
- // nProNum: res.data.zhData.num_X1_total,
- // nProNumRate: res.data.zhData.num_X1_zb,
- // xProNum: res.data.zhData.num_X2_total,
- // xProNumRate: res.data.zhData.num_X2_zb,
- // cProNum: res.data.zhData.num_X3_total,
- // cProNumRate: res.data.zhData.num_X3_zb,
- };
- data.chart2Data = {
- nProMon: res.data.zhData.amt_X1_total,
- nProMonRate: res.data.zhData.amt_X1_zb,
- xProMon: res.data.zhData.amt_X2_total,
- xProMonRate: res.data.zhData.amt_X2_zb,
- cProMon: res.data.zhData.amt_X3_total,
- cProMonRate: res.data.zhData.amt_X3_zb,
- };
- data.chart3Data = res.data.monthAnalys;
- self.chartsAmtRate=res.data.zhData.num_bl || '0.00%';
- res.data.zhData.amt_jh=(res.data.zhData.amt_jh/10000).toFixed(2);
- res.data.zhData.amt_total=(res.data.zhData.amt_total/10000).toFixed(2);
- res.data.zhData.amt_sj=(res.data.zhData.amt_sj/10000).toFixed(2);
- res.data.zhData.amt_gt=(res.data.zhData.amt_gt/10000).toFixed(2);
- $("#proTotalNum").text(res.data.zhData.num_total || 0);
- $("#proNoStartNum").text(res.data.zhData.num_1 || 0);
- $("#proDoingNum").text(res.data.zhData.num_2 || 0);
- $("#proEndNum").text(res.data.zhData.num_3 || 0);
- $("#proActualTotal").text(res.data.zhData.amt_jh || 0);
- $("#proActualTotalGt").text(res.data.zhData.amt_gt || 0);
- $("#proPlanAmt").text(res.data.zhData.amt_total || 0);
- $("#proActualAmt").text(res.data.zhData.amt_sj || 0);
- $("#yearPlanNum").text(res.data.zhData.num_4 || 0);
- // 统计数据
- $("#totalNum").text(res.data.totalNum || 0);
- $("#cbNum").text(res.data.cbNum || 0);
- $("#xjNum").text(res.data.xjNum || 0);
- $("#zjNum").text(res.data.zjNum || 0);
- $("#tcNum").text(res.data.tcNum || 0);
- if (res.data.yearKgl){
- self.beginBl = res.data.yearKgl;
- }
- // if(res.data.zhData.num_total!=0){
- // self.beginBl = ((res.data.zhData.num_2 + res.data.zhData.num_3) * 100 / res.data.zhData.num_total).toFixed(2);
- // }else{
- // self.beginBl=0;
- // }
- self.initChart1(data.chart1Data);
- self.initChart2(data.chart2Data);
- self.initChart3(data.chart3Data);
- self.initChartsYearStart();
- // self.initChartsYearDone();
- setTimeout(() => {
- layui.element.progress('demo', res.data.zhData.num_bl || '0%');
- }, 100);
- }
- });
- },
- getTotalTodo: function (target) {
- //this.changeTab(target);
- $("#chart").hide();
- // $("#fixedBlock").hide();
- $("#toDo").show();
- $("#toDo").load(App.getUrl("workBench/toDoView"));
- // window.location.href = App.getUrl("/workBench/toDoView");
- },
- getTotalDo: function (target) {
- // this.changeTab(target);
- $("#chart").hide();
- // $("#toDo").show();
- $("#fixedBlock").hide();
- $("#toDo").load(App.getUrl("workBench/doView"));
- },
- changeTab: function (target) {
- if (target) {
- $(".layui-card").removeClass("active");
- $(target).addClass("active");
- }
- },
- toYQ: function () {
- //window.location.href = App.getUrl("/overdue/view?overStatus=2");
- window.location.href = App.getUrl("/problem/info/index");
- },
- openCt: function () {
- window.location.href = App.getUrl("/subject/subInfo/lightCt?type=1");
- },
- offsetCt: function () {
- window.location.href = App.getUrl("/subject/subInfo/lightCt?type=2");
- },
- add : function(){
- var self = this;
- var content='<span style="color:red;font-size:25px;"> SM项目禁止录入!!!!</span>';
- layer.confirm(content,{
- area: ['350px',''],
- btn: ['开始录入','取消']
- }, function(){
- window.location.href= App.getUrl("/subject/subInfo/add");
- })
- },
- reportEdit: function () {
- window.location.href = App.getUrl("weekReport/view");
- },
- monthReportEdit: function () {
- window.location.href = App.getUrl("/monthReport/view");
- },
- initChart1: function (datas) {
- const option = {
- grid: {
- left: 10,
- right: 10,
- bottom: 20
- },
- title: {
- show: false
- },
- legend: {
- bottom: 10,
- left: 'center',
- data: [{
- name: '储备项目',
- icon: 'circle'
- }, {
- name: '新建项目',
- icon: 'circle'
- }, {
- name: '在建项目',
- icon: 'circle'
- }, {
- name: '投产项目',
- icon: 'circle'
- }]
- },
- color: ['#1faff8', '#e1b710', '#f1555d','#449a34'],
- tooltip: {
- formatter: '{c}<br/>({d}%)',
- position: ['45%', '38%'],
- backgroundColor: 'none',
- borderWidth: 0,
- textStyle: {
- color: '#333',
- fontSize: 20
- }
- },
- series: [{
- type: 'pie',
- radius: ['35%', '50%'],
- label: {
- formatter: '{c}个 {d}%'
- },
- emphasis: {
- label: {
- show: true
- }
- },
- data: [
- {value: datas.cbNum, name: '储备项目', label: {rotate: 50}},
- {value: datas.xjNum, name: '新建项目'},
- {value: datas.zjNum, name: '在建项目'},
- {value: datas.tcNum, name: '投产项目', label: {rotate: -30}}
- ]
- }]
- }
- if (document.getElementById('charts1')) {
- const myChart = echarts.init(document.getElementById('charts1'));
- myChart.setOption(option);
- }
- },
- initChart2: function (datas) {
- const option = {
- grid: {
- left: 10,
- right: 10,
- bottom: 20
- },
- title: {
- show: false
- },
- legend: {
- bottom: 10,
- left: 'center',
- data: [{
- name: '储备项目',
- icon: 'circle'
- }, {
- name: '新建项目',
- icon: 'circle'
- }, {
- name: '续建项目',
- icon: 'circle'
- }]
- },
- color: ['#1faff8', '#e1b710', '#f1555d'],
- tooltip: {
- formatter: '{c}<br/>({d}%)',
- position: ['40%', '38%'],
- backgroundColor: 'none',
- borderWidth: 0,
- textStyle: {
- color: '#333',
- fontSize: 20
- }
- },
- series: [{
- type: 'pie',
- radius: ['35%', '50%'],
- label: {
- formatter: '{c}万元 {d}%'
- },
- data: [
- {value: datas.cProMon, name: '储备项目', label: {rotate: 50}},
- {value: datas.nProMon, name: '新建项目'},
- {value: datas.xProMon, name: '续建项目', label: {rotate: -30}}
- ]
- }]
- }
- if (document.getElementById('charts2')) {
- const myChart = echarts.init(document.getElementById('charts2'));
- myChart.setOption(option);
- }
- },
- initChart3: function (datas) {
- const option = {
- grid: {
- left: 60,
- right: 10,
- bottom: 50,
- top: 20
- },
- tooltip: { trigger: 'axis'},
- title: {
- show: false
- },
- legend: {
- left: 'center',
- bottom: 0
- },
- xAxis: {
- type: 'category',
- data: datas.months
- },
- yAxis: {
- type: 'value'
- },
- color: ['#1faff8','#e1b710'],
- series: [{
- name: '实际投资',
- data: datas.sjMoney,
- type: 'bar',
- barWidth: 10,
- itemStyle: {
- normal: {
- label: {
- show: false, //开启显示
- position: 'top', //在上方显示
- textStyle: { //数值样式
- color: 'black',
- fontSize: 16
- }
- }
- }
- }
- },{
- name: '计划投资',
- data: datas.jhMoney,
- type: 'bar',
- barWidth: 10,
- itemStyle: {
- normal: {
- label: {
- show: false, //开启显示
- position: 'top', //在上方显示
- textStyle: { //数值样式
- color: 'black',
- fontSize: 16
- }
- }
- }
- }
- }]
- };
- if (document.getElementById('charts3')) {
- const myChart = echarts.init(document.getElementById('charts3'));
- myChart.setOption(option);
- }
- },
- // Echarts--年度开工率on
- initChartsYearStart: function () {
- let dataValue = this.beginBl?this.beginBl.toString():'0.00';
- // 拆分整数小数
- let dataValueArr = dataValue.includes(".") ? dataValue.split(".") : [dataValue, "00"];
- let dataValueInt = dataValueArr[0];
- let dataValueFloat = dataValueArr[1] + "%";
- let option = {
- title: {
- text: '{a|' + dataValueInt + '}{b|.' + dataValueFloat + '}',
- subtext: '年度开工率',
- left: 'center',
- top: '35%',
- itemGap: 1,
- textStyle: {
- color: '#FC5E74',
- fontSize: 24,
- lineHeight: 10,
- rich: {
- b: {
- fontSize: 16,
- }
- }
- },
- subtextStyle: {
- color: "#333333",
- fontSize: 12
- }
- },
- tooltip: {
- formatter: function (params) {
- return (
- '<span style="color: #000;">年度开工率:' + params.value + '%</span>'
- );
- }
- },
- angleAxis: {
- max: 100,
- clockwise: true, // 逆时针
- show: false,
- startAngle: 90
- },
- radiusAxis: {
- type: 'category',
- show: true,
- axisLabel: {
- show: false
- },
- axisLine: {
- show: false
- },
- axisTick: {
- show: false
- }
- },
- polar: [
- {
- center: ['50%', '50%'], //中心点位置
- radius: ['87%', '95%'] //图形大小
- }
- ],
- series: [
- {
- type: 'bar',
- z: 10,
- data: [dataValue],
- showBackground: false,
- coordinateSystem: 'polar',
- roundCap: false,
- barWidth: 18, //大的占比环
- itemStyle: {
- normal: {
- opacity: 1,
- color: "#3F90FF",
- borderRadius: '50%'
- }
- }
- },
- {
- type: 'pie',
- name: '内层细圆环',
- radius: ['89%', '94%'],
- startAngle: 90,
- hoverAnimation: false,
- clockWise: true,
- itemStyle: {
- color: "#ccc",
- },
- tooltip: {
- show: false
- },
- label: {
- show: false
- },
- data: [100]
- }
- ]
- };
- let myChart = document.getElementById("charts-year-start") && echarts.init(document.getElementById("charts-year-start"));
- myChart.setOption(option);
- },
- // Echarts--年度投资率
- initChartsYearDone: function () {
- let dataValue = this.chartsAmtRate?this.chartsAmtRate:'0.00%';
- // 拆分整数小数
- let dataValueArr = dataValue.includes(".") ? dataValue.split(".") : [dataValue, "00"];
- let dataValueInt = dataValueArr[0];
- let dataValueFloat = dataValueArr[1];
- let option = {
- title: {
- text: '{a|' + dataValueInt + '}{b|.' + dataValueFloat + '}',
- subtext: '年度投资率',
- left: 'center',
- top: '35%',
- itemGap: 1,
- textStyle: {
- color: '#3F90FF',
- fontSize: 24,
- lineHeight: 10,
- rich: {
- b: {
- fontSize: 16,
- }
- }
- },
- subtextStyle: {
- color: "#333333",
- fontSize: 12
- }
- },
- tooltip: {
- formatter: function (params) {
- return (
- '<span style="color: #000;">年度投资率:' + params.value + '</span>'
- );
- }
- },
- angleAxis: {
- max: 100,
- clockwise: true, // 逆时针
- show: false,
- startAngle: 90
- },
- radiusAxis: {
- type: 'category',
- show: true,
- axisLabel: {
- show: false
- },
- axisLine: {
- show: false
- },
- axisTick: {
- show: false
- }
- },
- polar: [
- {
- center: ['50%', '50%'], //中心点位置
- radius: ['87%', '95%'] //图形大小
- }
- ],
- series: [
- {
- type: 'bar',
- z: 10,
- data: [dataValue],
- showBackground: false,
- coordinateSystem: 'polar',
- roundCap: false,
- barWidth: 18, //大的占比环
- itemStyle: {
- normal: {
- opacity: 1,
- color: "#FC5E74",
- borderRadius: '50%'
- }
- }
- },
- {
- type: 'pie',
- name: '内层细圆环',
- radius: ['89%', '94%'],
- startAngle: 90,
- hoverAnimation: false,
- clockWise: true,
- itemStyle: {
- color: "#CCCCCC",
- },
- tooltip: {
- show: false
- },
- label: {
- show: false
- },
- data: [100]
- }
- ]
- };
- let myChart = document.getElementById("charts-year-done") && echarts.init(document.getElementById("charts-year-done"));
- myChart.setOption(option);
- },
- toItems: function (index) {
- if (index === 1) {
- //周报查询
- window.location.href = App.getUrl("/weekReport/view");
- } else if (index === 2) {
- //月报查询
- window.location.href = App.getUrl("/monthReport/view");
- } else if (index === 3) {
- //问题跟踪
- window.location.href = App.getUrl("/problemtrack/index");
- } else if (index === 4) {
- //包联项目
- window.location.href = App.getUrl("/subject/subInfo/blSub");
- } else if (index === 5) {
- //办事流程
- // window.location.href = App.getUrl("/problem/tracing/tracinglist");
- } else if (index === 6) {
- //智慧工地
- window.location.href = App.getUrl("/smart/index");
- } else if (index === 7) {
- //红黄绿灯
- window.location.href = App.getUrl("/subject/subInfo/projTz?type=2");
- }
- },
- checkChartFun: function (index) {
- this.checkChart = index;
- this.getStatisData();
- }
- }
- })
- </script>
- </html>
|