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.
jeecg/WebRoot/webpage/system/function/function.jsp

128 lines
3.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ page language="java" import="java.util.*"
contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>菜单信息</title>
<t:base type="jquery,easyui,tools"></t:base>
<script type="text/javascript">
$(function() {
$('#cc').combotree({
url : 'functionController.do?setPFunction',
panelHeight:'auto',
onClick: function(node){
$("#functionId").val(node.id);
}
});
if($('#functionLevel').val()=='1'){
$('#pfun').show();
}else{
$('#pfun').hide();
}
$('#functionLevel').change(function(){
if($(this).val()=='1'){
$('#pfun').show();
var t = $('#cc').combotree('tree');
var nodes = t.tree('getRoots');
if(nodes.length>0){
$('#cc').combotree('setValue', nodes[0].id);
$("#functionId").val(nodes[0].id);
}
}else{
var t = $('#cc').combotree('tree');
var node = t.tree('getSelected');
if(node){
$('#cc').combotree('setValue', null);
}
$('#pfun').hide();
}
});
});
</script>
</head>
<body style="overflow-y: hidden" scroll="no">
<t:formvalid formid="formobj" layout="div" dialog="true" refresh="true"
action="functionController.do?saveFunction">
<%--
<input type="hidden" name="functionOrder" value="${function.functionOrder}">
--%>
<input name="id" type="hidden" value="${function.id}">
<fieldset class="step">
<div class="form">
<label class="Validform_label">
菜单名称:
</label>
<input name="functionName" class="inputxt"
value="${function.functionName}" datatype="s4-10">
<span class="Validform_checktip">菜单名称范围4~10位字符,且不为空</span>
</div>
<div class="form">
<label class="Validform_label">
菜单等级:
</label>
<select name="functionLevel" id="functionLevel" datatype="*">
<option value="0"
<c:if test="${function.functionLevel eq 0}">selected="selected"</c:if>>
一级菜单
</option>
<option value="1"
<c:if test="${function.functionLevel>0}"> selected="selected"</c:if>>
下级菜单
</option>
</select>
<span class="Validform_checktip"></span>
</div>
<div class="form" id="pfun">
<label class="Validform_label">
父菜单:
</label>
<input id="cc"
<c:if test="${function.TSFunction.functionLevel eq 0}">
value="${function.TSFunction.id}"</c:if>
<c:if test="${function.TSFunction.functionLevel > 0}">
value="${function.TSFunction.functionName}"</c:if> >
<input id ="functionId" name="TSFunction.id" style="display: none;"
value="${function.TSFunction.id}">
</div>
<div class="form" id="funurl">
<label class="Validform_label">
菜单地址:
</label>
<input name="functionUrl" class="inputxt"
value="${function.functionUrl}">
</div>
<div class="form">
<label class="Validform_label">
图标名称:
</label>
<select name="TSIcon.id">
<c:forEach items="${iconlist}" var="icon">
<option value="${icon.id}"
<c:if test="${icon.id==function.TSIcon.id || (function.id eq null && icon.iconClas eq 'pictures') }">selected="selected"</c:if>>
${icon.iconName}
</option>
</c:forEach>
</select>
</div>
<div class="form" id="funorder">
<label class="Validform_label">
菜单顺序:
</label>
<input name="functionOrder" class="inputxt"
<%--
update-begin--Author:wushu Date:20130921 for[TASK #260] 菜单编辑操作时菜单顺序-验证失效
value="${function.functionOrder}" datatype="n 1-3">
update--end---Author:wushu Date:20130921 for[TASK #260] 菜单编辑操作时菜单顺序-验证失效
--%>
value="${function.functionOrder}" datatype="n1-3">
</div>
</fieldset>
</t:formvalid>
</body>
</html>