100 lines
3.2 KiB
Plaintext
100 lines
3.2 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<%@include file="../../baseset.jsp" %>
|
|
<%@include file="../../systemset.jsp" %>
|
|
|
|
<%-- <link href="${bonuspath}/static/plugins/select2/css/select2.min.css" rel="stylesheet">
|
|
<script src="${bonuspath}/static/plugins/select2/js/select2.min.js"></script>
|
|
<script src="${bonuspath}/static/plugins/select2/js/i18n/zh-CN.js"></script> --%>
|
|
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<form id="dataDictAddForm" method="POST" onsubmit="return false;" >
|
|
<table id="bigTable" cellspacing="0" cellpadding="0" border="0" class="customTable">
|
|
<input type="hidden" id="dictId" value="${dict.id}" />
|
|
<tbody>
|
|
<tr class="FormData">
|
|
<td class="CaptionTD"><font color="red">*</font>字典类型:</td>
|
|
<td class="DataTD">
|
|
<select name="dictType.id" id="dictType" style ="width:80%;"
|
|
class="js-example-basic-single form-control">
|
|
<option value="">请选择字典类型</option>
|
|
<c:forEach items="${dictTypes}" var="type">
|
|
<option value="${type.id}" <c:if test="${dict.dictType.id eq type.id}">selected="selected"</c:if> >${type.name}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr class="FormData">
|
|
<td class="CaptionTD"><font color="red">*</font>字典名称:</td>
|
|
<td class="DataTD">
|
|
<input type="text" jyValidate="required" value="${dict.name}" name="name" id="name" style="width:80%;" class="FormElement ui-widget-content ui-corner-all">
|
|
</td>
|
|
</tr>
|
|
<tr class="FormData">
|
|
<td class="CaptionTD"><font color="red">*</font>字典值:</td>
|
|
<td class="DataTD">
|
|
<input type="text" jyValidate="required" value="${dict.value}" name="value" id="value" style="width:80%;" class="FormElement ui-widget-content ui-corner-all">
|
|
</td>
|
|
</tr>
|
|
<tr class="FormData">
|
|
<td class="CaptionTD"><font color="red">*</font>是否启用:</td>
|
|
<td class="DataTD">
|
|
<select id="isActive" name="isActive" style ="width:80%;" >
|
|
<option value="1" <c:if test="${dict.isActive eq 1}">selected="selected"</c:if> >是</option>
|
|
<option value="0" <c:if test="${dict.isActive eq 0}">selected="selected"</c:if> >否</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
/**
|
|
* @author 无畏
|
|
* @date 2019-05-24
|
|
* @function 启动执行
|
|
* @returns
|
|
*/
|
|
$(function () {
|
|
$.fn.modal.Constructor.prototype.enforceFocus = function(){};
|
|
$(".js-example-basic-single").select2({
|
|
"language": "zh-CN"
|
|
});
|
|
});
|
|
|
|
|
|
function getInfo(){
|
|
var obj = {};
|
|
|
|
var id= $("#dictId").val();
|
|
|
|
if(JY.Object.notNull(id)){
|
|
obj.id=id;
|
|
}
|
|
var dictType = $("#dictType").val();
|
|
var name = $("#name").val();
|
|
var value = $("#value").val();
|
|
var isActive = $("#isActive").val();
|
|
obj.dictType = {};
|
|
obj.dictType.id = dictType;
|
|
obj.name = name;
|
|
obj.value = value;
|
|
obj.isActive = isActive;
|
|
|
|
return obj;
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html> |