1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348 |
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%--
- ~ Copyright (c) 2014, 2023, Chengdu Minto Technology Co.,LTD. All rights reserved.
- ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- --%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
- <%@ page isELIgnored="false" %>
- <html lang="zh">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>管理员首页</title>
- <link rel="stylesheet" type="text/css" href="${path}/tc_suite/project/css/base.css${resSuffix}"/>
- <link rel="stylesheet" type="text/css" href="${path}/tc_suite/project/css/adminPage.css${resSuffix}"/>
- <link type="text/css" href="${path}/common/css/minto.comp.css${resSuffix}" rel="Stylesheet" />
- <link type="text/css" href="${path}/common/css/minto.layout.css${resSuffix}" rel="Stylesheet" />
- <style>
- .dail-nav a{
- color:#333333;
- }
- .media-dail{width:100%}
- .media-dail h1{justify-content:space-between}
- .stageInfoLi .tabTtx{color:#999999;display:inline-block;max-width: 700px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;}
- .videopicture{margin-bottom: 5px;margin-top: 5px}
- .VandP a{white-space: normal}
- #dataList2{
- /*min-height: 200px;*/
- }
- #dataList1{
- /*min-height: 200px;*/
- }
- #dataList3,#dataList4{
- /*min-height: 310px;*/
- }
- .stageInfoLi{
- margin-top: 16px;
- font-weight: normal;
- overflow: hidden;
- text-overflow: ellipsis;
- display: flex;
- color: #333;
- }
- .needline:hover{color: #0c94ff;text-decoration:underline;}
- .needline{cursor: pointer}
- /*.li .tps{text-decoration:none !important;}*/
- /*.right-time span{text-decoration:none !important;}*/
- /*!*.tps,.right-time span{text-decoration:none !important;}*!*/
- .Lisy{
- cursor: pointer;
- }
- .sta-num>div {
- width: 100%;
- padding-left: 35%;
- }
- .needline{white-space: nowrap;text-overflow: ellipsis;overflow: hidden}
- .delAttrtion{
- margin-left: 20px;
- border-radius:4px;
- color:#FFFFFF !important;
- background-color: #0c94ff;
- display: inline-block;
- font-size:12px !important;
- text-align: center;
- line-height: 24px;
- height: 24px;
- width:70px;
- }
- .yuandi{display:inline-block;width: 10px;height: 10px;border:2px solid #388fd3;border-radius:50%;background:#FFFFFF;margin-right:10px}
- .media-img:hover{cursor: pointer}
- @media screen and (max-width: 1200px){
- .sta-num>div {
- width: 100%;
- padding-left: 28%;
- }
- }
- #statistical1, #statistical2, #statistical3, #statistical4{
- height: 210px;
- }
- .mt-tab-region{
- height: 51px;
- background: none;
- border-bottom: 1px solid #e5e5e5;
- }
- .mt-tab-region .mt-info{
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding-right: 20px;
- background: #fff;
- }
- .mt-tab{
- /*width: 100%;*/
- border-bottom: none;
- }
- .statistical{
- border-radius: 0;
- }
- .dail-list{
- border-radius: 0 !important;
- }
- /*.mt-tab .mt-tabLi:first-child{*/
- /*padding-left: 0;*/
- /*}*/
- /*.mt-tab .mt-tabLi:first-child .mt-tab-line{*/
- /*left: 0;*/
- /*}*/
- /*.mt-tab .mt-tabLi.mt-tab-chosen:first-child .mt-tab-line,.mt-tabLi:first-child:hover .mt-tab-line{*/
- /*width: calc(100% - 20px);*/
- /*}*/
- .page{
- padding-top: 20px;
- }
- .mt-btn{
- margin-right: 0;
- margin-left: 10px;
- }
- .mt-tabLi{
- line-height: 50px;
- }
- .mt-tab{
- height: 100%;
- }
- @media (max-width: 1600px) {
- .li,.moreInfo{
- font-size: 14px;
- }
- .mt-tab-region .mt-info{
- padding-right: 15px;
- padding-left: 5px;
- }
- .page{
- padding-top: 15px;
- }
- #statistical1, #statistical2, #statistical3{
- height: 180px;
- }
- .mt-tab-region{
- height: 41px;
- }
- .mt-tabLi{
- line-height: 40px;
- }
- .stageInfoLi{
- font-size: 14px;
- }
- }
- </style>
- </head>
- <body style="background: none;">
- <div class="page">
- <div class="left">
- <div class="statistical">
- <div>
- <h1>投资进度</h1>
- <div id="statistical1"></div>
- <%-- <div class="sta-num">--%>
- <%-- <div>总投资(万元):<span class="num">${investmentAll}</span></div>--%>
- <%-- <div>年度计划投资(万元):<span class="num">${investmentAnnual}</span></div>--%>
- <%-- </div>--%>
- <%-- <div class="sta-num">--%>
- <%-- <%– <div>投资完成率(%):<span class="num">${investmentCompletion}</span></div>–%>--%>
- <%-- <div>已完成投资(万元):<span class="num">${investmentInvested}</span></div>--%>
- <%-- </div>--%>
- </div>
- <div>
- <h1>新建项目开工率</h1>
- <div id="statistical2"></div>
- <%-- <div class="sta-num" style="margin-left: 70px">--%>
- <%-- <div>新建项目:<span class="num">${newlyProjectCount}</span></div>--%>
- <%-- <div>已开工:<span class="num">${startedProjectCount}</span></div>--%>
- <%-- </div>--%>
- <%-- <div class="sta-num" style="margin-left: 70px">--%>
- <%-- <div>未开工:<span class="num">${newlyProjectCount - startedProjectCount}</span></div>--%>
- <%-- <%– <div>开工率:<span class="num">${rate1}%</span></div>–%>--%>
- <%-- </div>--%>
- </div>
- <div>
- <h1>续建项目开工率</h1>
- <div id="statistical3"></div>
- <%-- <div class="sta-num" style="margin-left: 70px">--%>
- <%-- <div>续建项目:<span class="num">${continueProjectCount}</span></div>--%>
- <%-- <div>已开工:<span class="num">${startedContinueProjectCount}</span></div>--%>
- <%-- </div>--%>
- <%-- <div class="sta-num" style="margin-left: 70px">--%>
- <%-- <div>未开工:<span class="num">${continueProjectCount - startedContinueProjectCount}</span></div>--%>
- <%-- <%– <div>开工率:<span class="num">${rate2}%</span></div>–%>--%>
- <%-- </div>--%>
- </div>
- <div onclick="statistical_3()" style="min-width: 320px">
- <h1>项目问题</h1>
- <div id="statistical4"></div>
- </div>
- </div>
- <style>
- .moreTabel{margin-top: 20px;display: flex;flex-wrap: wrap; width: calc(100% + 20px);overflow: hidden}
- .moreTabel .list{
- display: flex;
- width: calc(16.66% - 20px);
- height:100px;
- border: 1px solid #c9e5ff;
- cursor: pointer;
- position: relative;
- padding: 20px;
- margin-right: 20px;
- margin-bottom: 20px;
- background:#FFFFFF
- }
- /*.moreTabel .list:nth-child(6n+6){margin-right: 0}*/
- .moreTabel .list img{width: 25px;min-width: 25px;height: 30px;margin-right: 10px;position: absolute;bottom:15px;right: 10px}
- .hoveri{display: none}
- .moreTabel .media-dail p{font-size:16px;color:#333333;line-height: 1;overflow:hidden;text-overflow: ellipsis}
- .moreTabel .media-dail p.time{font-size:14px;color:#999999;margin-top: 10px !important;}
- .moreTabel .list:hover{background-image: url("${path}/tc_suite/project/images/bgkuan.png");background-repeat: no-repeat;background-size: 100% 100%;}
- .moreTabel .list:hover p{color: #ffffff !important}
- .moreTabel .list:hover .def{display: none}
- .moreTabel .list:hover .hoveri{display: inline-block}
- .dail-nav{margin-top:10px}
- @media screen and (max-width: 1600px){
- /*.moreTabel .list:nth-child(5n+5){margin-right:0px}*/
- .moreTabel{
- margin-top: 15px;
- width: calc(100% + 15px);
- }
- .moreTabel .list{
- height: 90px;
- width: calc(20% - 15px);
- min-width: 200px;
- margin-right: 15px;
- margin-bottom: 15px;
- padding: 15px;
- }
- .moreTabel .media-dail p{
- font-size: 14px;
- }
- .moreTabel .media-dail p.time{
- font-size: 12px;
- }
- .mt-tab-region .mt-info{
- padding-left: 5px;
- padding-right: 15px;
- }
- .page{
- padding-top: 15px;
- }
- .stageInfoLi{
- font-size: 14px;
- margin-top: 5px;
- }
- #statistical1, #statistical2, #statistical3{
- height: 180px;
- }
- .stageInfoLi{
- font-size: 14px;
- }
- }
- @media (max-width: 1450px) {
- .mt-info{
- width: 100%;
- }
- }
- </style>
- <div class="moreTabel">
- <div class="list" onclick="jumpVisual()">
- <img src="${path}/tc_suite/project/images/keshih.png" class="def">
- <img src="${path}/tc_suite/project/images/keshih1.png" class="hoveri">
- <div class="media-dail">
- <p title="项目可视化">项目可视化</p>
- </div>
- </div>
- <div class="list" onclick="window.open('http://118.123.249.212:8075/webroot/decision/view/report?viewlet=project%252F%25E9%2587%258D%25E5%25A4%25A7%25E9%25A1%25B9%25E7%259B%25AE%25E7%25AD%2596%25E5%2588%2592%25E9%2580%2589%25E9%25A2%2598%25E6%258A%25A5%25E5%2591%258A%25E8%25A1%25A8.cpt')">
- <img src="${path}/tc_suite/project/images/table.png" class="def">
- <img src="${path}/tc_suite/project/images/table1.png" class="hoveri">
- <div class="media-dail">
- <p title="重大项目策划选题报告表">重大项目策划选题报告表</p>
- <p class="time">${now}</p>
- </div>
- </div>
- <div class="list" onclick="window.open('http://118.123.249.212:8075/webroot/decision/view/report?viewlet=project%252F%25E9%2587%258D%25E7%2582%25B9%25E5%25BB%25BA%25E8%25AE%25BE%25E9%25A1%25B9%25E7%259B%25AE%25E8%25BF%259B%25E5%25BA%25A6%25E8%25A1%25A8.cpt')">
- <img src="${path}/tc_suite/project/images/table.png" class="def">
- <img src="${path}/tc_suite/project/images/table1.png" class="hoveri">
- <div class="media-dail">
- <p title="重点建设项目进度表">重点建设项目进度表</p>
- <p class="time">${now}</p>
- </div>
- </div>
- <div class="list" onclick="window.open('http://118.123.249.212:8075/webroot/decision/view/report?viewlet=project%252F%25E9%2587%258D%25E7%2582%25B9%25E5%2589%258D%25E6%259C%259F%25E9%25A1%25B9%25E7%259B%25AE%25E8%25BF%259B%25E5%25BA%25A6%25E8%25A1%25A8.cpt')">
- <img src="${path}/tc_suite/project/images/table.png" class="def">
- <img src="${path}/tc_suite/project/images/table1.png" class="hoveri">
- <div class="media-dail">
- <p title="重点项目前期进度表">重点项目前期进度表</p>
- <p class="time">${now}</p>
- </div>
- </div>
- <div class="list" onclick="window.open('http://118.123.249.212:8075/webroot/decision/view/report?viewlet=project%252F%25E9%2587%258D%25E7%2582%25B9%25E9%25A1%25B9%25E7%259B%25AE%25E8%25AE%25A1%25E5%2588%2592%25E6%2583%2585%25E5%2586%25B5%25E6%25B1%2587%25E6%2580%25BB%25E8%25A1%25A8.cpt')">
- <img src="${path}/tc_suite/project/images/table.png" class="def">
- <img src="${path}/tc_suite/project/images/table1.png" class="hoveri">
- <div class="media-dail">
- <p title="重点项目计划情况汇总表">重点项目计划情况汇总表</p>
- <p class="time">${now}</p>
- </div>
- </div>
- <div class="list" onclick="window.open('http://118.123.249.212:8075/webroot/decision/view/report?viewlet=project%252F%25E9%2587%258D%25E7%2582%25B9%25E9%25A1%25B9%25E7%259B%25AE%25E8%25BF%259B%25E5%25BA%25A6%25E6%25A3%2580%25E6%25B5%258B%25E8%25A1%25A8.cpt')">
- <img src="${path}/tc_suite/project/images/table.png" class="def">
- <img src="${path}/tc_suite/project/images/table1.png" class="hoveri">
- <div class="media-dail">
- <p title="重点项目进度检测表">重点项目进度检测表</p>
- <p class="time">${now}</p>
- </div>
- </div>
- </div>
- <div class="mt-tab-region">
- <div class="mt-info">
- <div class="mt-tab">
- <div class="mt-tabLi" data-type="1">
- <span>待审批</span>
- <span class="mt-tab-line"></span>
- </div>
- <div class="mt-tabLi mt-tab-chosen" data-type="2">
- <span>项目动态</span>
- <span class="mt-tab-line"></span>
- </div>
- <div class="mt-tabLi" data-type="4">
- <span>我的关注</span>
- <span class="mt-tab-line"></span>
- </div>
- <c:if test="${!isLeader}">
- <div class="mt-tabLi" data-type="3">
- <span>领导关注</span>
- <span class="mt-tab-line"></span>
- </div>
- </c:if>
- </div>
- <a href="javascript:;" data-type="5" class="moreInfo" style="float: right;display: none">更多</a>
- </div>
- <div id="imgShow">
- <div id="dataList2" class="dail-list show"></div>
- </div>
- <div id="dataList3" class="dail-list"></div>
- <div id="dataList4" class="dail-list"></div>
- </div>
- </div>
- <script src="${path}/tc_ttp/jquery/jquery-1.12.4.min.js${resSuffix}"></script>
- <script src="${path}/tc_suite/project/js/base.js" type="text/javascript" charset="utf-8"></script>
- <script src="${path}/tc_suite/project/js/echarts.min.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/function.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/tc.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/lhgdialog4.2.0/lhgdialog.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_tap/choosePerson/js/choosePersonConfig.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/jquery.json.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/ajax.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_tap/relResource/js/relResource.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/jquery.form.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_suite/form/js/form.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/common/mCustomScrollbar/js/jquery.mCustomScrollbar.concat.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.core.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.exhide.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.excheck.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_suite/menu/js/menu.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/dummyPhotoView/dummyPhotoView.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_tap/space/js/upload.js${resSuffix}"></script>
- <script type="text/javascript"
- src="${path}/tc_ttp/jquery.serializeJSON/jquery.serializejson.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/common/js/ui/minto.comp.js${resSuffix}"></script>
- <script>
- $('.page').resize(function () {
- $(parent.document.getElementsByTagName("iframe")).height($('.page').outerHeight(true)+20);
- })
- // @author : inspired(胡启林);Description:可视化首页跳转 (edit) lastdate : 2020/6/3
- function jumpVisual(){
- var projectVisual = eval("${projectVisual}");
- switch (projectVisual) {
- case -1:
- $.alert("暂无内容");
- break;
- case 0://渭南可视化
- window.open('${path}/tapVisual/index');
- break;
- case 1://万宁可视化
- window.open('${path}/tc_suite/project/wn_visual/cityProjectOverview.jsp')
- break;
- }
- }
- function openTab(id,url,newTabName) {
- top.addTab(id,newTabName,url,'curSelect');
- }
- $('.mt-tab').on('click', '.mt-tabLi', function () {
- if ($(this).attr("data-type") == 5){//一定项目动态更多
- TC.ui.openTab("/project/projectDynamic");
- return;
- }
- if ($(this).attr("data-type") == 6){//一定项目动态更多
- TC.ui.openTab("/project/moreMyAttention");
- return;
- }
- //清空内容
- $("#data_list_nav").html("");
- var page = {"start": 0, "length": 5};
- var params = {"projectType": "200001010", "isShowPhase": false, "search": {}};
- $(".moreInfo").hide();
- if ($(this).attr("data-type") == 1) {
- //项目管理列表
- $(".moreInfo").attr("data-type",7);
- initListType1(page, params);
- } else if ($(this).attr("data-type") == 2) {
- //项目动态列表
- $(".moreInfo").attr("data-type",5);
- params.search["reportStatus"] = 1;
- params.search["newDynamic"] = 1;
- initListType2(page, params);
- } else if ($(this).attr("data-type") == 4) {
- $(".moreInfo").show();
- $(".moreInfo").attr("data-type",6);
- //领导关注列表
- params.search["leaderAttention"] = 5;
- initListType3(page, params);
- } else if ($(this).attr("data-type") == 3) {
- //我的关注列表
- params.search["myAttention"] = 4;
- initListType4(page, params);
- }
- });
- $('.moreInfo').on('click', function () {
- if ($(this).attr("data-type") == 5){//一定项目动态更多
- TC.ui.openTab("/project/projectDynamic");
- return;
- }
- if ($(this).attr("data-type") == 6){//一定项目动态更多
- TC.ui.openTab("/project/moreMyAttention");
- return;
- }
- if ($(this).attr("data-type") == 7){//更多领导关注
- TC.ui.openTab("/taskByType/showCommonWaiteDo?listType=2&jump=true","办文待办");
- return;
- }
- });
- var highlight = '#208de1';
- var investmentCompletion = ${investmentCompletion}+0;
- var rate1 = ${rate1}+0;
- var rate2 = ${rate2}+0;
- var demoData = [
- {name: '警情总量', value: investmentCompletion, unit: '%', pos: ['16.6%', '25%'], range: [0, 80]},
- ];
- var demoData1 = [
- {name: '警情总量', value: rate1, unit: '%', pos: ['16.6%', '25%'], range: [0, 80]},
- ];
- var demoData2 = [
- {name: '警情总量', value: rate2, unit: '%', pos: ['16.6%', '25%'], range: [0, 80]},
- ];
- $(function () {
- $('.dail-nav').on('click', 'a', function () {
- if ($(this).attr("data-type") == 5){//一定项目动态更多
- return;
- }
- if ($(this).attr("data-type") == 6){//一定项目动态更多
- return;
- }
- var inde = $(this).index();
- $('.dail-nav .active').removeClass('active');
- $('.dail-nav a').eq(inde).addClass('active');
- $('.dail-list.show').removeClass('show');
- $('.dail-list').eq(inde).addClass('show');
- })
- setTimeout(function () {
- chartTop1();
- chartTop2();
- chartTop3();
- chartTop4();
- },1000)
- var page = {"start": 0, "length": 5};
- var params = {"projectType": "200001010", "isShowPhase": false, "search": {"newDynamic" : 1}};
- initListType2(page, params);
- })
- function chartTop1() {
- /*第一个*/
- var myChart1 = echarts.init(document.getElementById('statistical1'));
- var option = {
- tooltip: {
- show: true,
- formatter: function (name) {
- var strHtml =
- '<div><span class="yuandi"></span>总投资(万元):${investmentAll}</div>\n' +
- '<div><span class="yuandi"></span>年度计划投资(万元):${investmentAnnual}</div>\n' +
- '<div><span class="yuandi"></span>已完成投资(万元):${investmentInvested}</div>\n';
- return strHtml;
- },
- },
- series: (function () {
- var result = [];
- var max = 100;
- demoData.forEach(function (item) {
- result.push(
- // 内侧指针、数值显示
- {
- name: item.name,
- type: 'gauge',
- // radius: '83.10%',
- radius: '90%',
- startAngle: 225,
- endAngle: -45,
- min: 0,
- max: 100,
- axisLine: {
- show: true,
- lineStyle: {
- width: 15,
- shadowBlur: 1,
- color:(function(e){
- var colorArr = [];
- if(item.value < 30){
- colorArr = [[item.value/max, '#68dfe2'],[1, '#f7f7f7']]
- }else if(item.value < 70){
- colorArr = [[0.3, '#68dfe2'],[item.value/max, '#38a2da'], [1, '#f7f7f7']]
- }else if(item.value < 100){
- colorArr = [[0.3, '#68dfe2'],[0.7, '#38a2da'], [item.value/max, '#fd666d'], [1, '#f7f7f7']]
- }else{
- colorArr = [[0.3, '#68dfe2'],[0.7, '#38a2da'],[1, '#fd666d']]
- }
- return colorArr;
- })()
- },
- },
- axisTick: {
- length: 4
- // show: 0,
- },
- splitLine: {
- length:15,
- // show: 0,
- },
- axisLabel: {
- color: '#909090',
- // show: 0
- },
- pointer: {
- show: true,
- length: '60%',
- width:4,
- },
- detail: {
- show: true,
- offsetCenter: ['0%', '100%'],
- textStyle: {
- fontSize: 20,
- color: '#04A4CE'
- },
- formatter: [
- '{value}' + (item.unit || ''),
- ].join('\n'),
- rich: {
- name: {
- fontSize: 35,
- lineHeight: 30,
- color: '#ffc300',
- "fontWeight": 'bold',
- }
- }
- },
- itemStyle: {
- normal: {
- color: highlight,
- }
- },
- data: [{
- value: item.value
- }]
- }
- );
- });
- result.push({
- type: 'pie',
- radius: '90%',
- center: ['50%', '50%'],
- data: [100],
- itemStyle: {
- normal: {
- color: "transparent",
- }
- },
- z:100,
- })
- return result;
- })()
- };
- myChart1.setOption(option, true);
- }
- function chartTop2() {
- /*第二个*/
- var myChart2 = echarts.init(document.getElementById('statistical2'));
- var option1 = {
- tooltip: {
- show: true,
- formatter: function (name) {
- var strHtml =
- '<div><span class="yuandi"></span>新建项目:${newlyProjectCount}</div>\n' +
- '<div><span class="yuandi"></span>已开工:${startedProjectCount}</div>\n' +
- '<div><span class="yuandi"></span>未开工:${newlyProjectCount - startedProjectCount}</div>\n';
- return strHtml;
- },
- },
- series: (function () {
- var result = [];
- var max = 100;
- demoData1.forEach(function (item) {
- result.push(
- // 内侧指针、数值显示
- {
- name: item.name,
- type: 'gauge',
- // radius: '83.10%',
- radius: '90%',
- startAngle: 225,
- endAngle: -45,
- min: 0,
- max: 100,
- axisLine: {
- show: true,
- lineStyle: {
- width: 15,
- shadowBlur: 1,
- color:(function(e){
- var colorArr = [];
- if(item.value < 30){
- colorArr = [[item.value/max, '#68dfe2'],[1, '#f7f7f7']]
- }else if(item.value < 70){
- colorArr = [[0.3, '#68dfe2'],[item.value/max, '#38a2da'], [1, '#f7f7f7']]
- }else if(item.value < 100){
- colorArr = [[0.3, '#68dfe2'],[0.7, '#38a2da'], [item.value/max, '#fd666d'], [1, '#f7f7f7']]
- }else{
- colorArr = [[0.3, '#68dfe2'],[0.7, '#38a2da'],[1, '#fd666d']]
- }
- return colorArr;
- })()
- }
- },
- axisTick: {
- length: 4
- // show: 0,
- },
- splitLine: {
- length:15,
- // show: 0,
- },
- axisLabel: {
- color: '#909090',
- // show: 0
- },
- pointer: {
- show: true,
- length: '60%',
- width:4,
- },
- detail: {
- show: true,
- offsetCenter: ['0%', '100%'],
- textStyle: {
- fontSize: 20,
- color: '#04A4CE'
- },
- formatter: [
- '{value}' + (item.unit || ''),
- ].join('\n'),
- rich: {
- name: {
- fontSize: 35,
- lineHeight: 30,
- color: '#ffc300',
- "fontWeight": 'bold',
- }
- }
- },
- itemStyle: {
- normal: {
- color: highlight,
- }
- },
- data: [{
- value: item.value
- }]
- }
- );
- });
- result.push({
- type: 'pie',
- radius: '90%',
- center: ['50%', '50%'],
- data: [100],
- itemStyle: {
- normal: {
- color: "transparent",
- }
- },
- z:100,
- })
- return result;
- })()
- };
- myChart2.setOption(option1, true);
- }
- function chartTop3() {
- /*第三个*/
- var myChart3 = echarts.init(document.getElementById('statistical3'));
- var option2 = {
- tooltip: {
- show: true,
- formatter: function (name) {
- var strHtml =
- '<div><span class="yuandi"></span>续建项目:${continueProjectCount}</div>\n' +
- '<div><span class="yuandi"></span>已开工:${startedContinueProjectCount}</div>\n' +
- '<div><span class="yuandi"></span>未开工:${continueProjectCount - startedContinueProjectCount}</div>\n';
- return strHtml;
- },
- },
- series: (function () {
- var result = [];
- var max = 100;
- demoData2.forEach(function (item) {
- result.push(
- // 内侧指针、数值显示
- {
- name: item.name,
- type: 'gauge',
- roundCap: true,
- // radius: '83.10%',
- radius: '90%',
- startAngle: 225,
- endAngle: -45,
- min: 0,
- max: 100,
- axisLine: {
- show: true,
- lineStyle: {
- width: 15,
- shadowBlur: 1,
- color:(function(e){
- var colorArr = [];
- if(item.value < 30){
- colorArr = [[item.value/max, '#68dfe2'],[1, '#f7f7f7']]
- }else if(item.value < 70){
- colorArr = [[0.3, '#68dfe2'],[item.value/max, '#38a2da'], [1, '#f7f7f7']]
- }else if(item.value < 100){
- colorArr = [[0.3, '#68dfe2'],[0.7, '#38a2da'], [item.value/max, '#fd666d'], [1, '#f7f7f7']]
- }else{
- colorArr = [[0.3, '#68dfe2'],[0.7, '#38a2da'],[1, '#fd666d']]
- }
- return colorArr;
- })()
- }
- },
- axisTick: {
- length: 4
- // show: 0,
- },
- splitLine: {
- length:15,
- // show: 0,
- },
- axisLabel: {
- color: '#909090',
- // show: 0
- },
- pointer: {
- show: true,
- length: '60%',
- width:4,
- },
- detail: {
- show: true,
- offsetCenter: ['0%', '100%'],
- textStyle: {
- fontSize: 20,
- color: '#04A4CE'
- },
- formatter: [
- '{value}' + (item.unit || ''),
- ].join('\n'),
- rich: {
- name: {
- fontSize: 35,
- lineHeight: 30,
- color: '#ffc300',
- "fontWeight": 'bold',
- }
- }
- },
- itemStyle: {
- normal: {
- color: highlight,
- }
- },
- data: [{
- value: item.value
- }]
- }
- );
- });
- result.push({
- type: 'pie',
- radius: '90%',
- center: ['50%', '50%'],
- data: [100],
- itemStyle: {
- normal: {
- color: "transparent",
- }
- },
- z:100,
- })
- return result;
- })()
- };
- myChart3.setOption(option2, true);
- }
- function chartTop4() {
- var myChart4 = echarts.init(document.getElementById('statistical4'));
- var landIssues = ${landIssues}+0;
- var moneyProblems = ${moneyProblems}+0;
- var talentProblem = ${talentProblem}+0;
- var otherProblems = ${otherProblems}+0;
- var problemNumber = ${problemNumber}+0;
- var problemData = ${problemData};
- var trafficWay = [];
- var legends = [];
- var consts = 0;
- var data =[];
- var color=['#fb6087','#53d2f7','#00d154','#fdb10e','#3e88db'];
- if(!problemData.length){
- problemData = [
- {value:' ',count:0,value2:0},
- ]
- color=['#e5e5e5','#fb6087','#53d2f7','#00d154','#fdb10e','#3e88db'];
- }
- for(let i = 0 ;i < problemData.length ; i ++){
- consts += problemData[i].count;
- }
- if(problemData && problemData.length>0) {
- for (var i = 0; i < problemData.length; i++) {
- var traffc = {
- name: problemData[i].value,
- value: problemData[i].count
- }
- trafficWay.push(traffc);
- }
- }
- //没有数据的时候模拟四个
- if(!trafficWay.length){
- var arrname = ['土地问题','人才问题','环保问题','资金问题']
- for (var i = 0; i < 4; i++) {
- data.push({
- value2:0,
- value:1,
- name:arrname[i],
- itemStyle: {
- normal: {
- borderWidth: 5,
- shadowBlur: 20,
- borderColor:'transparent',
- shadowColor: color[i],
- shadowColor: 'transparent'
- }
- }
- }
- );
- }
- }
- for (var i = 0; i < trafficWay.length; i++) {
- data.push({
- value2: Number(trafficWay[i].value),
- value: Number(trafficWay[i].value),
- name: trafficWay[i].name,
- itemStyle: {
- normal: {
- borderWidth: 5,
- shadowBlur: 20,
- borderColor:'transparent',
- shadowColor: color[i],
- shadowColor: 'transparent'
- }
- }
- }
- );
- }
- var option3 = {
- color : color,
- title: [{
- text: '{name|总数}\n{val|'+consts+'}',
- top: '28%',
- left: 'center',
- textStyle: {
- rich: {
- name: {
- fontSize: 16,
- fontWeight: 'normal',
- color: '#fff',
- padding: [10, 0]
- },
- val: {
- fontSize: 16,
- // fontWeight: 'bold',
- color: '#fff',
- }
- }
- }
- }],
- tooltip: {
- show: true,
- formatter: function (prame) {
- var strHtml = '';
- for(var i=0;i<data.length;i++){
- strHtml +='<div><span class="yuandi"></span>'+data[i].name+':'+data[i].value2+'</div>'
- }
- return strHtml;
- },
- position: function (pos, params, dom, rect, size) {
- // 鼠标在左侧时 tooltip 显示到右侧,鼠标在右侧时 tooltip 显示到左侧。
- var obj = {top: 50};
- obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5;
- return obj;
- }
- },
- legend:legends,
- toolbox: {
- show: false
- },
- series:[
- {
- name: '',
- type: 'pie',
- clockWise: false,
- // radius: [65,85],
- radius: [55,75],
- center: ['50%', '45%'],
- top:0,
- hoverAnimation: false,
- emphasis: {
- label: {
- show: true
- }
- },
- label: {
- normal:{
- formatter:function (prem) {
- return prem.data.name+' '+prem.data.value2;
- },
- }
- },
- labelLine:{
- length: 6,
- length2: 6
- },
- itemStyle: {
- normal: {
- label: {
- show: false,
- position: 'outside',
- // color:'#ccc',
- formatter: function(params) {
- var percent = 0;
- var total = 0;
- for (var i = 0; i < trafficWay.length; i++) {
- total += trafficWay[i].value;
- }
- percent = ((params.value / total) * 100).toFixed(0);
- if(params.name !== '') {
- return params.name +''+ percent;
- }else {
- return '';
- }
- },
- },
- }
- },
- data: data
- },
- {
- name: '',
- type: 'pie',
- clockWise: false,
- radius: [0,30],
- center: ['50%', '45%'],
- top:0,
- hoverAnimation: false,
- itemStyle: {
- normal: {
- label: {
- show: false,
- },
- // shadowColor:'#46a2f9',
- color: '#46a2f9',
- }
- },
- data: [{name:'',value:1}]
- }
- ]
- }
- myChart4.setOption(option3, true);
- }
- /** 初始化列表---项目管理 */
- function initListType1(page, params) {
- var dataList1 = $("#dataList2");
- $(".moreInfo").show();
- dataList1.html("");
- $.ajax({
- url:TC.config.baseUrl+"/taskByType/approvalIndexData",
- async:true,
- dataType:"json",
- data:{"listType":3,"state":-1,"taskType":''},
- type:"post",
- success:function (result) {
- if (result!=null && result.state=="success") {
- var list="";
- var listData=eval(result.data);
- // console.log(listData)
- $.each(listData,function (i,o) {
- var title = o.affair.colTitle;
- var astate = o.affair.astate;
- var createDate = o.createDate.split(" ")[0].replace(/-/g,".");
- var affairId = o.affair.idStr;
- var colId = o.affair.colId;
- var colListType = o.summary.colListType;
- //console.log(colId);
- var colTypeName=o.colTypeName;
- if( astate != 4 && astate != 0 && astate != 6 && astate != 1 ){
- var img = '<img src="${path}/tc_suite/assembly/hubei/ldIndex/images/supervision/wd.png" alt="">';
- }else{
- var img = '<img src="${path}/tc_suite/assembly/hubei/ldIndex/images/supervision/yd.png" alt="">';
- }
- var tempHtml = "";
- tempHtml = '<div class="handleLi" onclick="openUrl(\'/doCollaboration/doColIndex?affairId=' + affairId + '\')">';
- if(colListType==302){//领导批示待办列表点击跳转到批示的详情页
- tempHtml = '<div class="handleLi" onclick="openLeaderDraftUrl(\'/taskByType/toLeaderDraftDetail?colId='+colId+'&affairId='+affairId+'&colListType='+colListType + '\')">';
- }
- list += tempHtml;
- // Wen.J 去掉鼠标悬浮上去显示状态的问题
- list += '<div class="handleLeft" title="'+title+'">'+
- img+
- '<span class="hovers">'+title+'</span>'+
- '</div>'+
- '<span class="handleTime">'+createDate+'</span>'+
- '</div>';
- });
- if(!list){
- list += '<img src="${path}/common/images/empty.png" style="margin: 0 auto; padding: 50px 0 20px; display: block;" alt="">';
- }
- dataList1.html(list);
- }
- }
- });
- <%--callAjaxRequest("projectWebService", "findProject4List2", page, params, function (result) {--%>
- <%--var dataList1 = $("#dataList1");--%>
- <%--var pdate = result.data.data;--%>
- <%--//http://localhost:8080/tc_web_war_exploded/taskByType/approvalIndexData--%>
- <%--//先清空--%>
- <%--dataList1.html("");--%>
- <%--$.each(pdate, function (i, b) {--%>
- <%--var li ='<div onclick=openProject("' + b.id + '") class="li">' +--%>
- <%--'<span class="tps">【' + b.project_type + '】</span>' +b.title +--%>
- <%--'<div class="right-time">' +--%>
- <%--'<span>' + b.create_time + '</span>' +--%>
- <%--'</div>' +--%>
- <%--'</div>';--%>
- <%--dataList1.append(li);--%>
- <%--})--%>
- <%--if(!pdate.length){--%>
- <%--var html = '<img src="${path}/common/images/empty.png" style="margin: 0 auto; padding: 50px 0 20px; display: block;" alt="">';--%>
- <%--dataList1.append(html);--%>
- <%--}--%>
- <%--});--%>
- }
- //inspired todo 取消关注
- function delAttrtion(referenceId,title){
- var e=window.event || arguments.callee.caller.arguments[0];
- e.preventDefault();
- e.stopPropagation() ;
- var data={referenceId:referenceId,type:"leaderAttention"};
- $.confirm('您确定要取消吗?', function() {
- $.ajax({
- url: TC.config.baseUrl+"/project/attention/",
- type: "post",
- dataType: "json",
- data:data,
- traditional: true,
- async: false,
- success: function(result){
- if(result.state="success"){
- $.alert(title+"成功!",function () {
- var page = {"start": 0, "length": 5};
- var params = {"projectType": "200001010", "isShowPhase": false, "search": {},"through":false,"myAttention":false};
- params.search["leaderAttention"] = 5;
- initListType3(page, params);
- });
- }else{
- $.alert("操作失败!");
- }
- },error:function(){
- $.alert("操作失败!");
- }
- });
- })
- }
- /** 初始化列表---项目动态 */
- function initListType2(page, params) {
- params.through =true; //{"projectType": "200001010", "isShowPhase": false, "search": {},"through":true};
- var dataList2 = $("#dataList2");
- $(".moreInfo").show();
- dataList2.html("<div align='center'><img style='width:250px;height:250px;margin-top:2%' src='${path}/tc_suite/project/images/loading.png'><div>");
- callAjaxRequest("projectWebService", "findProjectDynamic", page, function (result) {
- var pdate = result.data;
- //先清空
- dataList2.empty();
- $.each(pdate, function (i, b) {
- var time= dateFtt("yyyy-MM-dd hh:mm:ss",new Date(b.create_time));
- var url = "${path}/space/"+b.first+"/showFile/";
- if(b.firs==null && b.pictureIds != null && b.pictureIds.length != 0){
- url = "${path}/space/"+b.pictureIds[0]+"/showFile/";
- }else{
- url = "${path}/tc_suite/project/images/qtdw_03.png"
- }
- var number = b.fields==null?0:b.fields.length;
- var title= b.title.length>30?b.title.slice(0,30)+'...':b.title;
- var li = '<div class="liMo">' +
- '<img class="media-img" src="'+url+'" onclick=openProject("' + b.reference_id + '")>' +
- '<div class="media-dail">' +
- '<h1 onclick=openProject("' + b.reference_id + '")>' +
- '<div class="tt" style="color: #1a1a1a;cursor: pointer;font-weight:700;" title="' + b.title +'"><text>' +
- ' <span class="needline">'+title+'<span>' +'</text>'+
- '</div>' +
- '<div class="rightbox">' +
- '<span>' + b.leader + '  '+ time +'</span>' +
- '</div>' +
- '</h1>' +
- // 汇报数据展示
- '<div class="tabList ">' +
- '<div class="reportInfo">';
- for (var i=0;i<number ; i++){
- if(b.fieldNameMap[b.fields[i]]!=undefined && (b.fields[i] == "month_economic" || b.fields[i] == "finish_content")){
- li +='<div class="stageInfoLi">' +
- '<span class="infoName">'+b.fieldNameMap[b.fields[i]]+':</span>' +
- '<span class="tabTtx ">' ;
- var fieldMap = b.fieldMap[b.fields[i]]==null?'暂无数据':b.fieldMap[b.fields[i]];
- // console.log(fieldMap);
- li += " "+fieldMap;
- li +='</span>' +
- '</div>';
- }
- }
- /* var videoIds = b.spaceFileBeanVideo;
- var pictureIds = b.spaceFileBeanPicture;
- if((videoIds!=null||pictureIds!=null)&&(videoIds.length!=0||pictureIds.length!=0)){
- li +='<div class="stageInfoLi">' +
- '<div class="infoName" style="display: flex;white-space: nowrap">项目视频/图片:' +
- '<div class="VandP"> ';
- console.log(videoIds)
- for(var j=0; j<videoIds.length; j++){
- li += '<div class="videopicture div-inline" title="'+videoIds[j].fileName+'" onclick=videoPat("'+videoIds[j].id+'") type="video" style="background-image: url(${path}/space/thumbnail/'+videoIds[j].id)">' +
- '<div class="play">' +
- '<img src="${path}/tc_suite/project/images/lALPDgQ9szDi6nYVFQ_21_21.png" >' +
- '</div>' +
- '</div>' ;
- }
- for(var j=0; j<pictureIds.length; j++){
- li +='<div class="videopicture" title="'+pictureIds[j].fileName+'">' +
- '<a href="javascript:void(0)" id="img" style="width:100%;height: 100%;" fileid="'+pictureIds[j].id+'" onclick="picturesShow(this)">' +
- '<img src="${path}/space/'+pictureIds[j].id+'/showFile/" class="preview" fileid="'+pictureIds[j].id+'">'+
- '</a>' +
- '</div>'
- }
- li +='</div></div></div>';
- }else {
- // li +='<div class="stageInfoLi">' +
- // '<div class="infoName">项目视频: 暂无数据</div>'+
- // '</div>';
- }
- // 图片
- <%--var pictureIds = b.pictureIds;--%>
- <%--if(pictureIds!=null&&pictureIds.length!=0){--%>
- <%-- li +='<div class="stageInfoLi">' +--%>
- <%-- '<div class="infoName" style="display: flex;white-space: nowrap">项目图片:' +--%>
- <%-- '<div class="VandP"> ';--%>
- <%-- for(var j=0; j<pictureIds.length; j++){--%>
- <%-- li +='<div class="videopicture">' +--%>
- <%-- '<a href="javascript:void(0)" id="img" style="width:100%;height: 100%;" fileid="'+pictureIds[j]+'" onclick="picturesShow(this)">' +--%>
- <%-- '<img src="${path}/space/'+pictureIds[j]+'/showFile/" class="preview" fileid="'+pictureIds[j]+'">'+--%>
- <%-- '</a>' +--%>
- <%-- '</div>'--%>
- <%-- }--%>
- <%-- li +=' </div>'+--%>
- <%-- ' </div>'--%>
- <%-- '</div>';--%>
- <%--}else {--%>
- // li +='<div class="stageInfoLi">' +
- // ' <div class="infoName">项目图片: 暂无数据' +
- // ' <div class="VandP" id="imgShow"></div>'+
- // ' </div>'
- // '</div>';
- // }*/
- li +=' </div>' +
- ' </div>' +
- ' </div>' +
- ' </div>';
- dataList2.append(li);
- })
- if(!pdate.length){
- var html = '<img src="${path}/common/images/empty.png" style="margin: 0 auto; padding: 50px 0 20px; display: block;" alt="">';
- dataList2.append(html);
- }
- });
- }
- /**
- * 初始化列表类型3
- */
- function initListType3(page, params) {
- callAjaxRequest("projectWebService", "findProjectMyAttention", page, function (result) {
- var dataList3 = $("#dataList2");
- var pdate = result.data;
- //先清空
- dataList3.html("");
- $.each(pdate, function (i, b) {
- // var li = "<li onclick=openProject('"+b.id+"')><img src='${path}/tc_suite/project/images/qtdw_03.png'><div><p>"+b.title+"</p></div></li>";
- var li = '<div onclick=openProject("' + b.id + '") class="li">'
- li += ' <span class="needline">'+b.title+'</span>' + '<div class="right-time">'
- li += '<span class="tps">【' + b.project_type + '】</span>'
- li += '<span>' + b.create_time + '</span>'
- li +='<span class="mt-btn mt-btn-blue" onclick=delAttrtion("'+b.id+'","取消关注")>' + '取消关注' + '</span>'
- li += '</div></div>';
- dataList3.append(li);
- })
- if(!pdate.length){
- var html = '<img src="${path}/common/images/empty.png" style="margin: 0 auto; padding: 50px 0 20px; display: block;" alt="">';
- dataList3.append(html);
- }
- });
- }
- /**
- * 初始化列表类型4
- */
- function initListType4(page, params) {
- callAjaxRequest("projectWebService", "findProjectLeaderAttention", page, function (result) {
- var dataList4 = $("#dataList4");
- var pdate = result.data;
- //先清空
- dataList4.html("");
- $.each(pdate, function (i, b) {
- // var li = "<li onclick=openProject('"+b.id+"')><img src='${path}/tc_suite/project/images/qtdw_03.png'><div><p>"+b.title+"</p></div></li>";
- var li = '<div onclick=openProject("' + b.id + '") class="li">'
- li += ' <span class="needline">'+b.title+'</span>'+ '<div class="right-time">'
- li += '<span class="tps">【' + b.project_type + '】</span>'
- li += '<span>' + b.create_time + '</span>'
- li += '</div></div>';
- dataList4.append(li);
- })
- if(!pdate.length){
- var html = '<img src="${path}/common/images/empty.png" style="margin: 0 auto; padding: 50px 0 20px; display: block;" alt="">';
- dataList4.append(html);
- }
- });
- }
- function openProject(id) {
- TC.ui.openResource({
- id: "/taskmt/?m=taskDetail",
- label: "查看事项",
- url: "/project/" + id,
- icon: ""
- });
- }
- // 视频播放
- function videoPat(iconId) {
- console.log(iconId);
- TC.ui.space.openVideo(iconId,"视频详情");
- };
- // 图片展示
- function picturesShow(obj) {
- openPhotoView('imgShow',obj,'${path}');
- }
- // 项目问题跳转
- function statistical_3() {
- /* TC.ui.openResource({
- label: "项目问题",
- url: "/dm/table/3907482492367487161/?m=dataList&templateId=3404975158156348854&templateType=0&title=项目问题"
- });*/
- };
- function dateFtt(fmt,date)
- { //author: meizz
- var o = {
- "M+" : date.getMonth()+1, //月份
- "d+" : date.getDate(), //日
- "h+" : date.getHours(), //小时
- "m+" : date.getMinutes(), //分
- "s+" : date.getSeconds(), //秒
- "q+" : Math.floor((date.getMonth()+3)/3), //季度
- "S" : date.getMilliseconds () //毫秒
- };
- if(/(y+)/.test(fmt))
- fmt=fmt.replace(RegExp.$1, (date.getFullYear()+"").substr(4 - RegExp.$1.length));
- for(var k in o)
- if(new RegExp("("+ k +")").test(fmt))
- fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
- return fmt;
- }
- </script>
- </body>
- </html>
|