You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
283 lines
10 KiB
283 lines
10 KiB
<#include "../_include/_t.ftl"/>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<#include "../_include/_h.ftl"/>
|
|
<#include "../_include/_l.ftl"/>
|
|
<#include "../_include/_j.ftl"/>
|
|
<#include "../_include/_z.ftl"/>
|
|
<#include "../_include/_e.ftl"/>
|
|
<#include "../_include/_c_1.ftl"/>
|
|
|
|
<style>
|
|
._td_class{
|
|
font-size:16px;
|
|
text-align:center;
|
|
height:50px;
|
|
line-height:50px;
|
|
vertical-align:middle;
|
|
text-align:left;
|
|
padding-left:10px;
|
|
}
|
|
.page_win form {margin:0}
|
|
.layui-form-radio{
|
|
margin:0;
|
|
padding:0;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="layui-layout-body">
|
|
<div class="layui-layout layui-layout-admin">
|
|
<!-- 内容主体区域 -->
|
|
<div class="layui-body" style="top:0;">
|
|
<div class="page_content" style="padding:20px;margin-left:0px;width:100%;overflow-y:hidden">
|
|
<div class="layui-show">
|
|
<div class="page_tools">
|
|
<div class="layui-inline" style="width:80px;">
|
|
所属试卷:
|
|
</div>
|
|
<div class="layui-inline layui-form" style="width:180px;">
|
|
<select id="exam_5_paperId">
|
|
<option value="">全部</option>
|
|
<#list paperList as list>
|
|
<option value="${list.id}">${list.examName}</option>
|
|
</#list>
|
|
</select>
|
|
</div>
|
|
<div class="layui-inline" style="width:50px;">
|
|
姓名:
|
|
</div>
|
|
<div class="layui-inline" style="width:150px;">
|
|
<input id="exam_5_name" class="layui-input" type="text" style="font-size:16px;padding-top:4px;cursor:pointer;letter-spacing:1px;"/>
|
|
</div>
|
|
<div class="layui-inline" style="width:50px;">
|
|
工号:
|
|
</div>
|
|
<div class="layui-inline" style="width:150px;">
|
|
<input id="exam_5_jobNumber" class="layui-input" type="text" style="font-size:16px;padding-top:4px;cursor:pointer;letter-spacing:1px;"/>
|
|
</div>
|
|
<div class="layui-inline" style="width:80px;">
|
|
及格查询:
|
|
</div>
|
|
<div class="layui-inline layui-form" style="width:150px;">
|
|
<select id="exam_5_ispass">
|
|
<option value="">全部</option>
|
|
<option value="1">及格</option>
|
|
<option value="2">不及格</option>
|
|
</select>
|
|
</div>
|
|
<div class="layui-inline" style="width:80px;">
|
|
考试状态:
|
|
</div>
|
|
<div class="layui-inline layui-form" style="width:150px;">
|
|
<select id="exam_5_state">
|
|
<option value="">全部</option>
|
|
<option value="1">已交卷</option>
|
|
<option value="2">未交卷</option>
|
|
</select>
|
|
</div>
|
|
<button id="exam_5_searchBtn" class="layui-btn layui-btn-normal"><i class="layui-icon"></i>查询</button>
|
|
<button id="exam_5_resetBtn" class="layui-btn"><i class="layui-icon"></i>重置</button>
|
|
<button id="exam_5_importBtn" class="layui-btn layui-btn-warm"><i class="layui-icon"></i>导出</button>
|
|
</div>
|
|
<div id="div_table" style="height:90%;margin:10px;border-radius:5px;">
|
|
<table id="exam_5_dataTable" lay-filter="exam_5_dataTable_filter" lay-size="sm" width="100%">
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="exam_5_detailWin" class="page_win page_win_hide" style="padding:10px">
|
|
<form id="exam_5_detailForm" lay-filter="exam_5_detailForm_filter" class="layui-form">
|
|
<input name="id" type="hidden"/>
|
|
<table width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td width="15%" class="_td_class">姓名</td>
|
|
<td width="35%" class="_td_class">
|
|
<input name="name" disabled="disabled" class="layui-input" type="text" style="width:98%;font-size:16px;padding-top:4px;cursor:pointer;letter-spacing:1px;"/>
|
|
</td>
|
|
<td width="15%" class="_td_class">工号</td>
|
|
<td width="35%" class="_td_class">
|
|
<input name="jobNumber" disabled="disabled" class="layui-input" type="text" style="width:98%;font-size:16px;padding-top:4px;cursor:pointer;letter-spacing:1px;"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" class="_td_class">电话</td>
|
|
<td width="35%" class="_td_class">
|
|
<input name="phoneNum" disabled="disabled" class="layui-input" type="text" style="width:98%;font-size:16px;padding-top:4px;cursor:pointer;letter-spacing:1px;"/>
|
|
</td>
|
|
<td width="15%" class="_td_class">部门</td>
|
|
<td width="35%" class="_td_class">
|
|
<input name="dept" disabled="disabled" class="layui-input" type="text" style="width:98%;font-size:16px;padding-top:4px;cursor:pointer;letter-spacing:1px;"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" class="_td_class">开始时间</td>
|
|
<td width="35%" class="_td_class">
|
|
<input name="startTime" disabled="disabled" class="layui-input" type="text" style="width:98%;font-size:16px;padding-top:4px;cursor:pointer;letter-spacing:1px;"/>
|
|
</td>
|
|
<td width="15%" class="_td_class">得分</td>
|
|
<td width="35%" class="_td_class">
|
|
<input name="score" disabled="disabled" class="layui-input" type="text" style="width:98%;font-size:16px;padding-top:4px;cursor:pointer;letter-spacing:1px;"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" class="_td_class">是否及格</td>
|
|
<td width="35%" class="_td_class">
|
|
<select name="ispass" disabled="disabled" style="width:98%;height:38px;width:260px;border-color:#f0f0f0">
|
|
<option value="">全部</option>
|
|
<option value="1">及格</option>
|
|
<option value="2">不及格</option>
|
|
</select>
|
|
</td>
|
|
<td width="15%" class="_td_class">状态</td>
|
|
<td width="35%" class="_td_class">
|
|
<select name="state" disabled="disabled" style="width:98%;height:38px;width:260px;border-color:#f0f0f0">
|
|
<option value="">全部</option>
|
|
<option value="1">已交卷</option>
|
|
<option value="2">未交卷</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<script type="text/javascript">
|
|
layuiplus.on(function(){
|
|
layuiplus.init(0);
|
|
//列表开始=============================================================================
|
|
var exam_5_dataTable = table.render({
|
|
elem:"#exam_5_dataTable",
|
|
url:"${ctx}/exam/exam_5/list",
|
|
method:"get",
|
|
where:{
|
|
baseId:"${manager_user['baseId']}",
|
|
regionIds:"${manager_user['regionIds']}"
|
|
},
|
|
cols:[[
|
|
{field:"examName",title:"所属试卷",unresize:true,width:200},
|
|
{field:"name",title:"姓名",unresize:true,width:200},
|
|
{field:"jobNumber",title:"工号",unresize:true,width:200},
|
|
{field:"startTime",title:"开考时间",unresize:true,width:250,templet:function(d){
|
|
var _time = d.startTime.replace(","," - ");
|
|
return _time;
|
|
}},
|
|
{field:"score",title:"成绩",unresize:true,width:100},
|
|
{field:"ispass",title:"是否及格",unresize:true,width:160,templet:function(d){
|
|
if(d.ispass == "0") return "不及格";
|
|
if(d.ispass == "1") return "及格";
|
|
return "";
|
|
}},
|
|
{field:"state",title:"状态",unresize:true,width:160,templet:function(d){
|
|
if(d.state == "0") return "未交卷";
|
|
if(d.state == "1") return "已交卷";
|
|
return "";
|
|
}},
|
|
{field:"dept",title:"所在部门",unresize:true,width:160},
|
|
{title:"操作 ",unresize:true,align:"center",templet:function(d){
|
|
return "<a class=\"layui-btn layui-btn-xs\" lay-event=\"opt_detail\">查看</a> ";
|
|
}},
|
|
]],
|
|
height: $(document).height() - $('#exam_5_dataTable').offset().top - 20,
|
|
page:{
|
|
layout:["prev","page","next","skip","count","limit"],
|
|
limits:[10],
|
|
theme: '#1E9FFF'
|
|
}
|
|
})
|
|
//列表结束=============================================================================
|
|
//查询开始=============================================================================
|
|
$(":button[id^='exam_5_searchBtn']").bind("click", function(){
|
|
exam_5_dataTable.reload({
|
|
where:{
|
|
paperId:$("#exam_5_paperId").val(),
|
|
name:$("#exam_5_name").val(),
|
|
jobNumber:$("#exam_5_jobNumber").val(),
|
|
ispass:$("#exam_5_ispass").val(),
|
|
state:$("#exam_5_state").val(),
|
|
baseId:"${manager_user['baseId']}",
|
|
regionIds:"${manager_user['regionIds']}"
|
|
}
|
|
});
|
|
});
|
|
//查询结束=============================================================================
|
|
//重置开始=============================================================================
|
|
$(":button[id^='exam_5_resetBtn']").bind("click", function(){
|
|
$("#exam_5_paperId").val("");
|
|
$("#exam_5_name").val("");
|
|
$("#exam_5_jobNumber").val("");
|
|
$("#exam_5_ispass").val("");
|
|
$("#exam_5_state").val("");
|
|
exam_5_dataTable.reload({
|
|
where:{
|
|
paperId:"",
|
|
name:"",
|
|
jobNumber:"",
|
|
ispass:"",
|
|
state:"",
|
|
baseId:"${manager_user['baseId']}",
|
|
regionIds:"${manager_user['regionIds']}"
|
|
}
|
|
});
|
|
form.render();
|
|
});
|
|
//重置结束=============================================================================
|
|
//监听表格内的事件开始========================================================================
|
|
table.on("tool(exam_5_dataTable_filter)",function(row){//row.data row.event
|
|
if(row.event == "opt_detail"){
|
|
layer.open({
|
|
id:"exam_5_detailWin_id",
|
|
title: "查看详情",
|
|
type: 1,
|
|
content: $("#exam_5_detailWin"),
|
|
area: ["1000px", "600px"],
|
|
btn:["取消"],
|
|
success:function(){
|
|
$.ajax({
|
|
type:"get",
|
|
url:"${ctx}/exam/exam_5/get",
|
|
data:{id:row.data.id},
|
|
dataType:"json",
|
|
success:function(data){
|
|
form.val("exam_5_detailForm_filter",{
|
|
id:data.id,
|
|
name:data.name,
|
|
phoneNum:data.phoneNum,
|
|
dept:data.dept,
|
|
score:data.score,
|
|
state:data.state,
|
|
startTime:data.startTime,
|
|
jobNumber:data.jobNumber,
|
|
ispass:data.isPass
|
|
});
|
|
}
|
|
});
|
|
},
|
|
end:function(){
|
|
$("#exam_5_detailForm")[0].reset();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
//监听表格内的事件结束========================================================================
|
|
//导出开始================================================================================
|
|
$(":button[id^='exam_5_importBtn']").bind("click", function(){
|
|
var paperId = $("#exam_5_paperId").val();
|
|
var name = $("#exam_5_name").val();
|
|
var jobNumber = $("#exam_5_jobNumber").val();
|
|
var ispass = $("#exam_5_ispass").val();
|
|
var state = $("#exam_5_state").val();
|
|
var baseId = "${manager_user['baseId']}";
|
|
var regionIds = "${manager_user['regionIds']}";
|
|
window.open("${ctx}/exam/exam_5/import?paperId="+paperId+"&name="+name+"&jobNumber="+jobNumber+"&ispass="+ispass+"&state="+state+"&baseId="+baseId+"®ionIds="+regionIds);
|
|
})
|
|
//导出结束================================================================================
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|