| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443 |
- <!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_menu.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 $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);
- }
- 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>
|