| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878 |
- <!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>
- .chartContent * {
- padding: 0;
- margin: 0;
- }
- .chartContent .title {
- border-left: 5px solid #2B9CF9;
- padding: 0 10px;
- line-height: 1.5em;
- color: #666;
- margin: 25px 0 15px;
- }
- .chartLiContent {
- overflow: hidden
- }
- .chartContent .chartLi {
- float: left;
- height: 200px;
- box-sizing: border-box;
- }
- .chartContent .tableHead {
- background: #2B9CF9;
- line-height: 1.5em;
- color: #fff;
- padding: 10px 0;
- text-align: center;
- }
- .chartContent .tableHead .tableHeadLi {
- float: left;
- }
- .chartContent .tableHead {
- overflow: hidden;
- }
- .chartContent .tableBody {
- }
- .chartContent .tableBodyLi {
- overflow: hidden;
- background: #eee;
- }
- .chartContent .tableBodyLi .liHead {
- overflow: hidden;
- }
- .chartContent .tableBodyLi .liHeadTopTd {
- float: left;
- line-height: 1.2em;
- padding: 5px 0px 5px 0px;
- font-size: 14px;
- color: #666;
- }
- .chartContent .tableBodyLi .liHeadTopTd i.close:before {
- content: "\e665";
- }
- .chartContent .tableBodyLi .liBodyLi .td {
- float: left;
- line-height: 1.2em;
- /*padding: 5px;*/
- /*color: #666;*/
- text-align: center;
- display: flex;
- align-items: center;
- justify-content: center;
- min-height: 30px;
- }
- .chartContent .date_line {
- width: 1200px;
- position: relative;
- overflow: hidden;
- }
- .chartContent .date_line > i {
- z-index:5;
- position: absolute;
- top: 0;
- padding: 10px;
- font-weight: bold;
- cursor: pointer;
- background: #ffffff;
- }
- .chartContent .date_line .pre_month {
- left: -8px;
- }
- .chartContent .date_line .next_month {
- right: -8px;
- }
- .chartContent .date_line .date_tab_list {
- border-bottom: 1px solid #e2e3e4;
- width: 6000px;
- position: relative;
- left: 0;
- top: 0;
- }
- .chartContent .date_line .date_tab_list .date_tab_item {
- display: inline-block;
- float: left;
- width:58px;
- text-align: center;
- margin-left: 15px;
- margin-right: 15px;
- border: 1px solid #e2e3e3;
- border-bottom: none;
- background-color: #eaeaea;
- padding: 10px 20px;
- cursor: pointer;
- margin-bottom: -1px;
- }
- .chartContent .date_line .date_tab_list .date_tab_item:first-child {
- margin-left: 30px;
- }
- .chartContent .date_line .date_tab_list .active_month {
- background-color: #ffffff;
- color: #00a0e9;
- }
- .table001 * {
- padding: 0;
- margin: 0;
- }
- .table001 table, .table001 .table {
- display: table;
- border-collapse: collapse;
- border-spacing: 0;
- table-layout: fixed;
- }
- .table001 table td {
- border: 1px solid #999;
- padding: 5px;
- }
- .table001 table thead td {
- background: #2B9CF9;
- color: #fff;
- border-color: #2B9CF9;
- padding: 5px 10px;
- line-height: 1.5em;
- text-align: center;
- }
- .liBody {
- background-color: #ffffff;
- }
- .liBodyLi {
- border-bottom: 1px solid #eaeaea;
- }
- .clearfix:after { /*伪元素是行内元素 正常浏览器清除浮动方法*/
- content: "";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
- }
- .clearfix {
- *zoom: 1; /*ie6清除浮动的方式 *号只有IE6-IE7执行,其他浏览器不执行*/
- }
- </style>
- <link rel="stylesheet" th:href="@{/home/ifont/iconfont.css}">
- </head>
- <body layout:fragment="content">
- <nav class="breadcrumb">
- <i class="Hui-iconfont"></i>
- 首页
- <span class="c-gray en">></span>
- 用地服务
- <span class="c-gray en">></span>
- 用地管理统计
- <span class="c-gray en">></span>
- 全区统计
- </nav>
- <div class="chartContent">
- <div class="title">当前审核状态统计</div>
- <div class="chartLiContent">
- <div id="pending_pie" class="chartLi" style="width:30%;"></div>
- <div id="processing_bar" class="chartLi" style="width:40%;"></div>
- <div id="processed_pie" class="chartLi" style="width:30%;"></div>
- </div>
- </div>
- <div class="chartContent">
- <div class="title">月度分类统计</div>
- <div class="date_line">
- <i class="pre_month Hui-iconfont Hui-iconfont-slider-left"></i>
- <i class="next_month Hui-iconfont Hui-iconfont-slider-right"></i>
- <ul class="date_tab_list clearfix">
- <li class="active_month date_tab_item">2019-05</li>
- <li class="date_tab_item">2019-06</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-06</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-06</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-06</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-06</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-06</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-07</li>
- <li class="date_tab_item">2019-07</li>
- </ul>
- </div>
- <div id="monthly_type_bar" style="width: 1200px; height: 400px"></div>
- </div>
- <div class="chartContent">
- <div class="title">月度审核结果对比</div>
- <div id="monthly_approve_bar" style="width: 1200px; height: 400px"></div>
- </div>
- <div class="chartContent">
- <div class="title">月度审核统计表</div>
- <input class="Wdate input-text" type="text" th:id="monthly_start_time" th:name="monthly_start_time"
- style="float:left; width: 150px;"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'monthly_end_time\')}',isShowClear:true,readOnly:true,onpicked: function(){getMontylyApproveStatistic()} })"/>
- <input class="Wdate input-text" type="text" th:id="monthly_end_time" th:name="monthly_end_time"
- style="float:left; width: 150px;"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'monthly_start_time\')}',isShowClear:true,readOnly:true,onpicked: function(){getMontylyApproveStatistic()} })"/>
- <a th:onclick="'javascript:exportMonthlyStatistic();'"
- class="btn btn-secondary radius" type="button">导出</a>
- <div class="table001" style="width: 96%; margin-left: 2%;">
- <table id="monthly_approve_statistic" th:fragment="approve_statistic_monthly">
- <thead>
- <tr>
- <td> </td>
- <td colspan="3">存量工业用地房屋出租</td>
- <td colspan="3">存量工业用地用途依法改变</td>
- <td colspan="3">存量工业用地不动产权权属转移登记</td>
- <td colspan="3">存量工业用地项目公司股权(结构)变更登记</td>
- <td colspan="3">汇总</td>
- </tr>
- <tr>
- <td> </td>
- <td>提交数</td>
- <td>通过数</td>
- <td>通过率</td>
- <td>提交数</td>
- <td>通过数</td>
- <td>通过率</td>
- <td>提交数</td>
- <td>通过数</td>
- <td>通过率</td>
- <td>提交数</td>
- <td>通过数</td>
- <td>通过率</td>
- <td>提交数</td>
- <td>通过数</td>
- <td>通过率</td>
- </tr>
- </thead>
- <tbody>
- <tr th:each="model,iterStat:${list}" th:object="${model}">
- <td th:text="*{rowName}"></td>
- <td th:text="*{rentApplyNum}"></td>
- <td th:text="*{rentPassNum}"></td>
- <td th:text="*{rentPassRate + '%'}"></td>
- <td th:text="*{useChangeApplyNum}"></td>
- <td th:text="*{useChangePassNum}"></td>
- <td th:text="*{useChangePassRate + '%'}"></td>
- <td th:text="*{immovablesChangeApplyNum}"></td>
- <td th:text="*{immovablesChangePassNum}"></td>
- <td th:text="*{immovablesChangePassRate + '%'}"></td>
- <td th:text="*{equityStructureChangeApplyNum}"></td>
- <td th:text="*{equityStructureChangePassNum}"></td>
- <td th:text="*{equityStructureChangePassRate}"></td>
- <td th:text="*{totalApplyNum}"></td>
- <td th:text="*{totalPassNum}"></td>
- <td th:text="*{totalPassRate + '%'}"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="chartContent">
- <div class="title">板块统计表</div>
- <input class="Wdate input-text" type="text" th:id="plate_start_time" th:name="plate_start_time"
- style="float:left; width: 150px;"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'plate_end_time\')}',isShowClear:true,readOnly:true,onpicked: function(){getPlateStatistic()} })"/>
- <input class="Wdate input-text" type="text" th:id="plate_end_time" th:name="plate_end_time"
- style="float:left; width: 150px;"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'plate_start_time\')}',isShowClear:true,readOnly:true,onpicked: function(){getPlateStatistic()} })"/>
- <a th:onclick="'javascript:exportPlateStatistic();'"
- class="btn btn-secondary radius" type="button">导出</a>
- <div id="plate_approve_statistic" th:fragment="approve_statistic_plate">
- <div class="tableHead" style="width: 96%; margin-left: 2%;">
- <div class="tableHeadLi" style="width:9%;" th:each="model,iterStat:${head}" th:object="${model}"
- th:if="${iterStat.index==0}">
- </div>
- <div class="tableHeadLi" style="width:9%;" th:each="model,iterStat:${head}" th:object="${model}"
- th:text="*{name}" th:if="${iterStat.index!=0}">
- </div>
- <!-- <div class="tableHeadLi" style="width:10%;">狮山街道(含横塘)</div>-->
- <!-- <div class="tableHeadLi" style="width:10%;">枫桥街道</div>-->
- <!-- <div class="tableHeadLi" style="width:10%;">浒墅关镇</div>-->
- <!-- <div class="tableHeadLi" style="width:10%;">通安镇</div>-->
- <!-- <div class="tableHeadLi" style="width:10%;">浒墅关经开区</div>-->
- <!-- <div class="tableHeadLi" style="width:10%;">科技城(含东渚)</div>-->
- <!-- <div class="tableHeadLi" style="width:10%;">综合保税区</div>-->
- <!-- <div class="tableHeadLi" style="width:10%;">度假区(含镇湖)</div>-->
- <!-- <div class="tableHeadLi" style="width:10%;">区外</div>-->
- <!-- <div class="tableHeadLi" style="width:10%;">合计</div>-->
- </div>
- <div class="tableBody" style="width: 96%; margin-left: 2%;">
- <div class="tableBodyLi" th:each="model,iterStat:${data}" th:object="${model}">
- <div class="liHead">
- <div class="liHeadTopTd" style="width:9%;">
- <i class="ifont-youx-copy-copy open" style="float: left;"></i>
- <div th:text="*{name}">提交数量</div>
- </div>
- <div class="liHeadTopTd" style="width:9%;text-align: center" th:each="arrayS:*{num}"
- th:object="${model}" th:text="${arrayS}">100
- </div>
- </div>
- <div class="liBody">
- <div class="liBodyLi clearfix" th:each="model,iterStat:*{type}" th:object="${model}">
- <div class="td" style="width:9%;" th:text="*{name}">1</div>
- <div class="td" style="width:9%;" th:each="arrayS:*{streetNum}" th:object="${model}"
- th:text="${arrayS}">2
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script th:inline="javascript">
- getApproveStatus("");
- getTypeStatistic("", "", "");
- getMontylyApproveStatus();
- getMontylyApproveStatistic();
- getPlateStatistic();
- //当前审核状态统计
- function getApproveStatus(streedId) {
- $.ajax({
- url: pagePath + "/land_statistic/approve/status?street_id=" + streedId,
- type: "get",
- dataType: "json",
- data: {
- "timestamp": new Date().getTime(),
- },
- success: function (result) {
- if (result.success) {
- // console.log(result.obj)
- pendingArray = result.obj.pending;
- processingArray = result.obj.processing;
- processedArray = result.obj.processed;
- var processingXAxisData = new Array();
- var processingData = new Array();
- for (var argument of processingArray) {
- processingXAxisData.push(argument.name);
- processingData.push(argument.value);
- // console.log(argument)
- }
- renderPendingPie("待审核", pendingArray, pendingArray);
- renderProcessingBar("审核中", processingXAxisData, processingData);
- renderProcessedPie("已审核", processedArray, processedArray);
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- //月度分类统计
- function getTypeStatistic(streedId, startTime, endTime) {
- $.ajax({
- url: pagePath + "/land_statistic/approve/type?street_id=" + streedId + "&start_time" + startTime + "&end_time" + endTime,
- type: "get",
- dataType: "json",
- data: {
- "timestamp": new Date().getTime(),
- },
- success: function (result) {
- if (result.success) {
- // console.log(result.obj)
- var data = result.obj.data
- var xAxisName = result.obj.xAxisName;
- var legendData = new Array();
- for (var argument of data) {
- legendData.push(argument.name);
- }
- renderMonthlyTypeBar(legendData, xAxisName, data);
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- //月度审核结果统计
- function getMontylyApproveStatus() {
- $.ajax({
- url: pagePath + "/land_statistic/approve/result/monthly",
- type: "get",
- dataType: "json",
- data: {
- "timestamp": new Date().getTime(),
- },
- success: function (result) {
- if (result.success) {
- console.log(result.obj)
- var data = result.obj.data
- var xAxisName = result.obj.xAxisName;
- var legendData = new Array();
- for (var argument of data) {
- legendData.push(argument.name);
- }
- renderMonthlyApproveBar(legendData, xAxisName, data);
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- //当前审核状态统计 待审核
- function renderPendingPie(title, legendData, data) {
- // 基于准备好的dom,初始化echarts实例
- var charts = echarts.init(document.getElementById('pending_pie'));
- // 指定图表的配置项和数据
- var option = {
- title: {
- text: title,
- textStyle: {
- fontSize: 18,
- fontWeight: 'bold'
- }
- },
- tooltip: {
- trigger: 'item',
- zlevel: 1,
- formatter: '{a} <br/>{b}: {c} ({d}%)'
- },
- legend: {
- orient: 'horizontal',
- bottom: 10,
- data: legendData
- },
- series: [
- {
- name: title,
- type: 'pie',
- radius: ['50%', '70%'],
- avoidLabelOverlap: false,
- label: {
- normal: {
- show: true,
- zlevel: 0,
- position: 'center',
- formatter: function () {
- var num = 0;
- for (var obj of data) {
- num += obj.value;
- }
- return num;
- }
- },
- emphasis: {
- show: false,
- textStyle: {
- fontSize: '30',
- fontWeight: 'bold'
- }
- }
- },
- labelLine: {
- normal: {
- show: false
- }
- },
- data: data
- }
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- charts.setOption(option);
- }
- //当前审核状态统计 审核中
- function renderProcessingBar(title, xAxisData, data) {
- // 基于准备好的dom,初始化echarts实例
- var charts = echarts.init(document.getElementById('processing_bar'));
- // 指定图表的配置项和数据
- option = {
- title: {
- text: title,
- textStyle: {
- fontSize: '18',
- fontWeight: 'bold'
- }
- },
- color: ['#3398DB'],
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- grid: {
- left: '3%',
- right: '4%',
- bottom: '3%',
- containLabel: true
- },
- xAxis: [
- {
- type: 'category',
- data: xAxisData,
- axisTick: {
- alignWithLabel: true
- },
- axisLabel: {
- interval: 0
- }
- }
- ],
- yAxis: [
- {
- type: 'value'
- }
- ],
- series: [
- {
- name: '',
- type: 'bar',
- barWidth: '60%',
- label: {
- normal: {
- show: true,
- position: 'top'
- }
- },
- data: data
- }
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- charts.setOption(option);
- }
- //当前审核状态统计 已审核
- function renderProcessedPie(title, legendData, data) {
- // 基于准备好的dom,初始化echarts实例
- var charts = echarts.init(document.getElementById('processed_pie'));
- // 指定图表的配置项和数据
- var option = {
- title: {
- text: title,
- textStyle: {
- fontSize: '18',
- fontWeight: 'bold'
- }
- },
- tooltip: {
- trigger: 'item',
- zlevel: 1,
- formatter: '{a} <br/>{b}: {c} ({d}%)'
- },
- legend: {
- orient: 'horizontal',
- bottom: 10,
- data: legendData
- },
- series: [
- {
- name: title,
- type: 'pie',
- radius: '70%',
- avoidLabelOverlap: false,
- label: {
- normal: {
- show: true,
- zlevel: 0,
- position: 'top',
- formatter: function () {
- var num = 0;
- for (var obj of data) {
- num += obj.value;
- }
- return num;
- }
- },
- emphasis: {
- show: false,
- textStyle: {
- fontSize: '30',
- fontWeight: 'bold'
- }
- }
- },
- labelLine: {
- normal: {
- show: false
- }
- },
- data: data
- }
- ]
- };
- // 使用刚指定的配置项和数据显示图表。
- charts.setOption(option);
- }
- function getMonth() {
- var dataArr = [];
- var data = new Date();
- var year = data.getFullYear();
- data.setMonth(data.getMonth() + 1, 1) //获取到当前月份,设置月份
- for (var i = 0; i < 12; i++) {
- data.setMonth(data.getMonth() - 1); //每次循环一次 月份值减1
- var m = data.getMonth() + 1;
- m = m < 10 ? "0" + m : m;
- dataArr.unshift(data.getFullYear() + "-" + (m));
- }
- var date = new Date(), y = date.getFullYear(), m = date.getMonth();
- var firstDay = new Date(y, m, 1);
- var lastDay = new Date(y, m + 1, 0);
- console.log(firstDay.format('yyyy-MM-dd') + " 00:00:00")
- console.log(lastDay.format('yyyy-MM-dd') + " 23:59:59")
- return dataArr;
- }
- //月度分类统计
- function renderMonthlyTypeBar(legendData, xAxisName, data) {
- // 基于准备好的dom,初始化echarts实例
- var charts = echarts.init(document.getElementById('monthly_type_bar'));
- charts.on('timelinechanged', function (timeLineIndex) {
- console.log(timeLineIndex.currentIndex)
- });
- // 指定图表的配置项和数据
- option = {
- // timeline: {
- // axisType: "category",
- // currentIndex: 11,
- // data: getMonth()
- // },
- color: ['#003366', '#006699', '#4cabce', '#e5323e'],
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
- legend: {
- orient: 'vertical',
- top: 80,
- right: 10,
- data: legendData
- },
- xAxis: [
- {
- type: 'category',
- axisTick: {show: false},
- data: xAxisName,
- axisLabel: {
- interval: 0,
- formatter: function (value) {
- var ret = '';
- var maxLength = 10;
- var xAxisName = value.split("\n\n")[0];
- var rate = value.split("\n\n")[1];
- var rowNum = Math.ceil(xAxisName.length / maxLength);
- if (rowNum > 1) {
- for (var i = 0; i < rowNum; i++) {
- var temp = "";
- var start = i * maxLength;
- var end = start + maxLength;
- temp = xAxisName.substring(start, end) + "\n";
- ret += temp;
- }
- return ret + "\n" + rate;
- } else {
- return xAxisName + "\n" + rate;
- }
- }
- }
- }
- ],
- yAxis: [{type: 'value'}],
- series: data
- };
- // 使用刚指定的配置项和数据显示图表。
- charts.setOption(option);
- }
- //月度审核结果对比
- function renderMonthlyApproveBar(legendData, xAxisName, data) {
- // 基于准备好的dom,初始化echarts实例
- var charts = echarts.init(document.getElementById('monthly_approve_bar'));
- // 指定图表的配置项和数据
- option = {
- color: ['#006699', '#4cabce', '#e5323e'],
- tooltip: {
- trigger: 'axis',
- axisPointer: { // 坐标轴指示器,坐标轴触发有效
- type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
- }
- },
- legend: {
- orient: 'vertical',
- top: 80,
- right: 10,
- data: legendData
- },
- yAxis: {type: 'value'},
- xAxis: {
- type: 'category',
- data: xAxisName
- },
- series: data
- };
- // 使用刚指定的配置项和数据显示图表。
- charts.setOption(option);
- optionCustom = {
- series: [
- {
- barWidth: 30
- }
- ]
- };
- charts.setOption(optionCustom);
- }
- //月度审核统计表
- function getMontylyApproveStatistic() {
- var url = pagePath + "/land_statistic/approve/statistic/monthly"
- var start_time = $('#monthly_start_time').val();
- var end_time = $('#monthly_end_time').val();
- url += "?start_time=" + start_time + "&end_time=" + end_time;
- // 装载局部刷新返回的页面
- $('#monthly_approve_statistic').load(url);
- }
- //导出月度统计
- function exportMonthlyStatistic() {
- var start_time = $('#monthly_start_time').val();
- var end_time = $('#monthly_end_time').val();
- window.open(pagePath + "/land_statistic/approve/statistic/monthly/export?start_time=" + start_time + "&end_time=" + end_time);
- }
- //导出板块统计
- function exportPlateStatistic() {
- var start_time = $('#plate_start_time').val();
- var end_time = $('#plate_end_time').val();
- window.open(pagePath + "/land_statistic/approve/statistic/plate/export?start_time=" + start_time + "&end_time=" + end_time);
- }
- //板块统计表
- function getPlateStatistic() {
- var start_time = $('#plate_start_time').val();
- var end_time = $('#plate_end_time').val();
- // 装载局部刷新返回的页面
- $('#plate_approve_statistic').load(pagePath + "/land_statistic/approve/statistic/plate?start_time=" + start_time + "&end_time=" + end_time);
- }
- $(document).on("click", ".liHead", function () {
- console.log("点击了", $(this).next().is(":hidden"))
- if (!$(this).next().is(":hidden")) {
- $(this).next().slideUp(200)
- $(this).children(":first").children(":first").attr("class", "ifont-youx-copy-copy close")
- } else {
- $(this).next().slideDown(200)
- $(this).children(":first").children(":first").attr("class", "ifont-youx-copy-copy open")
- }
- })
- // 点击前一页
- $('.date_line .pre_month').click(function(){
- let offsetNum = $('.date_tab_list').position().left
- // console.log('父元素偏移量', offsetNum)
- if (Math.abs(offsetNum) >= 1170) {
- let offsetLeft = (offsetNum + 1170 + 'px')
- $(".date_tab_list").animate({left: offsetLeft}, 1000)
- } else {
- console.log('已到头')
- }
- })
- // 点击后一页
- $('.date_line .next_month').click(function(){
- let offsetNum = $('.date_tab_list').position().left
- let childrenNum = $('.date_tab_list').children('.date_tab_item').length
- let maxOffset = (Math.ceil(childrenNum/9) - 1) * 1170
- // console.log('父元素偏移量', offsetNum)
- // console.log('子元素数量', childrenNum)
- // console.log('最大偏移量', maxOffset)
- if (Math.abs(offsetNum) < maxOffset) {
- let offsetLeft = (offsetNum - 1170 + 'px')
- $(".date_tab_list").animate({left: offsetLeft}, 1000)
- } else {
- console.log('已到达最大距离')
- }
- })
- // 点击统计日期
- $('.date_tab_list .date_tab_item').click(function(){
- console.log('当前点击日期', $(this).html())
- $(this).addClass('active_month').siblings().removeClass("active_month")
- })
- Date.prototype.format = function (format) {
- var o = {
- "M+": this.getMonth() + 1, //month
- "d+": this.getDate(), //day
- "h+": this.getHours(), //hour
- "m+": this.getMinutes(), //minute
- "s+": this.getSeconds(), //second
- "q+": Math.floor((this.getMonth() + 3) / 3), //quarter
- "S": this.getMilliseconds() //millisecond
- }
- if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
- (this.getFullYear() + "").substr(4 - RegExp.$1.length));
- for (var k in o) if (new RegExp("(" + k + ")").test(format))
- format = format.replace(RegExp.$1,
- RegExp.$1.length == 1 ? o[k] :
- ("00" + o[k]).substr(("" + o[k]).length));
- return format;
- }
- </script>
- </body>
- </html>
|