162 lines
5.4 KiB
Plaintext
162 lines
5.4 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
|
<%@ page import="com.sipai.entity.base.ServerObject"%>
|
|
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security"%>
|
|
|
|
<!DOCTYPE html>
|
|
<!-- <html lang="zh-CN"> -->
|
|
<!-- BEGIN HEAD -->
|
|
<head>
|
|
<title><%= ServerObject.atttable.get("TOPTITLE")%></title>
|
|
<!-- 引用页头及CSS页-->
|
|
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
|
|
|
<script type="text/javascript">
|
|
var timer;
|
|
function changeData(){
|
|
console.log(1);
|
|
var year = $("#yeartimeId").val();
|
|
$.post(ext.contextPath + '/efficiency/efficiencyStatistics/getEfficiencyStatistics2.do', {unitId:unitId,year:year} , function(data) {
|
|
console.log(3);
|
|
window.clearInterval(timer);
|
|
$("#button").html("切换为总览");
|
|
// $("#button").on("click",changeBackData());
|
|
$("#button").attr("onclick","changeBackData()");
|
|
|
|
$("#table").html(data);
|
|
});
|
|
console.log(2);
|
|
$("#button").off("click");
|
|
$("#button").removeAttr("onclick");
|
|
$("#button").html("请稍后");
|
|
timer = window.setInterval("changePoint()", 1000);
|
|
|
|
}
|
|
|
|
function exportData() {
|
|
var year = $("#yeartimeId").val();
|
|
window.open(ext.contextPath + "/efficiency/efficiencyStatistics/exportExcel.do?unitId="+unitId
|
|
+"&year="+year);
|
|
}
|
|
|
|
function changeBackData(){
|
|
console.log(11);
|
|
var year = $("#yeartimeId").val();
|
|
$.post(ext.contextPath + '/efficiency/efficiencyStatistics/getEfficiencyStatistics1.do', {unitId:unitId,year:year} , function(data) {
|
|
console.log(33);
|
|
window.clearInterval(timer);
|
|
$("#button").html("切换为详细");
|
|
// $("#button").on("click",changeData());
|
|
$("#button").attr("onclick","changeData()");
|
|
|
|
$("#table").html(data);
|
|
});
|
|
console.log(22);
|
|
$("#button").off("click");
|
|
$("#button").removeAttr("onclick");
|
|
$("#button").html("请稍后");
|
|
timer = window.setInterval("changePoint()", 1000);
|
|
|
|
}
|
|
|
|
function changePoint () {
|
|
var str=$("#button").html();
|
|
str=str+"."
|
|
$("#button").text(str);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function chaDate(){
|
|
var year = $("#yeartimeId").val();
|
|
$.post(ext.contextPath + '/efficiency/efficiencyStatistics/getEfficiencyStatistics1.do', {unitId:unitId,year:year} , function(data) {
|
|
|
|
$("#button").html("切换为详细");
|
|
$("#table").html(data);
|
|
});
|
|
}
|
|
|
|
$(function() {
|
|
|
|
$('#yeartimeId').datepicker({
|
|
format: 'yyyy',
|
|
weekStart: 1,
|
|
autoclose: true,
|
|
startView: 2,
|
|
minViewMode: 2,
|
|
maxViewMode: 2,
|
|
forceParse: false,
|
|
language: 'zh-CN'
|
|
}).on('changeDate',changeData);
|
|
|
|
$(".date-picker").datepicker("update", new Date());
|
|
|
|
changeData()
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
|
<div class="wrapper">
|
|
<!-- 引用top -->
|
|
<%-- <jsp:include page="/jsp/top.jsp"></jsp:include> --%>
|
|
<!-- 菜单栏 -->
|
|
<%-- <jsp:include page="/jsp/left.jsp"></jsp:include> --%>
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<%-- <section class="content-header">--%>
|
|
<%-- <h1 id ="head_title"></h1>--%>
|
|
<%-- <ol class="breadcrumb">--%>
|
|
<%-- <li><a id ='head_firstlevel' href="#"><i class="fa fa-dashboard"></i> </a></li>--%>
|
|
<%-- <!-- <li class="active">Here</li> -->--%>
|
|
<%-- </ol>--%>
|
|
<%-- </section>--%>
|
|
|
|
<!-- Main content -->
|
|
<section class="content container-fluid">
|
|
<div id="mainAlertdiv"></div>
|
|
<div id="subDiv"></div>
|
|
<div id="fileInputDiv"></div>
|
|
<div id="user4SelectDiv"></div>
|
|
<div id="mpSubDiv"></div>
|
|
|
|
<div class="btn-group" style="padding-bottom:10px;">
|
|
|
|
<div style="float: left;">
|
|
<label class="control-label" style="padding-top: 6px">年份</label>
|
|
</div>
|
|
<div style="float: left;">
|
|
<input class="form-control date-picker" id="yeartimeId" name="yeartimeId" autocomplete="off" type="text" placeholder="点击选择" style="background-color:#FFFFFF;width: 80px;" value=""/>
|
|
</div>
|
|
|
|
<div style="padding-left:20px;float: left;">
|
|
<button type="button" style="display: none" class="btn btn-default" id="button" onclick="changeData();"><!-- <i class="fa fa-plus"></i> --> 切换为详细</button>
|
|
</div>
|
|
<div style="padding-left:20px;float: left;">
|
|
<button type="button" class="btn btn-default" id="export" onclick="exportData();">导出</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="table" style="overflow-x:auto;">
|
|
|
|
</div>
|
|
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
|
|
<%-- <jsp:include page="/jsp/side.jsp"></jsp:include> --%>
|
|
</div>
|
|
</body>
|
|
</html> |