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

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

parent 008d2503
......@@ -114,8 +114,8 @@ public class UserCtrl {
// session.setAttribute("userName", userLogin.getRealName());
session.setAttribute("userID", "1");
session.setAttribute("authorityID", "2");
// session.setAttribute("authorityID", "1");
session.setAttribute("authorityID", "2");
// session.setAttribute("authorityID", "1");
session.setAttribute("realID", "5");
session.setAttribute("userName", "admin ");
// session.setAttribute("userName", "kj022 ");
......@@ -166,8 +166,8 @@ public class UserCtrl {
}
// return "/user/login";
return "/education/index";
// return "/space/index";
return "/education/index";
// return "/space/index";
}
public String getBrowserName(String agent) {
......
......@@ -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.column.SimpleColumnWidthStyleStrategy;
//import com.tiptimes.ctrl.ExcelFillCellMergeStrategy;
import com.tiptimes.ctrl.ExcelFillCellMergeStrategy;
import com.tiptimes.dao.QuestionnaireDao;
import com.tiptimes.model.Answer;
import com.tiptimes.model.PerformanceSummary;
......
......@@ -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://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&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.password=TR@MyPassWord71!
jdbc.password=root
jdbc.password=111111
#jdbc.password=123456
......@@ -21,7 +21,7 @@
class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
p:host-name="localhost"
p:port="6379"
p:use-pool="true"
p:use-pool="true" p:password="12345"
p:database="8" />
<bean id="stringRedisSerializer"
......
<%--
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"%>
<%@ page language="java" contentType="text/html" pageEncoding="utf-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %>
<%@ 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">
<html>
......@@ -28,13 +19,13 @@
<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/js/plugins/highlight/highlight.css" rel="stylesheet">
</head>
<body>
<script type="text/javascript">
var webroot = '<%=request.getContextPath()%>/';
var class_id='<%=(String)request.getParameter("class_id")%>';
var className='<%=(String)request.getParameter("className")%>';
var class_id = '<%=(String)request.getParameter("class_id")%>';
var className = '<%=(String)request.getParameter("className")%>';
</script>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
......@@ -44,21 +35,53 @@
<span style="font-size: 24px;">绩效汇总<span id="material_class_title"></span></span>
<div class="ibox-content">
<div class="form-inline pull-right ">
<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>
<a onclick="reform_DIV_Export()">
<button style="margin-top: 5px" class=" btn btn-sm btn-primary m-t-n-xs" >导 出</button>
<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>
<a onclick="reform_DIV_Export()">
<button style="margin-top: 5px" class=" btn btn-sm btn-primary m-t-n-xs">导 出</button>
</a>
</div>
</div>
<table id="hidden-table-score" width="100%" class="table table-striped table-bordered table-hover dataTables-example">
<tr>1</tr>
</table>
<br>
<br>
<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>
<!-- 全局js -->
<script src="<%=request.getContextPath()%>/res/js/jquery.min.js?v=2.1.4"></script>
......@@ -66,10 +89,10 @@
<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/sweetalert/sweetalert.min.js"></script>
<!-- layer javascript -->
<!-- layer javascript -->
<script src="<%=request.getContextPath()%>/res/js/plugins/layer/layer.min.js"></script>
<!-- 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>
<!-- 自定义js -->
<script src="<%=request.getContextPath()%>/res/js/education/questionnaire_Administration_list.js"></script>
......
......@@ -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/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/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/style.css?v=4.1.0" 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 () {
// indexAllArticleTableONLINETeam();
testListApi();
getTableData()
})
var oTable;
var page_start=0;
function search() {
var title= $("#title").val();
var processStatus = $("#processStatus").val();
searchMessage(title,processStatus);
}
function sort() {
//降序排列
function sortDesc() {
var sorting='desc'
if ($("#title").val().length > 50) {
swal("失败!",'输入字符过多!', "error")
} else {
$.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")
}
})
}
}
function searchMessage(title, status) {
if (title !== null && title !== '' && status !== null && status !== ''){
var url=webroot+"questionnaire/selectRecordList?questionnaireUuid=1&createBy="+title+"&processStatus="+status;
} else if(title !== null && title !== ''){
var url=webroot+"questionnaire/selectRecordList?questionnaireUuid=1&createBy="+title;
} else if (status !== null && status !== ''){
var url=webroot+"questionnaire/selectRecordList?questionnaireUuid=1&processStatus="+status;
//升序排列
function sortAsc() {
var sorting='asc'
if ($("#title").val().length > 50) {
swal("失败!",'输入字符过多', "error")
} 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",
keyboardNavigation: false,
forceParse: false,
calendarWeeks: true,
autoclose: true
});
all_order();
getSaveData();
StatusCheck();
})
/**
* 导出项目
* @returns
*/
function reform_DIV_Export (){
downloadFile(webroot+"questionnaire/exportPerformanceSummary");
//导出汇总文件
function reform_DIV_Export() {
$.ajax({
url: webroot + "questionnaire/exportPerformanceSummary",
method: "GET",
responseType: "blob",
success: (res) => {
window.location.href = webroot+"questionnaire/exportPerformanceSummary"
},
error: () => {
swal("失败!",'网络有问题,稍后再试', "error")
}
})
}
//搜索标题内容
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(),
},
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>"
)
}
function testListApi() {
var url=webroot+"/questionnaire/selectPerformanceSummaryList";
$(document).ready(function() {
oTable = $('#hidden-table-score').dataTable( {
},
error: () => {
swal("失败!",'网络有问题,稍后再试', "error")
}
})
"bPaginage":true, /*默认为true,是否开启分页功能,即使设置为false,仍然会有一个默认的<前进,后退>分页组件 */
"bDeferRender": true,//延迟渲染 是否延迟渲染,当用Ajax或者js方式加载数据时开启延迟渲染会带来很大的速度提升* 当该属性设置为true时,表格每一行新增的元素只有在需要被画出来时才会被DataTable创建出来
"bDestroy" : true, //销毁表格对象
"aLengthMenu": [5,10,25,50], //用户可自选每页展示数量 5条或10条
"searching": false,//禁用搜索(搜索框)
"lengthChange": true, //是否允许终端用户从一个选择列表中选择分页的页数,页数为10,25,50和100,需要分页组件bPaginate的支持
"bStateSave" : true, //是否打开客户端状态记录功能,此功能在ajax刷新纪录的时候不会将个性化设定回复为初始化状态, 这样当终端用户重新加载这个页面的时候可以使用以前的设置
"bSort" : true, //是否启动各个字段的排序功能 是否开启列排序
"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方式向后台发送请求
"type": "POST",
"url": url,
"content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
"dataType": "json"
},
"columns": [
{ "sTitle": "众创空间名称", "mData": "optinName" },
{ "sTitle": "基础指标得分", "mData": "basicIndicators" },
{ "sTitle": "引导指标得分", "mData": "guideIndicators" },
{ "sTitle": "奖励指标得分", "mData": " rewardIndicators"},
{ "sTitle": "奖励指标得分", "mData": "totalScore"}
],
"oLanguage" : { // 国际化配置
"sProcessing" : "正在获取数据,请稍后...",
"sLengthMenu" : "每页 _MENU_ 条记录",
"sZeroRecords" : "没有找到数据",
"sInfo" : "显示 _START_ 到 _END_ 项 共 _TOTAL_ 项",
"sInfoEmpty" : "记录数为0",
"sInfoFiltered" : "(全部记录数 _MAX_ 条)",
"sInfoPostFix" : "",
// "sSearch" : "查询",
"sUrl" : "",
"oPaginate" : {
"sFirst" : "第一页",
"sPrevious" : "上一页",
"sNext" : "下一页",
"sLast" : "最后一页"
}
},
});
} );
}
\ 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