Commit 41c28e69 authored by 熊海's avatar 熊海

填报页面修改完成汇总页面修改完成 审核页面正在修改

parent 008d2503
...@@ -115,7 +115,7 @@ public class UserCtrl { ...@@ -115,7 +115,7 @@ public class UserCtrl {
session.setAttribute("userID", "1"); session.setAttribute("userID", "1");
session.setAttribute("authorityID", "2"); session.setAttribute("authorityID", "2");
// session.setAttribute("authorityID", "1"); // session.setAttribute("authorityID", "1");
session.setAttribute("realID", "5"); session.setAttribute("realID", "5");
session.setAttribute("userName", "admin "); session.setAttribute("userName", "admin ");
// session.setAttribute("userName", "kj022 "); // session.setAttribute("userName", "kj022 ");
......
...@@ -7,6 +7,7 @@ import com.alibaba.excel.write.metadata.style.WriteFont; ...@@ -7,6 +7,7 @@ import com.alibaba.excel.write.metadata.style.WriteFont;
import com.alibaba.excel.write.style.HorizontalCellStyleStrategy; import com.alibaba.excel.write.style.HorizontalCellStyleStrategy;
import com.alibaba.excel.write.style.column.SimpleColumnWidthStyleStrategy; import com.alibaba.excel.write.style.column.SimpleColumnWidthStyleStrategy;
//import com.tiptimes.ctrl.ExcelFillCellMergeStrategy; //import com.tiptimes.ctrl.ExcelFillCellMergeStrategy;
import com.tiptimes.ctrl.ExcelFillCellMergeStrategy;
import com.tiptimes.dao.QuestionnaireDao; import com.tiptimes.dao.QuestionnaireDao;
import com.tiptimes.model.Answer; import com.tiptimes.model.Answer;
import com.tiptimes.model.PerformanceSummary; import com.tiptimes.model.PerformanceSummary;
......
...@@ -4,8 +4,8 @@ jdbc.driverClassName=com.mysql.cj.jdbc.Driver ...@@ -4,8 +4,8 @@ jdbc.driverClassName=com.mysql.cj.jdbc.Driver
#jdbc.url=jdbc:mysql://10.96.129.32:3306/tianruan?useUnicode=true&characterEncoding=utf-8&autoReconnect=true #jdbc.url=jdbc:mysql://10.96.129.32:3306/tianruan?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
#jdbc.url=jdbc:mysql://localhost:3306/tianruan1?useUnicode=true&characterEncoding=utf-8 #jdbc.url=jdbc:mysql://localhost:3306/tianruan1?useUnicode=true&characterEncoding=utf-8
#jdbc.url=jdbc:mysql://127.0.0.1:3306/tianruan_dev?useUnicode=true&characterEncoding=utf-8&autoReconnect=true #jdbc.url=jdbc:mysql://127.0.0.1:3306/tianruan_dev?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
jdbc.url=jdbc:mysql://127.0.0.1:3306/tianruan_dev?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&usezeroDateTimeBehavior=convertToNull&useSSL=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai jdbc.url=jdbc:mysql://127.0.0.1:3306/tianruan?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&usezeroDateTimeBehavior=convertToNull&useSSL=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
jdbc.username=root jdbc.username=root
#jdbc.password=TR@MyPassWord71! #jdbc.password=TR@MyPassWord71!
jdbc.password=root jdbc.password=111111
#jdbc.password=123456 #jdbc.password=123456
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
p:host-name="localhost" p:host-name="localhost"
p:port="6379" p:port="6379"
p:use-pool="true" p:use-pool="true" p:password="12345"
p:database="8" /> p:database="8" />
<bean id="stringRedisSerializer" <bean id="stringRedisSerializer"
......
<%-- <%@ page language="java" contentType="text/html" pageEncoding="utf-8" %>
Created by IntelliJ IDEA.
User: fanjiaqi
Date: 2022/10/17
Time: 10:14
To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html" pageEncoding="utf-8"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
...@@ -28,13 +19,13 @@ ...@@ -28,13 +19,13 @@
<link href="<%=request.getContextPath()%>/res/css/animate.css" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/css/animate.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/res/css/style.css?v=4.1.0" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/css/style.css?v=4.1.0" rel="stylesheet">
<link href="<%=request.getContextPath()%>/res/js/plugins/highlight/highlight.css" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/js/plugins/highlight/highlight.css" rel="stylesheet">
</head> </head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
var webroot = '<%=request.getContextPath()%>/'; var webroot = '<%=request.getContextPath()%>/';
var class_id='<%=(String)request.getParameter("class_id")%>'; var class_id = '<%=(String)request.getParameter("class_id")%>';
var className='<%=(String)request.getParameter("className")%>'; var className = '<%=(String)request.getParameter("className")%>';
</script> </script>
<div class="wrapper wrapper-content animated fadeInRight"> <div class="wrapper wrapper-content animated fadeInRight">
<div class="row"> <div class="row">
...@@ -44,17 +35,49 @@ ...@@ -44,17 +35,49 @@
<span style="font-size: 24px;">绩效汇总<span id="material_class_title"></span></span> <span style="font-size: 24px;">绩效汇总<span id="material_class_title"></span></span>
<div class="ibox-content"> <div class="ibox-content">
<div class="form-inline pull-right "> <div class="form-inline pull-right ">
<input type="text" id="title" class="form-control" placeholder="众创空间" /> <input type="text" id="title" class="form-control" placeholder="众创空间"/>
<button style="margin-top: 5px" class=" btn btn-sm btn-primary m-t-n-xs" onclick="search();">搜 索</button> <button style="margin-top: 5px" class=" btn btn-sm btn-primary m-t-n-xs"
onclick="search();">搜 索
</button>
<a onclick="reform_DIV_Export()"> <a onclick="reform_DIV_Export()">
<button style="margin-top: 5px" class=" btn btn-sm btn-primary m-t-n-xs" >导 出</button> <button style="margin-top: 5px" class=" btn btn-sm btn-primary m-t-n-xs">导 出</button>
</a> </a>
</div> </div>
</div> </div>
<table id="hidden-table-score" width="100%" class="table table-striped table-bordered table-hover dataTables-example"> <br>
<tr>1</tr> <br>
</table> <table id="hidden-table-score" width="100%"
class="table table-striped table-bordered table-hover dataTables-example">
<thead>
<tr id="table-head">
<td>序号</td>
<td>众创空间名称</td>
<td>基础指标得分</td>
<td>引导指标得分</td>
<td>奖励指标得分</td>
<td>
<div style="text-align: left;">
<div style="display: inline-block;padding-bottom: 22px;margin-right: 10px">
合计得分
</div>
<div style="display: inline-block;padding-top: 18px">
<div onclick="sortAsc()"
style=" width: 0px;height: 0px; border-bottom: 9px solid black;border-left: 10px solid transparent; border-right: 10px solid transparent;">
</div>
<div style="height: 18px"></div>
<div onclick="sortDesc()"
style=" width: 0px;height: 0px; border-top: 9px solid black;border-left: 10px solid transparent; border-right: 10px solid transparent;">
</div>
</div>
</div>
</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div> </div>
</div> </div>
</div> </div>
...@@ -66,10 +89,10 @@ ...@@ -66,10 +89,10 @@
<script src="<%=request.getContextPath()%>/res/js/plugins/jeditable/jquery.jeditable.js"></script> <script src="<%=request.getContextPath()%>/res/js/plugins/jeditable/jquery.jeditable.js"></script>
<script src="<%=request.getContextPath()%>/res/js/plugins/highlight/highlight.js"></script> <script src="<%=request.getContextPath()%>/res/js/plugins/highlight/highlight.js"></script>
<script src="<%=request.getContextPath()%>/res/js/plugins/sweetalert/sweetalert.min.js"></script> <script src="<%=request.getContextPath()%>/res/js/plugins/sweetalert/sweetalert.min.js"></script>
<!-- layer javascript --> <!-- layer javascript -->
<script src="<%=request.getContextPath()%>/res/js/plugins/layer/layer.min.js"></script> <script src="<%=request.getContextPath()%>/res/js/plugins/layer/layer.min.js"></script>
<!-- Data Tables --> <!-- Data Tables -->
<script src="<%=request.getContextPath()%>/res/js/plugins/dataTables/jquery.dataTables.js"></script> <%--<script src="<%=request.getContextPath()%>/res/js/plugins/dataTables/jquery.dataTables.js"></script>--%>
<script src="<%=request.getContextPath()%>/res/js/plugins/dataTables/dataTables.bootstrap.js"></script> <script src="<%=request.getContextPath()%>/res/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<!-- 自定义js --> <!-- 自定义js -->
<script src="<%=request.getContextPath()%>/res/js/education/questionnaire_Administration_list.js"></script> <script src="<%=request.getContextPath()%>/res/js/education/questionnaire_Administration_list.js"></script>
......
...@@ -14,7 +14,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request. ...@@ -14,7 +14,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<link href="<%=request.getContextPath()%>/res/css/bootstrap.min.css?v=3.3.6" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="<%=request.getContextPath()%>/res/css/font-awesome.css?v=4.4.0" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="<%=request.getContextPath()%>/res/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/res/css/plugins/sweetalert/sweetalert.css" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/res/css/animate.css" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/css/animate.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/res/css/style.css?v=4.1.0" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/css/style.css?v=4.1.0" rel="stylesheet">
<link href="<%=request.getContextPath()%>/res/js/plugins/highlight/highlight.css" rel="stylesheet"> <link href="<%=request.getContextPath()%>/res/js/plugins/highlight/highlight.css" rel="stylesheet">
......
This source diff could not be displayed because it is too large. You can view the blob instead.
$(function () { $(function () {
// indexAllArticleTableONLINETeam(); getTableData()
testListApi();
}) })
var oTable;
var page_start=0;
function search() {
var title= $("#title").val();
var processStatus = $("#processStatus").val();
searchMessage(title,processStatus);
}
function sort() {
} //降序排列
function searchMessage(title, status) { function sortDesc() {
if (title !== null && title !== '' && status !== null && status !== ''){ var sorting='desc'
var url=webroot+"questionnaire/selectRecordList?questionnaireUuid=1&createBy="+title+"&processStatus="+status; if ($("#title").val().length > 50) {
} else if(title !== null && title !== ''){ swal("失败!",'输入字符过多!', "error")
var url=webroot+"questionnaire/selectRecordList?questionnaireUuid=1&createBy="+title;
} else if (status !== null && status !== ''){
var url=webroot+"questionnaire/selectRecordList?questionnaireUuid=1&processStatus="+status;
} else { } else {
var url=webroot+"questionnaire/selectRecordList?questionnaireUuid=1"; $.ajax({
url: webroot + "questionnaire/selectPerformanceSummaryList",
method: "GET",
datatype: "json",
data: {
"optinName": $("#title").val(),
"sorting":sorting
},
success: (res) => {
$("tbody").empty()
for (let i = 0; i < res.data.performanceSummaryList.length; i++) {
$("tbody").append(
"<tr>" +
"<td>" + (i + 1) + "</td>" +
"<td>" + res.data.performanceSummaryList[i].optinName + "</td>" +
"<td>" + res.data.performanceSummaryList[i].basicIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].guideIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].rewardIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].totalScore + "</td>" +
"</tr>"
)
}
},
error: () => {
swal("失败!",'网络有问题,稍后再试', "error")
}
})
} }
$('#hidden-table-score').DataTable().ajax.url( url).load();
} }
$(function () {
$('#exercise_DIV_time_div .input-group.date').datepicker({ //升序排列
todayBtn: "linked", function sortAsc() {
keyboardNavigation: false, var sorting='asc'
forceParse: false, if ($("#title").val().length > 50) {
calendarWeeks: true, swal("失败!",'输入字符过多', "error")
autoclose: true } else {
}); $.ajax({
all_order(); url:webroot + "questionnaire/selectPerformanceSummaryList",
getSaveData(); method: "GET",
StatusCheck(); datatype: "json",
}) data: {
/** "optinName": $("#title").val(),
* 导出项目 "sorting":sorting
* @returns },
*/ success: (res) => {
function reform_DIV_Export (){ $("tbody").empty()
downloadFile(webroot+"questionnaire/exportPerformanceSummary"); for (let i = 0; i < res.data.performanceSummaryList.length; i++) {
$("tbody").append(
"<tr>" +
"<td>" + (i + 1) + "</td>" +
"<td>" + res.data.performanceSummaryList[i].optinName + "</td>" +
"<td>" + res.data.performanceSummaryList[i].basicIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].guideIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].rewardIndicators + "</td>" +
"<td>" + res.data.performanceSummaryList[i].totalScore + "</td>" +
"</tr>"
)
}
},
error: () => {
swal("失败!",'网络有问题,稍后再试', "error")
}
})
}
} }
function testListApi() {
var url=webroot+"/questionnaire/selectPerformanceSummaryList";
$(document).ready(function() {
oTable = $('#hidden-table-score').dataTable( {
"bPaginage":true, /*默认为true,是否开启分页功能,即使设置为false,仍然会有一个默认的<前进,后退>分页组件 */ //导出汇总文件
"bDeferRender": true,//延迟渲染 是否延迟渲染,当用Ajax或者js方式加载数据时开启延迟渲染会带来很大的速度提升* 当该属性设置为true时,表格每一行新增的元素只有在需要被画出来时才会被DataTable创建出来 function reform_DIV_Export() {
"bDestroy" : true, //销毁表格对象 $.ajax({
"aLengthMenu": [5,10,25,50], //用户可自选每页展示数量 5条或10条 url: webroot + "questionnaire/exportPerformanceSummary",
"searching": false,//禁用搜索(搜索框) method: "GET",
"lengthChange": true, //是否允许终端用户从一个选择列表中选择分页的页数,页数为10,25,50和100,需要分页组件bPaginate的支持 responseType: "blob",
"bStateSave" : true, //是否打开客户端状态记录功能,此功能在ajax刷新纪录的时候不会将个性化设定回复为初始化状态, 这样当终端用户重新加载这个页面的时候可以使用以前的设置 success: (res) => {
"bSort" : true, //是否启动各个字段的排序功能 是否开启列排序 window.location.href = webroot+"questionnaire/exportPerformanceSummary"
"bProcessing": true, //当表格在处理的时候(比如排序操作)是否显示“处理中...”
//"aaSorting" : [[0, "asc"]],//默认的排序方式,第1列,升序排列
"bServerSide": true,//开启服务器模式 配置DataTable使用服务器端处理,注意,sAjaxSource参数必须指定
//"bFilter" : true, //是否启动过滤、搜索功能
"bAutoWidth": false,
"retrieve" : true, //类似单例模式,重复利用以存在对象。使用指定的选择器检索表格,注意,如果表格已经被初始化,该参数会直接返回已经被创建的对象 * 并不会顾及你传递进来的初始化参数对象的变化,将该参数设置为true说明你确认已经明白这一点 * 如果你需要的话,bDestroy可以用来重新初始化表格
/* "iDisplayLength": 5,
"iDisplayStart": 0,*/
"select": {
style: 'os',
selector: 'td:first-child'
}, },
"ajax": { //ajax方式向后台发送请求 error: () => {
"type": "POST", swal("失败!",'网络有问题,稍后再试', "error")
"url": url, }
"content-Type": "application/x-www-form-urlencoded;charset=UTF-8", })
"dataType": "json" }
//搜索标题内容
function search() {
if ($("#title").val().length > 50) {
swal("失败!",'输入字符过多', "error")
} else {
getTableData()
}
}
//获取列表详细信息
function getTableData() {
$.ajax({
url: webroot + "questionnaire/selectPerformanceSummaryList",
method: "GET",
datatype: "json",
data:{
"optinName": $("#title").val(),
}, },
"columns": [ success: (res) => {
{ "sTitle": "众创空间名称", "mData": "optinName" }, $("tbody").empty()
{ "sTitle": "基础指标得分", "mData": "basicIndicators" }, for (let i = 0; i < res.data.performanceSummaryList.length; i++) {
{ "sTitle": "引导指标得分", "mData": "guideIndicators" }, $("tbody").append(
{ "sTitle": "奖励指标得分", "mData": " rewardIndicators"}, "<tr>" +
{ "sTitle": "奖励指标得分", "mData": "totalScore"} "<td>" + (i + 1) + "</td>" +
], "<td>" + res.data.performanceSummaryList[i].optinName + "</td>" +
"oLanguage" : { // 国际化配置 "<td>" + res.data.performanceSummaryList[i].basicIndicators + "</td>" +
"sProcessing" : "正在获取数据,请稍后...", "<td>" + res.data.performanceSummaryList[i].guideIndicators + "</td>" +
"sLengthMenu" : "每页 _MENU_ 条记录", "<td>" + res.data.performanceSummaryList[i].rewardIndicators + "</td>" +
"sZeroRecords" : "没有找到数据", "<td>" + res.data.performanceSummaryList[i].totalScore + "</td>" +
"sInfo" : "显示 _START_ 到 _END_ 项 共 _TOTAL_ 项", "</tr>"
"sInfoEmpty" : "记录数为0", )
"sInfoFiltered" : "(全部记录数 _MAX_ 条)",
"sInfoPostFix" : "",
// "sSearch" : "查询",
"sUrl" : "",
"oPaginate" : {
"sFirst" : "第一页",
"sPrevious" : "上一页",
"sNext" : "下一页",
"sLast" : "最后一页"
} }
}, },
}); error: () => {
} ); swal("失败!",'网络有问题,稍后再试', "error")
}
})
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment