|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
|
<%
|
|
|
String path = request.getContextPath();
|
|
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
|
%>
|
|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
<link href="<%=basePath %>resource/css/base.css" rel="stylesheet">
|
|
|
<link href="<%=basePath %>resource/css/basic_info.css" rel="stylesheet">
|
|
|
<link rel="stylesheet" href="<%=basePath %>resource/easyui/uimaker/easyui.css">
|
|
|
<link href="<%=basePath %>resource/css/form.css" rel="stylesheet">
|
|
|
<script type="text/javascript" src="<%=basePath %>resource/easyui/jquery.min.js"></script>
|
|
|
<script type="text/javascript" src="<%=basePath %>resource/validate/jquery.validate.js"></script>
|
|
|
<script type="text/javascript" src="<%=basePath %>resource/validate/validate-extends.js"></script>
|
|
|
<link rel="stylesheet" href="<%=basePath %>resource/css/form.css">
|
|
|
<script type="text/javascript" src="<%=basePath %>resource/js/tools.js"></script>
|
|
|
<!-- validate 验证中英文 -->
|
|
|
<script type="text/javascript" src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js"></script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="container">
|
|
|
|
|
|
<div class="content">
|
|
|
<form class="layui-form" id="form">
|
|
|
<table class="kv-table">
|
|
|
<tbody>
|
|
|
<input type="hidden" name="big_type_id" id="big_type_id" value="${one.big_type_id}">
|
|
|
<input type="hidden" name="two_type_name" id="two_type_name" value="${one.two_type_name}">
|
|
|
<tr>
|
|
|
<%--<td class="kv-label">--%>
|
|
|
<%--货物品名<span class="required_span"></span>--%>
|
|
|
<%--</td>--%>
|
|
|
<th class="kv-content">
|
|
|
<c:forEach items="${cargo}" var="cargo">
|
|
|
<input type="checkbox" name="names" id="nams" title="${cargo}" value="${cargo}" lay-skin="primary">${cargo}
|
|
|
</c:forEach>
|
|
|
</th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td colspan="6">
|
|
|
<div class="opt-buttons" style="padding-top:20px;">
|
|
|
<button type="submit" class="easyui-linkbutton l-btn l-btn-small l-btn-selected " data-options="selected:true">
|
|
|
<span class="l-btn-left"><span class="l-btn-text"><spring:message code="opt.save" /></span></span>
|
|
|
</button>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
<script type="text/javascript" src="<%=basePath %>resource/layer-v3.0.3/layer/layer.js"></script>
|
|
|
<script src="<%=basePath %>resource/easyui/jquery.easyui.min.js"></script>
|
|
|
<script src="<%=basePath %>resource/js/tools.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
$("#form").validate({
|
|
|
submitHandler:function(form){
|
|
|
submit();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
var selectFals = false;
|
|
|
function submit(){
|
|
|
// if (selectFals == true){
|
|
|
var data = $("#form").serialize();
|
|
|
$.post("<%=basePath%>type/doSave",data,function(data){
|
|
|
if(data.status==200){
|
|
|
layer.confirm("<spring:message code="opt.savesuccess" />!",{btn:['<spring:message code="opt.confirm" />','<spring:message code="opt.cancel" />']},function(){
|
|
|
var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
|
|
|
parent.layer.close(index);
|
|
|
window.parent.location.reload();
|
|
|
})
|
|
|
}else {
|
|
|
alert("网络异常")
|
|
|
}
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
var form = layui.form;
|
|
|
form.render();
|
|
|
})
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|