146 lines
5.5 KiB
Plaintext
146 lines
5.5 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8" %>
|
||
<%@ include file="/webpage/include/taglib.jsp"%>
|
||
<html>
|
||
<head>
|
||
<title>区域管理</title>
|
||
<meta name="decorator" content="default"/>
|
||
<link rel="stylesheet" href="${ctxStatic}/layui-v2.4.5/layui/css/layui.css" media="all">
|
||
<script src="${ctxStatic}/layui-v2.4.5/layui/layui.js"></script>
|
||
<script>
|
||
$(document).ready(function(){
|
||
validateForm = $("#inputForm").validate({
|
||
submitHandler: function(form){
|
||
loading('正在提交,请稍等...');
|
||
form.submit();
|
||
},
|
||
errorContainer: "#messageBox",
|
||
errorPlacement: function(error, element) {
|
||
$("#messageBox").text("输入有误,请先更正。");
|
||
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
||
error.appendTo(element.parent().parent());
|
||
} else {
|
||
error.insertAfter(element);
|
||
}
|
||
}
|
||
});
|
||
});
|
||
var validateForm;
|
||
function doSubmit(){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
||
if(validateForm.form()){
|
||
$("#inputForm").submit();
|
||
return true;
|
||
}
|
||
return false;
|
||
}
|
||
function viewFileByUser(url){
|
||
/*var winHeight = window.document.documentElement.clientHeight-10;
|
||
var url = "http://localhost:8012/onlinePreview?url="
|
||
var ur = encodeURIComponent("file:///D:\\test\\12364.jpg");
|
||
window.open(url+ur,"_blank","height="+winHeight+",top=80,toolbar=no,menubar=no,scrollbars=yes,resizable=yes");*/
|
||
|
||
//var url = 'http://127.0.0.1:8080/zhkh/static/images/userinfo.jpg'; //要预览文件的访问地址
|
||
//window.open('http://127.0.0.1:8012/onlinePreview?url='+url);
|
||
// window.open(url);
|
||
/*$.ajax({
|
||
type: "get",
|
||
url: url,
|
||
dataType: "json",
|
||
success: function (data) {
|
||
|
||
}
|
||
});*/
|
||
top.layer.open({
|
||
type: 2,
|
||
area: ['80%', '80%'],
|
||
title: "文件预览",
|
||
maxmin: true,
|
||
content: url,
|
||
btn: ['关闭'],
|
||
cancel: function (index) {
|
||
}
|
||
});
|
||
}
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<form:form id="inputForm" modelAttribute="subtask" action="${ctx}/assessment/assessed/submit" enctype="multipart/form-data" method="post" class="form-horizontal">
|
||
<input type="hidden" name="id" value="${subtask.id}"/>
|
||
<table class="table table-bordered table-condensed dataTables-example dataTable no-footer">
|
||
<tbody>
|
||
<tr>
|
||
<td class="width-15 active"><label class="pull-right">机构名称:</label></td>
|
||
<td class="width-35">
|
||
<form:input path="office.name" htmlEscape="false" maxlength="64" class="form-control" readonly="true"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="width-15 active"><label class="pull-right">指标名称:</label></td>
|
||
<td class="width-35">
|
||
<form:textarea path="acIndex.name" htmlEscape="false" rows="4" maxlength="2000" class="form-control" readonly="true"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="width-15 active"><label class="pull-right">是否过期:</label></td>
|
||
<td class="width-35">
|
||
${fns:getDictLabel(subtask.overdue,"overdue","未过期")}
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="width-15 active"><label class="pull-right">开始时间:</label></td>
|
||
<td class="width-35">
|
||
<input id="startTime" name="startTime" type="text" maxlength="20" class="laydate-icon form-control layer-date"
|
||
value="<fmt:formatDate value="${subtask.startTime}" pattern="yyyy-MM-dd HH:mm:ss" />" readonly="true"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="width-15 active"><label class="pull-right">截止时间:</label></td>
|
||
<td class="width-35">
|
||
<input id="endTime" name="endTime" type="text" maxlength="20" class="laydate-icon form-control layer-date"
|
||
value="<fmt:formatDate value="${subtask.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>" readonly="true"/>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="width-15 active"><label class="pull-right">提交状态:</label></td>
|
||
<td class="width-35">
|
||
<input type="text" name="status" value="${fns:getDictLabel(subtask.fileSubmitStatus,"file_submit_status","未提交")}" htmlEscape="false" maxlength="64" class="form-control" readonly="true"/>
|
||
</td>
|
||
</tr>
|
||
<c:forEach items="${fileLists}" var="file" varStatus="var" >
|
||
<tr>
|
||
<td class="width-15 active"><label class="pull-right">${file.fileTile}</label></td>
|
||
<td class="width-35">
|
||
<c:choose>
|
||
<c:when test="${file.ef.id !=''}">
|
||
<a href="#" onclick="viewFileByUser('${ctx}/assessment/assessed/viewFileByUser?id=${file.ef.id}')" ><font color="#1e90ff">${file.ef.fileTitle}</font></a>
|
||
</c:when>
|
||
</c:choose>
|
||
</td>
|
||
</tr>
|
||
</c:forEach>
|
||
|
||
<tr>
|
||
<td colspan="5" style="text-align: center"><font color="red">非指定文件上传</font></td>
|
||
</tr>
|
||
<c:forEach items="${lists}" var="efile" varStatus="var" >
|
||
<tr>
|
||
<td class="width-15 active"><label class="pull-right">${efile.fileTitle}</label></td>
|
||
<td class="width-35">
|
||
<c:choose>
|
||
<c:when test="${efile.id.length()>0}">
|
||
<a href="#" onclick="viewFileByUser('${ctx}/assessment/assessed/viewFileByUser?id=${efile.id}')" ><font color="#1e90ff">${efile.fileTitle}</font></a>
|
||
</c:when>
|
||
<c:otherwise>
|
||
文件未上传!
|
||
</c:otherwise>
|
||
</c:choose>
|
||
</td>
|
||
<%--<td class="width-35 ">${efile.remarks}</td>--%>
|
||
</tr>
|
||
</c:forEach>
|
||
|
||
|
||
</tbody>
|
||
</table>
|
||
</form:form>
|
||
</body>
|
||
</html> |