| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head >
- <title>园区信息</title>
- <style>
- .minHeight {
- min-height: 200px
- }
- .ml-170 {
- text-align: center;
- margin-top: 20px;
- }
- .ml-11 {
- text-align: center;
- }
- .ml-30 {
- color: #333333;
- font-size: 14px;
- fill: #333333;
- margin-left: 15px;
- }
- .mt-20 {
- margin-top: 20px;
- }
- .width-70px {
- width: 85px
- }
- .text-title {
- color: #333333;
- font-size: 18px;
- fill: #333333;
- }
- .red {
- color: red;
- }
- .title-box {
- line-height: 36px;
- background: #328ed7;
- color: #fff;
- padding: 0 15px;
- }
- .title-box a {
- color: #fff;
- }
- .pull-right {
- float: right;
- }
- .clearfix:after {
- content: "\20";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden
- }
- .clearfix {
- zoom: 1
- }
- .tabBar {
- border-bottom: 2px solid #7DB4D8;
- background-color: #328ed7;
- }
- .tabBar a {
- margin-right: 10px;
- color: #fff;
- height: 36px;
- line-height: 36px;
- }
- .tabBar span {
- cursor: pointer;
- background-color: #328ed7;
- color: #fff;
- height: 36px;
- line-height: 36px;
- display: inline-block;
- padding: 0px 15px;
- font-weight: normal;
- }
- .tabBar span.current {
- background-color: #7DB4D8;;
- color: #fff;
- }
- .tabCon {
- display: none
- }
- .top-bg-box {
- background: #ebf1f5;
- padding: 10px 0;
- }
- .top-bg-box .iconfont {
- font-size: 40px;
- color: #2976d0;
- }
- .top-bg-box .ft-red {
- color: #f74f37;
- font-size: 26px;
- line-height: 1;
- }
- </style>
- </head>
- <body layout:fragment="content">
- <nav class="breadcrumb">
- <i class="Hui-iconfont"></i>
- 首页
- <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
- href="javascript:location.replace(location.href);" title="刷新">
- <i class="Hui-iconfont"></i>
- </a>
- </nav>
- <div class="page-container">
- <div th:if="${user_type==0}" class="row clearfix" style="margin-bottom:20px;">
- <div class="col-sm-3 col-md-3 col-lg-3">
- <div class="top-bg-box clearfix">
- <div class="col-sm-2 col-md-2 col-lg-2">
- <i class="iconfont"></i>
- </div>
- <div class="col-sm-10 col-md-10 col-lg-10">
- <p>服务企业数</p>
- <p><span class="ft-red">[[${companyCount}]]</span> 个</p>
- </div>
- </div>
- </div>
- <div class="col-sm-3 col-md-3 col-lg-3 topInfo">
- <div class="top-bg-box clearfix">
- <div class="col-sm-2 col-md-2 col-lg-2">
- <i class="iconfont"></i>
- </div>
- <div class="col-sm-10 col-md-10 col-lg-10">
- <p>载体总量</p>
- <p><span class="ft-red">[[${sumBuildCount}]]</span> 平方米</p>
- </div>
- </div>
- </div>
- <div class="col-sm-3 col-md-3 col-lg-3 topInfo">
- <div class="top-bg-box clearfix">
- <div class="col-sm-2 col-md-2 col-lg-2">
- <i class="iconfont"></i>
- </div>
- <div class="col-sm-10 col-md-10 col-lg-10">
- <p>项目申报</p>
- <p><span class="ft-red">[[${projectCount}]]</span> 个</p>
- </div>
- </div>
- </div>
- <div class="col-sm-3 col-md-3 col-lg-3 topInfo">
- <div class="top-bg-box clearfix">
- <div class="col-sm-2 col-md-2 col-lg-2">
- <i class="iconfont"></i>
- </div>
- <div class="col-sm-10 col-md-10 col-lg-10">
- <p>开展活动</p>
- <p><span class="ft-red">[[${activityCount}]]</span> 个</p>
- </div>
- </div>
- </div>
- </div>
- <div th:if="${user_type==4}" class="row clearfix " style="margin-bottom:20px;">
- <div class="col-sm-3 col-md-3 col-lg-3">
- <div class="top-bg-box clearfix">
- <div class="col-sm-2 col-md-2 col-lg-2">
- <i class="iconfont"></i>
- </div>
- <div class="col-sm-10 col-md-10 col-lg-10">
- <p>服务企业数</p>
- <p><span class="ft-red">[[${companyCount}]]</span> 个</p>
- </div>
- </div>
- </div>
- <div class="col-sm-3 col-md-3 col-lg-3 topInfo">
- <div class="top-bg-box clearfix">
- <div class="col-sm-2 col-md-2 col-lg-2">
- <i class="iconfont"></i>
- </div>
- <div class="col-sm-10 col-md-10 col-lg-10">
- <p>载体总量</p>
- <p><span class="ft-red">[[${sumBuildCount}]]</span> 平方米</p>
- </div>
- </div>
- </div>
- <div class="col-sm-3 col-md-3 col-lg-3 topInfo">
- <div class="top-bg-box clearfix">
- <div class="col-sm-2 col-md-2 col-lg-2">
- <i class="iconfont"></i>
- </div>
- <div class="col-sm-10 col-md-10 col-lg-10">
- <p>项目申报</p>
- <p><span class="ft-red">[[${projectCount}]]</span> 个</p>
- </div>
- </div>
- </div>
- <div class="col-sm-3 col-md-3 col-lg-3 topInfo">
- <div class="top-bg-box clearfix">
- <div class="col-sm-2 col-md-2 col-lg-2">
- <i class="iconfont"></i>
- </div>
- <div class="col-sm-10 col-md-10 col-lg-10">
- <p>参与活动</p>
- <p><span class="ft-red">[[${activityCount}]]</span> 个</p>
- </div>
- </div>
- </div>
- </div>
- <div class="row clearfix">
- <!-- 选项卡 -->
- <div class="col-sm-6 col-md-6 col-lg-6">
- <!-- <div class="title-box clearfix">通知公告<a class="pull-right" th:href="@{/home/informList/64}" target="_blank">更多</a></div>
- <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive dataTable no-footer">
- <thead>
- <tr>
- <th>标题</th>
- <th width="120">日期</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="m,iterStat:${infoContentList}">
- <td><a th:onclick="'javascript:gotoContentDetail(\''+${m.id}+'\');'" target="_blank" th:text="${m.title}"></a></td>
- <td th:text="${m.publish_time}"></td>
- </tr>
- </tbody>
- </table> -->
- <div id="tab_demo1" class="HuiTab">
- <div class="tabBar clearfix">
- <span>通知公告</span>
- <span>政策法规</span>
- <a id="more" class="pull-right" target="_blank">更多</a>
- </div>
- <div class="tabCon">
- <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive dataTable no-footer">
- <thead>
- <tr>
- <th>标题</th>
- <th width="120">日期</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="m,iterStat:${infoContentList}">
- <td><a th:onclick="'javascript:gotoContentDetail(\''+${m.id}+'\');'" target="_blank"
- th:text="${m.title}"></a></td>
- <td th:text="${m.publish_time}"></td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="tabCon">
- <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive dataTable no-footer">
- <thead>
- <tr>
- <th>标题</th>
- <th width="120">日期</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="m,iterStat:${policyContentList}">
- <td><a th:onclick="'javascript:gotoContentDetail(\''+${m.id}+'\');'" target="_blank"
- th:text="${m.title}"></a></td>
- <td th:text="${m.publish_time}"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="col-sm-6 col-md-6 col-lg-6">
- <!-- <div class="title-box clearfix">政策法规<a class="pull-right" th:href="@{/home/informList/66}" target="_blank">更多</a></div> -->
- <div id="tab_demo" class="HuiTab">
- <div class="tabBar clearfix">
- <span>我的消息</span>
- <span id="myBacklog" th:if="${user_type}!=3" style="display: none">待我处理</span>
- <a id="more" class="pull-right">更多</a>
- </div>
- <div class="tabCon">
- <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive dataTable no-footer">
- <thead>
- <tr>
- <th>标题</th>
- <th width="120">日期</th>
- </tr>
- </thead>
- <tbody id="messageTBody">
- <tr class="text-c" th:each="model:${messageList}" th:object="${model}">
- <td>
- <a title="展开" style="text-decoration:none" th:text="*{title}"
- th:onclick="'javascript:show_message(\'消息详情\',\'/message/check/'+*{id}+'/'+*{message_detail_id}+'\');'"></a>
- </td>
- <td th:text="*{#dates.format(create_time, 'yyyy-MM-dd HH:mm:ss')}"></td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="tabCon">
- <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive dataTable no-footer">
- <thead>
- <tr>
- <th>标题</th>
- <th width="100">申请单号</th>
- <th width="50">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model:${todoList}" th:object="${model}">
- <td th:text="*{title}"></td>
- <td th:text="*{business_no}"></td>
- <td>
- <a th:onclick="'javascript:open_dialog(\''+*{title}+'\',\''+*{url}+'\',\'1000\',\'700\');'">处理</a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <div class="row" style="margin-top: 20px;">
- <!-- 图表 -->
- <div class="col-sm-6 col-md-6 col-lg-6">
- <form th:if="${user_type==0}" class="form form-horizontal" th:action="@{/projectDeclaration/statistics}"
- th:method="get">
- <div class="chart_data mt-20 col-xs-12 col-sm-12" style="height: 400px; width: 650px;"
- id="container1"></div>
- </form>
- <form th:if="${user_type==4}" class="form form-horizontal" th:action="@{/projectDeclaration/statistics}"
- th:method="get">
- <div class="chart_data mt-20 col-xs-12 col-sm-12" style="height: 400px; width: 650px;"
- id="container1"></div>
- </form>
- </div>
- <div class="col-sm-6 col-md-6 col-lg-6">
- <form th:if="${user_type==0}" class="form form-horizontal" th:action="@{/projectDeclaration/statistics}"
- th:method="get">
- <div class="chart_data mt-20 col-xs-12 col-sm-12" style="height: 400px; width: 650px;"
- id="container2"></div>
- </form>
- <form th:if="${user_type==4}" class="form form-horizontal" th:action="@{/projectDeclaration/statistics}"
- th:method="get">
- <div class="chart_data mt-20 col-xs-12 col-sm-12" style="height: 400px; width: 650px;"
- id="container2"></div>
- </form>
- </div>
- </div>
- <!--<div class="page-container " th:if="${user_type==1}">-->
- <!--<div class="row cl">-->
- <!--<div class="col-xs-10 minHeight" style="width:48%;">-->
- <!--<table id="tenancyTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="5">租金未交企业</th>-->
- <!--</tr>-->
- <!--<tr class="text-c">-->
- <!--<th>客户名称</th>-->
- <!--<th>房租(元)</th>-->
- <!--<th>应缴费日期</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${duetenancyList}" th:object="${model}">-->
- <!--<td th:text="*{company_name}"></td>-->
- <!--<td th:text="*{house_fee}"></td>-->
- <!--<td th:text="*{pay_time}"></td>-->
- <!--</tr>-->
- <!--<tr>-->
- <!--<td scope="col" colspan="5"><a th:href="@{/build/tenancy/list}" style="float:right;color:#06c">更多>>></a></td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--<table id="electricWaterTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="4">水费未交租户</th>-->
- <!--</tr>-->
- <!--<tr class="text-c">-->
- <!--<th>客户名称</th>-->
- <!--<th>用水费用(元)</th>-->
- <!--<th>录入日期</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${dueWaterFeeList}" th:object="${model}">-->
- <!--<td th:text="*{company_name}"></td>-->
- <!--<td th:text="*{water_fee}"></td>-->
- <!--<td th:text="*{#dates.format(create_time, 'yyyy-MM-dd')}"></td>-->
- <!--</tr>-->
- <!--<tr>-->
- <!--<td scope="col" colspan="4"><a th:href="@{/build/electricWater/waterFeeList}" style="float:right;color:#06c">更多>>></a>-->
- <!--</td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--<table id="electricWaterTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="4">电费未交租户</th>-->
- <!--</tr>-->
- <!--<tr class="text-c">-->
- <!--<th>客户名称</th>-->
- <!--<th>用电费用(元)</th>-->
- <!--<th>录入日期</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${dueElectricFeeList}" th:object="${model}">-->
- <!--<td th:text="*{company_name}"></td>-->
- <!--<td th:text="*{electric_fee}"></td>-->
- <!--<td th:text="*{#dates.format(create_time, 'yyyy-MM-dd')}"></td>-->
- <!--</tr>-->
- <!--<tr>-->
- <!--<td scope="col" colspan="4"><a th:href="@{/build/electricWater/electricFeeList}" style="float:right;color:#06c">更多>>></a>-->
- <!--</td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--<table id="propertyTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="5">其他费未交企业</th>-->
- <!--</tr>-->
- <!--<tr class="text-c">-->
- <!--<th>客户名称</th>-->
- <!--<th>费用项</th>-->
- <!--<th>费用(元)</th>-->
- <!--<th>应缴费日期</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${duePropertyList}" th:object="${model}">-->
- <!--<td th:text="*{company_name}"></td>-->
- <!--<td>-->
- <!--<span th:if="*{fee_type}==0">停车费</span>-->
- <!--<span th:if="*{fee_type}==1">物业费</span>-->
- <!--</td>-->
- <!--<td th:text="*{total_fee}"></td>-->
- <!--<td th:text="*{pay_time}"></td>-->
- <!--</tr>-->
- <!--<tr>-->
- <!--<td scope="col" colspan="5" ><a th:href="@{/build/contract/propertyList}" style="float:right;color:#06c">更多>>></a></td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--</div>-->
- <!--<div class="col-xs-10 minHeight" style="width:48%;">-->
- <!--<table id="todoTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="2">待我处理</th>-->
- <!--</tr>-->
- <!--<tr class="text-c">-->
- <!--<th>主题</th>-->
- <!--<th>操作</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${maintenanceList}" th:object="${model}">-->
- <!--<td th:text="*{company_name}+'维修处理'"></td>-->
- <!--<td><a th:href="@{'/build/maintenance/updateDetailInfo/'+*{id}}">处理</a></td>-->
- <!--</tr>-->
- <!--<tr class="text-c" th:each="model:${companyShowList}" th:object="${model}">-->
- <!--<td th:text="*{company_name}+'产品介绍'"></td>-->
- <!--<td><a th:href="@{'/build/companyShow/auditPage/'+*{id}}">审核</a></td>-->
- <!--</tr>-->
- <!--<tr>-->
- <!--<td scope="col" colspan="2">-->
- <!--<a th:href="@{/build/maintenance/list}" style="float:right;margin-left: 20px;color:#06c">更多维修>>></a>-->
- <!--<a th:href="@{/build/companyShow/list}" style="float:right;color:#06c">更多企业审核>>></a>-->
- <!--</td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--<table id="notifyTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="1">通知公告</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${latestBuildNotifyList}" th:object="${model}">-->
- <!--<td class="text-l">-->
- <!--<div>-->
- <!--<div><a th:href="@{'/government/notify/info/'+*{id}+'/'+*{notify_detail_id}}"-->
- <!--th:text="*{title}"></a></div>-->
- <!--<div th:text="*{notify_abstract}"></div>-->
- <!--<div class="text-r" th:text="*{create_time}"></div>-->
- <!--</div>-->
- <!--</td>-->
- <!--</tr>-->
- <!--<tr>-->
- <!--<td scope="col" colspan="1"><a th:href="@{/government/notify/list}" style="float:right;color:#06c">更多>>></a>-->
- <!--</td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--<table id="contractTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="3">合同到期提醒</th>-->
- <!--</tr>-->
- <!--<tr class="text-c">-->
- <!--<th>客户名称</th>-->
- <!--<th>合同编号</th>-->
- <!--<th>合同到期日</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${endContractList}" th:object="${model}">-->
- <!--<td th:text="*{company_name}"></td>-->
- <!--<td th:text="*{contract_no}"></td>-->
- <!--<td th:text="*{contract_end_date}"></td>-->
- <!--</tr>-->
- <!--<tr>-->
- <!--<td scope="col" colspan="3"><a th:href="@{/build/contract/endList}" style="float:right;color:#06c">更多>>></a>-->
- <!--</td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--</div>-->
- <!--</div>-->
- <!--<div class="row cl">-->
- <!--<div class="col-xs-10 minHeight" style="width:48%;">-->
- <!--</div>-->
- <!--<div class="col-xs-10 minHeight" style="width:48%;">-->
- <!--</div>-->
- <!--</div>-->
- <!--</div>-->
- <!--<div class="page-container" th:if="${user_type==3}">-->
- <!--<div class="row cl">-->
- <!--<div class="col-xs-10" style="width:48%;">-->
- <!--<table id="todoTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="2">维修跟踪</th>-->
- <!--</tr>-->
- <!--<tr class="text-c">-->
- <!--<th>主题</th>-->
- <!--<th>状态</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${maintenanceList}" th:object="${model}">-->
- <!--<td th:text="*{question_name}"></td>-->
- <!--<td class="td-status" th:switch="*{is_processed}" >-->
- <!--<span th:case="false" class="label radius" >待处理</span>-->
- <!--<span th:case="true" class="label radius label-success" >已处理</span>-->
- <!--</td>-->
- <!--</tr> -->
- <!--<tr>-->
- <!--<td scope="col" colspan="2" >-->
- <!--<a th:href="@{/build/maintenance/list}" style="float:right;">更多>>></a>-->
- <!--</td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--</div>-->
- <!--<div class="col-xs-10" style="width:48%;">-->
- <!--<table id="tenancyTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="5">缴费提醒</th>-->
- <!--</tr>-->
- <!--<tr class="text-c">-->
- <!--<th>费用项</th>-->
- <!--<th>费用(元)</th>-->
- <!--<th>应缴费日期</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${feeList}" th:object="${model}">-->
- <!--<td th:text="*{fee_type}" th:class="*{remind_count}>0? 'red'"></td>-->
- <!--<td th:text="*{total_fee}" th:class="*{remind_count}>0? 'red'"></td>-->
- <!--<td th:text="*{pay_time}" th:class="*{remind_count}>0? 'red'"></td>-->
- <!--</tr>-->
- <!--<tr>-->
- <!--<td scope="col" colspan="5" ><a th:href="@{/build/company/feeList}" style="float:right;">更多>>></a></td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--</div>-->
- <!---->
- <!--</div>-->
- <!--<div class="row cl">-->
- <!--<div class="col-xs-10" style="width:48%;">-->
- <!--<table id="notifyTb" class="table table-border table-bordered table-bg table-hover">-->
- <!--<thead>-->
- <!--<tr>-->
- <!--<th scope="col" colspan="1">通知公告</th>-->
- <!--</tr>-->
- <!--</thead>-->
- <!--<tbody>-->
- <!--<tr class="text-c" th:each="model:${latestNotifyList}" th:object="${model}">-->
- <!--<td class="text-l">-->
- <!--<div>-->
- <!--<div><a th:href="@{'/government/notify/info/'+*{id}+'/'+*{notify_detail_id}}" th:text="*{title}"></a></div>-->
- <!--<div th:text="*{notify_abstract}"></div>-->
- <!--<div class="text-r" th:text="*{create_time}"></div>-->
- <!--</div>-->
- <!--</td>-->
- <!--</tr>-->
- <!--<tr>-->
- <!--<td scope="col" colspan="1" ><a th:href="@{/government/notify/list}" style="float:right;">更多>>></a></td>-->
- <!--</tr>-->
- <!--</tbody>-->
- <!--</table>-->
- <!--</div>-->
- <!---->
- <!--</div>-->
- <!---->
- <!--</div>-->
- <!--<div class="page-container" th:if="${user_type==0||user_type==4}">-->
- <!--<div class="row cl">-->
- <!--<div class="col-xs-12 col-sm-12" style="text-align: center">-->
- <!--<span class="select-box" style="width: 25%">-->
- <!--<select class="select build_list" onchange="selectData();"></select>-->
- <!--</span>-->
- <!--</div>-->
- <!--</div>-->
- <!--<div class="row cl">-->
- <!--<div class="col-xs-6 col-sm-6">-->
- <!--<div class="ml-170 col-xs-12 col-sm-12">-->
- <!--<span class="text-title">企业数据上报情况:</span>-->
- <!--<input type='text' class='width-70px ml-10 input-text' id='date' name='date'/>-->
- <!--</div>-->
- <!--<div class="company_data mt-20 col-xs-12 col-sm-12" style="height: 500px"></div>-->
- <!--<div class="mt-20 col-xs-12 col-sm-12">-->
- <!--<a th:href="@{/build/buildInfo/list}" style="float:right;color: #0c80fe">更多>>></a>-->
- <!--</div>-->
- <!--</div>-->
- <!--<div class="col-xs-6 col-sm-6" >-->
- <!--<div class="ml-170 col-xs-12 col-sm-12">-->
- <!--<span class="text-title">通知公告阅读情况:</span>-->
- <!--<input type='text' class='width-70px ml-10 input-text' id='pie_date' name='pie_date'/>-->
- <!--</div>-->
- <!--<div class=" ml-11 col-xs-12 col-sm-12" style="margin-top: 10px">-->
- <!--<label class="ml-30" >通告条数:<span class="notify_total"></span></label>-->
- <!--<label class="ml-30">推送企业数:<span class="push_total"></span></label>-->
- <!--<label class="ml-30">阅读企业数:<span class="read_total"></span></label>-->
- <!--<label class="ml-30">未阅企业数:<span class="unread_total"></span></label>-->
- <!--</div>-->
- <!--<div class="notify_data mt-20 col-xs-12 col-sm-12" style="height: 468px"></div>-->
- <!--<div class="mt-20 col-xs-12 col-sm-12">-->
- <!--<a th:href="@{/government/notify/list}" style="float:right;color: #0c80fe">更多>>></a>-->
- <!--</div>-->
- <!--</div>-->
- <!--</div>-->
- <!--</div>-->
- <!--<script type="text/javascript" th:if="${user_type==0||user_type==4}"-->
- <!--th:src="@{/js/build/index/build_index.js}"></script>-->
- <!--<script th:src="@{https://code.highcharts.com/5.0.12/highcharts.js}"></script>-->
- <!--<script th:src="@{https://code.highcharts.com/5.0.12/highcharts-more.js}"></script>-->
- <!--<script th:src="@{https://code.highcharts.com/maps/5.0.12/modules/map.js}"></script>-->
- <!--<script type="text/javascript" th:src="@{/js/lib/highcharts/highcharts.js}"></script>-->
- <!--<script type="text/javascript" th:src="@{/js/lib/highcharts/exporting.js}"></script>-->
- <!--<script type="text/javascript" th:src="@{/js/lib/highcharts/highcharts-zh_CN.js}"></script>-->
- <!--<script type="text/javascript">-->
- <!--$(function () {-->
- <!--var date=new Date;-->
- <!--var year=date.getFullYear();-->
- <!--var month=date.getMonth()+1;-->
- <!--month =(month<10 ? "0"+month:month);-->
- <!--var currentDate = (year.toString()+"-"+month.toString());-->
- <!--var userType = '[[${user_type}]]';-->
- <!--if (userType == 0 || userType == 4) {-->
- <!--$.ajax({-->
- <!--type: "get",-->
- <!--dataType: "json",-->
- <!--url: pagePath + "/admin/findBuildInfoList",-->
- <!--success: function (result) {-->
- <!--if (result.success) {-->
- <!--if (result.obj.length != 0) {-->
- <!--var html = "";-->
- <!--$.each(result.obj, function (index, item) {-->
- <!--html += "<option value='" + item.id + "'>" + item.name + "</option>";-->
- <!--});-->
- <!--$(".build_list").append(html);-->
- <!--initColumn(currentDate);-->
- <!--}-->
- <!--} else {-->
- <!--errorMessage(result.message);-->
- <!--}-->
- <!--},-->
- <!--error: function () {-->
- <!--errorMessage('系统错误!');-->
- <!--}-->
- <!--});-->
- <!--initPie(currentDate);-->
- <!--}-->
- <!--});-->
- <!--function initPie(value) {-->
- <!--$.ajax({-->
- <!--type: "get",-->
- <!--dataType: "json",-->
- <!--url: pagePath + "/admin/getPie/" + value,-->
- <!--success: function (result) {-->
- <!--if (result.success) {-->
- <!--$('.notify_data').highcharts({-->
- <!--chart: {-->
- <!--plotBackgroundColor: null,-->
- <!--plotBorderWidth: null,-->
- <!--plotShadow: false-->
- <!--},-->
- <!--title: {-->
- <!--text: null-->
- <!--},-->
- <!--colors:['#7cb5ec','#f7a35c'],-->
- <!--tooltip: {-->
- <!--headerFormat: '',-->
- <!--pointFormat: '{point.name}: <b>{point.y}</b>'-->
- <!--},-->
- <!--plotOptions: {-->
- <!--pie: {-->
- <!--allowPointSelect: true,-->
- <!--cursor: 'pointer',-->
- <!--dataLabels: {-->
- <!--enabled: true,-->
- <!--// 通过 format 或 formatter 来格式化数据标签显示-->
- <!--//format: '值: {point.y} 占比 {point.percentage} %',-->
- <!--formatter: function () {-->
- <!--//this 为当前的点(扇区)对象,可以通过 console.log(this) 来查看详细信息-->
- <!--return '<span"> ' + this.point.name + ':' + this.y + '</span>';-->
- <!--}-->
- <!--},-->
- <!--showInLegend: true // 显示在图例中-->
- <!--}-->
- <!--},-->
- <!--series: [{-->
- <!--type: 'pie',-->
- <!--name: '',-->
- <!--data: [-->
- <!--['已阅读', result.obj.read_total],-->
- <!--['未阅读', result.obj.unread_total],-->
- <!--]-->
- <!--}]-->
- <!--});-->
- <!--$(".notify_total").html(result.obj.total_notify);-->
- <!--$(".push_total").html(result.obj.push_total);-->
- <!--$(".read_total").html(result.obj.read_total);-->
- <!--$(".unread_total").html(result.obj.unread_total);-->
- <!--} else {-->
- <!--errorMessage(result.message);-->
- <!--}-->
- <!--},-->
- <!--error: function () {-->
- <!--errorMessage('系统错误!');-->
- <!--}-->
- <!--});-->
- <!--}-->
- <!--function initColumn(value) {-->
- <!--$.ajax({-->
- <!--type: "get",-->
- <!--dataType: "json",-->
- <!--data: {date: value},-->
- <!--url: pagePath + "/admin/getCompanyData/" + $(".build_list").val(),-->
- <!--success: function (result) {-->
- <!--if (result.success) {-->
- <!--$('.company_data').highcharts({-->
- <!--chart: {-->
- <!--type: 'column',-->
- <!--events: {-->
- <!--render: function () {-->
- <!--}-->
- <!--}-->
- <!--},-->
- <!--title: {-->
- <!--text: null-->
- <!--},-->
- <!--subtitle: {-->
- <!--text: null-->
- <!--},-->
- <!--xAxis: {-->
- <!--categories: ['入驻企业数量', '上报企业数量', '未上报企业数量'],-->
- <!--crosshair: true-->
- <!--},-->
- <!--yAxis: {-->
- <!--min: 0,-->
- <!--allowDecimals: false,-->
- <!--title: {-->
- <!--text: '数量 (个)',-->
- <!--align: 'high'-->
- <!--},-->
- <!--labels: {-->
- <!--overflow: 'justify'-->
- <!--}-->
- <!--},-->
- <!--tooltip: {-->
- <!--valueSuffix: ' 个'-->
- <!--},-->
- <!--plotOptions: {-->
- <!--column: {-->
- <!--pointPadding: 0.2,-->
- <!--borderWidth: 0-->
- <!--}-->
- <!--},-->
- <!--series: [{-->
- <!--name: $(".build_list").find("option:selected").html(),-->
- <!--data: [result.obj.company_num, result.obj.company_report_num, result.obj.company_not_report_num,]-->
- <!--}]-->
- <!--});-->
- <!--} else {-->
- <!--errorMessage(result.message);-->
- <!--}-->
- <!--},-->
- <!--error: function () {-->
- <!--errorMessage('系统错误!');-->
- <!--}-->
- <!--});-->
- <!--}-->
- <!--function selectData() {-->
- <!--initColumn($("#date").val());-->
- <!--}-->
- <!--laydate.render({-->
- <!--elem: '#date'-->
- <!--, type: 'month'-->
- <!--,value: new Date()-->
- <!--,btns: ['now', 'confirm']-->
- <!--// ,showBottom: false-->
- <!--,done: function(value ){//控件选择完毕后的回调---点击日期、清空、现在、确定均会触发。-->
- <!--initColumn(value);-->
- <!--}-->
- <!--});-->
- <!--laydate.render({-->
- <!--elem: '#pie_date'-->
- <!--, type: 'month'-->
- <!--,value: new Date()-->
- <!--,btns: ['now', 'confirm']-->
- <!--// ,showBottom: false-->
- <!--,done: function(value){//控件选择完毕后的回调---点击日期、清空、现在、确定均会触发。-->
- <!--initPie(value);-->
- <!--}-->
- <!--});-->
- <!--</script>-->
- <script th:src="@{https://code.highcharts.com/5.0.12/highcharts.js}"></script>
- <script th:src="@{https://code.highcharts.com/5.0.12/highcharts-more.js}"></script>
- <script th:src="@{https://code.highcharts.com/maps/5.0.12/modules/map.js}"></script>
- <!-- <script type="text/javascript" th:src="@{/js/lib/highcharts/highcharts.js}"></script> -->
- <script type="text/javascript" th:src="@{/js/lib/highcharts/exporting.js}"></script>
- <script type="text/javascript" th:src="@{/js/lib/highcharts/highcharts-zh_CN.js}"></script>
- <script th:inline="javascript">
- jQuery.Huitab = function (tabBar, tabCon, class_name, tabEvent, i) {
- var $tab_menu = $(tabBar);
- // 初始化操作
- $tab_menu.removeClass(class_name);
- $(tabBar).eq(i).addClass(class_name);
- $(tabCon).hide();
- $(tabCon).eq(i).show();
- $tab_menu.bind(tabEvent, function () {
- $tab_menu.removeClass(class_name);
- $(this).addClass(class_name);
- var index = $tab_menu.index(this);
- $(tabCon).hide();
- $(tabCon).eq(index).show()
- });
- }
- getWaitToDoPermission();
- $(document).ready(function () {
- //alert($("#tab_demo .tabBar span").length)
- //我的消息、待我处理
- $.Huitab("#tab_demo .tabBar span", "#tab_demo .tabCon", "current", "click", "0");
- //通知公告、政策法规
- $.Huitab("#tab_demo1 .tabBar span", "#tab_demo1 .tabCon", "current", "click", "0");
- });
- //我的消息、待我处理
- var $tab_menu = $("#tab_demo .tabBar span");
- var urls = pagePath + "/message/myMessage";
- var $mores = $("#tab_demo .tabBar a");
- $mores.attr("href", urls);
- $tab_menu.bind("click", function () {
- var index = $tab_menu.index(this);
- if (index == 0) {
- var url = pagePath + "/message/myMessage"
- var $more = $("#tab_demo .tabBar a");
- $more.attr("href", url);
- } else if (index == 1) {
- var url = pagePath + "/waitToDo/list"
- var $more = $("#tab_demo .tabBar a");
- $more.attr("href", url);
- }
- });
- //通知公告、政策法规
- var $tab_menu1 = $("#tab_demo1 .tabBar span");
- var urls = pagePath + "/home/informList/64"
- var $mores = $("#tab_demo1 .tabBar a");
- $mores.attr("href", urls);
- $tab_menu1.bind("click", function () {
- var index = $tab_menu1.index(this);
- if (index == 0) {
- var url = pagePath + "/home/informList/64"
- var $more = $("#tab_demo1 .tabBar a");
- $more.attr("href", url);
- } else if (index == 1) {
- // var url = pagePath + "/home/informList/66"
- var url = pagePath + "/home/policyList?lb=3"
- var $more = $("#tab_demo1 .tabBar a");
- $more.attr("href", url);
- }
- });
- var url = localStorage.getItem("url");
- if (url) {
- localStorage.removeItem("url");
- var index = layer_show("企业信息", pagePath + url, 800, 600);
- layer.full(index);
- }
- $(function () {
- var userType = [[${user_type}]];
- $(".highlight a").click(function () {
- $(this).addClass("cur").parent().siblings().find("a").removeClass("cur")
- })
- if (userType == 4 || userType == 0) {
- streetDeclaerNum("");
- projectCategoryRate();
- }
- });
- function getWaitToDoPermission(){
- $.ajax({
- url: pagePath + "/home/getWaitToDoPermission",
- type: "get",
- dataType: "json",
- data: {
- timeStamp: new Date()
- },
- success: function (result) {
- if (result.success) {
- var flag = result.obj;
- if (flag) {
- $("#myBacklog").show();
- }
- }
- }
- });
- }
- /************************* 项目申报 *****************************/
- //初始化柱形图
- var initColumn = {
- chart: {
- renderTo: 'container1',
- type: 'column',
- events: {
- render: function () {
- }
- }
- },
- title: {
- text: '2019年街道申报项目数'
- },
- subtitle: {
- text: null
- },
- xAxis: {
- crosshair: true
- },
- yAxis: {
- min: 0,
- allowDecimals: false,
- title: {
- text: '',
- align: 'high'
- },
- labels: {
- overflow: 'justify'
- }
- },
- tooltip: {
- valueSuffix: ' 个'
- },
- plotOptions: {
- column: {
- pointPadding: 0.2,
- borderWidth: 0
- }
- },
- series: []
- };
- //初始化饼图
- var initPie = {
- chart: {
- renderTo: 'container2',
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false
- },
- title: {
- text: '项目类别占比'
- },
- tooltip: {
- headerFormat: '',
- pointFormat: '{point.name}: <b>{point.y}</b> %'
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- // 通过 format 或 formatter 来格式化数据标签显示
- //format: '值: {point.y} 占比 {point.percentage} %',
- formatter: function () {
- //this 为当前的点(扇区)对象,可以通过 console.log(this) 来查看详细信息
- return '<span"> ' + this.point.name + ':' + this.y + '%</span>';
- }
- },
- showInLegend: true // 显示在图例中
- }
- },
- series: [{
- type: 'pie',
- name: ''
- }]
- };
- //各街道申报数量
- function streetDeclaerNum(type) {
- //$("#chartType").val(1);
- $.ajax({
- type: "post",
- dataType: "json",
- data: {
- begin_date: $("#begin_date").val(),
- end_date: $("#end_date").val(),
- type: type
- },
- url: pagePath + "/projectDeclaration/streetDeclaerNum/",
- success: function (result) {
- // console.log(result);
- if (result.success) {
- var chart = new Highcharts.Chart(initColumn);
- var categoies = [];
- var row1 = [];
- var row2 = [];
- var value = result.obj;
- for (var j = 0; j < value.length; j++) {
- categoies.push(value[j].street_name);
- row1.push(value[j].declare_num);
- row2.push(value[j].declare_success);
- }
- chart.xAxis[0].categories = categoies;
- chart.addSeries({
- name: "申报项目",
- data: row1
- });
- chart.addSeries({
- name: "申报成功",
- data: row2
- });
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- //项目类别占比
- function projectCategoryRate(type) {
- //$("#chartType").val(2);
- $.ajax({
- type: "post",
- dataType: "json",
- data: {
- begin_date: $("#begin_date").val(),
- end_date: $("#end_date").val(),
- type: type
- },
- url: pagePath + "/projectDeclaration/projectCategoryRate",
- success: function (result) {
- // console.log(result);
- if (result.success) {
- var value = result.obj;
- var data = [];
- for (var j = 0; j < value.length; j++) {
- data.push({"name": value[j].project_type_name, "y": value[j].category_rate});
- }
- // console.log(data);
- var chart = new Highcharts.Chart(initPie);
- chart.series[0].setData(data);
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- //项目发展趋势
- function projectDevelopmentTrend(type) {
- $("#chartType").val(3);
- var initPolyline = Highcharts.chart('container2', {
- title: {
- text: '项目发展趋势',
- x: -20 //center
- },
- // subtitle: {
- // text: 'Source: WorldClimate.com',
- // x: -20
- // },
- xAxis: {
- categories: []
- },
- yAxis: {
- title: {
- text: '项目申请次数(次)'
- },
- plotLines: [{
- value: 0,
- width: 1,
- color: '#808080'
- }]
- },
- tooltip: {
- valueSuffix: '次'
- },
- legend: {
- layout: 'vertical',
- align: 'right',
- verticalAlign: 'middle',
- borderWidth: 0
- },
- series: []
- });
- $.ajax({
- type: "post",
- dataType: "json",
- data: {
- begin_date: $("#begin_date").val(),
- end_date: $("#end_date").val(),
- type: type
- },
- url: pagePath + "/projectDeclaration/projectDevelopmentTrend",
- success: function (result) {
- // console.log(result);
- if (result.success) {
- var obj = result.obj;
- var map = obj.polyline_data;
- //x轴年份
- var categories = obj.year_array;
- initPolyline.xAxis[0].categories = categories;
- //展示数据
- for (var key in map) {
- initPolyline.addSeries({
- name: key,
- data: map[key]
- });
- }
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- //各街道申报趋势
- function streetReportingTrend(type) {
- $("#chartType").val(4);
- var initPolyline = Highcharts.chart('container1', {
- title: {
- text: '各街道申报趋势',
- x: -20 //center
- },
- // subtitle: {
- // text: 'Source: WorldClimate.com',
- // x: -20
- // },
- xAxis: {
- categories: []
- },
- yAxis: {
- title: {
- text: '申请次数(次)'
- },
- min: 0,
- allowDecimals: false,
- },
- tooltip: {
- valueSuffix: '次'
- },
- legend: {
- layout: 'vertical',
- align: 'right',
- verticalAlign: 'middle',
- borderWidth: 0
- },
- series: []
- });
- $.ajax({
- type: "post",
- dataType: "json",
- data: {
- begin_date: $("#begin_date").val(),
- end_date: $("#end_date").val(),
- type: type
- },
- url: pagePath + "/projectDeclaration/streetReportingTrend",
- success: function (result) {
- // console.log(result);
- if (result.success) {
- var obj = result.obj;
- var map = obj.polyline_data;
- //x轴年份
- var categories = obj.year_array;
- initPolyline.xAxis[0].categories = categories;
- //展示数据
- for (var key in map) {
- initPolyline.addSeries({
- name: key,
- data: map[key]
- });
- }
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- //各类别项目申请情况
- function filingSituation(type) {
- $("#chartType").val(5);
- $.ajax({
- type: "post",
- dataType: "json",
- data: {
- begin_date: $("#begin_date").val(),
- end_date: $("#end_date").val(),
- type: type
- },
- url: pagePath + "/projectDeclaration/filingSituation/",
- success: function (result) {
- // console.log(result);
- if (result.success) {
- var chart = new Highcharts.Chart(initColumn);
- var categoies = [];
- var row1 = [];
- var row2 = [];
- var value = result.obj;
- for (var j = 0; j < value.length; j++) {
- categoies.push(value[j].project_type_name);
- row1.push(value[j].declare_num);
- row2.push(value[j].declare_success);
- }
- chart.xAxis[0].categories = categoies;
- chart.addSeries({
- name: "申报项目",
- data: row1
- });
- chart.addSeries({
- name: "申报成功",
- data: row2
- });
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- function streetDeclaer() {
- var chartType = $("#chartType").val();
- if (chartType == 1) {
- streetDeclaerNum();
- }
- if (chartType == 2) {
- projectCategoryRate();
- }
- if (chartType == 3) {
- projectDevelopmentTrend();
- }
- if (chartType == 4) {
- streetReportingTrend();
- }
- if (chartType == 5) {
- filingSituation();
- }
- }
- function getDataByYear(type) {
- var chartType = $("#chartType").val();
- $("#begin_date").val("");
- $("#end_date").val("");
- if (chartType == 1) {
- streetDeclaerNum(type);
- }
- if (chartType == 2) {
- projectCategoryRate(type);
- }
- if (chartType == 3) {
- projectDevelopmentTrend(type);
- }
- if (chartType == 4) {
- streetReportingTrend(type);
- }
- if (chartType == 5) {
- filingSituation(type);
- }
- }
- /************************* 项目申报 *****************************/
- laydate.render({
- elem: '#begin_date', //指定元素
- // min: 0
- });
- laydate.render({
- elem: '#end_date', //指定元素
- // min: 0
- });
- function gotoContentDetail(id) {
- //top.location.href = pagePath + "/home/activityDetail/" + id;
- // window.open(pagePath + "/home/contentDetail/" + id);
- window.open(pagePath + "/home/policyDetail?bno=" + id);
- }
- function open_dialog(title, url, w, h) {
- var index = layer_show(title, pagePath + url, w, h);
- //默认全屏
- layer.full(index);
- }
- //消息。
- function show_message(title, url) {
- layer_show(title, pagePath + url, "800", "500");
- //reloadMessage();
- }
- //重新加载消息
- function reloadMessage() {
- $.ajax({
- type: "get",
- dataType: "json",
- data: {},
- url: pagePath + "/message/loadMyMessage",
- success: function (result) {
- if (result.success) {
- //重新加载首页消息列表
- messageList = result.obj.messageList;
- if (messageList.length > 0) {
- $("#messageTBody").find("tr").remove();
- for (var i = 0; i < messageList.length; i++) {
- /*
- <tr class="text-c" th:each="model:${messageList}" th:object="${model}">
- <td >
- <a title="展开" style="text-decoration:none" th:text="*{title}"
- th:onclick="'javascript:show_message(\'消息详情\',\'/message/check/'+*{id}+'/'+*{message_detail_id}+'\');'"></a>
- </td>
- <td th:text="*{#dates.format(create_time, 'yyyy-MM-dd HH:mm:ss')}"></td>
- </tr>
- */
- var message = messageList[i];
- var tr = '<tr class="text-c">';
- tr += '<td><a title="展开" style="text-decoration:none" onclick="javascript:show_message(\'消息详情\',\'/message/check/' + message.id + '/' + message.message_detail_id + '\');">' + message.title + '</a></td>';
- tr += '<td>' + message.create_time + '</td>';
- tr += '</tr>';
- $("#messageTBody").append(tr);
- }
- } else {
- $("#messageTBody").find("tr").remove();
- }
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- </script>
- </body>
- </html>
|