列表页面
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>商户管理系统</title>
<link rel="stylesheet" href="${basePath}/css/layui.css">
<%
layout("/page/tags/header.html",{}){}
%>
</head>
<body>
<table id="listGrid" class="easyui-datagrid" title="员工管理"
style="height: 90%;" url="${basePath}ms/staff/findPage"
pagination="true" rownumbers="true" fitColumns="true"
singleSelect="true" pageSize="10" striped="true" toolbar="#toolbar">
<thead>
<tr>
<th align="center" field="loginName" width="19%" sortable="false">登录名</th>
<th align="center" field="staffName" width="23%" sortable="false">姓名</th>
<th align="center" field="staffMobile" width="19%" sortable="false">电话</th>
<th align="center" field="createTime" width="19%" sortable="false">创建时间</th>
<th align="center" field="updateTime" width="19%" sortable="false">修改时间</th>
</tr>
</thead>
</table>
<div id="toolbar">
<div style="margin-bottom: 5px">
<input id="StaffNameF" name="staffNameF" type="text" placeholder="姓名">
<input id="StaffMobileF" name="staffMobileF" type="text" placeholder="电话">
<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" plain="true"
onclick="reload()">查询</a>
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-search" plain="true"
onclick="add()">新增</a>
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-search" plain="true"
onclick="addSelectRowFun('listGrid',update);">修改</a>
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-search" plain="true"
onclick="addSelectRowFun('listGrid',view)">查看</a>
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-search" plain="true"
onclick="pubDel('listGrid','${basePath}mch/staff/delStaff?id=','id');">删除</a>
</div>
</div>
<div id="addOrUpdateDialog" class="easyui-dialog" title="商户管理"
data-options="iconCls:'icon-save'" closed="true"
style="width: 820px; height: 410px; padding: 10px"
buttons="#dlg-buttons"></div>
<div id="dlg-buttons">
<a href="#" id="subBtn" class="easyui-linkbutton" onclick="save()">保存</a>
<a href="#" class="easyui-linkbutton" onclick="closeDialog()">返回</a>
</div>
<script type="text/javascript">
//重新加载
function reload() {
$('#listGrid').datagrid('load', {
staffName : $('#staffNameF').val(),
staffMobile : $('#staffMobileF').val()
});
}
function view(row) {
openDialog('${basePath}/b/page-ms/staff_add_update?isView=true&id=' + row.id, '查看');
}
function add(){
openDialog('${basePath}/b/page-ms/staff_add_update?isAdd=true', '添加');
}
function update(row) {
openDialog('${basePath}/b/page-ms/staff_add_update?isEdit=true&id=' + row.id, '修改');
}
</script>
</body>
</html>
表单页面
<%
include("/page/tags/form_include.html"){}
%>
<form id="addUpdateForm" method="post">
<div class="fitem">
<#InputFormTag name='menuName' title='菜单名称' required='true' />
<#InputFormTag name='namespace' title='Namespace' required='true' />
</div>
<#BigInputFormTag name='menuUrl' title='链接地址' required='true' />
<div class="fitem">
<#WordBookFormTag name='isDisable' title='是否禁用' code='yesOrNo' required='true' />
<#WordBookFormTag name='menuState' title='是否隐藏' code='yesOrNo' required='true' />
</div>
<#UploadFormTag name='image' title='LOGO' placeholder="请上传菜单LOGO"/>
<div class="fitem">
<#SelectFormTag name='serverNameId' title='所在服务器' url='${basePath}/ms/menuServer/getData' required='true' valueField= 'id'
textField= 'serverName' />
<#InputFormTag name='orderIndex' title='菜单序号' required='true' dataType="n"/>
</div>
<div class="fitem">
<#SelectFormTag name='systemId' title='子系统' url='${basePath}/ms/sysSystem/getSystemComBoxData' required='true' valueField= 'id'
textField= 'text' />
<#WordBookFormTag name='menuType' title='菜单类型' code='menu_type' required='true' />
</div>
<#HideFormTag type="hidden" name="fatherMenuId" value="${parameter.parentId}"/>
<div class="fitem ">
<center class="fitem-footer">
<a href="#" class="easyui-linkbutton btn btn-suc" onclick="save()">保存</a>
<a href="#" class="easyui-linkbutton btn btn-can" onclick="closeDialog()">返回</a>
</center>
</div>
</form>
<script>
$(function () {
$('#isDisable').combobox('setValue',0);
$('#menuState').combobox('setValue',0);
})
function saveAfterSuccessHandler(){
document.getElementById('left').contentWindow.reloadData();
document.getElementById('rightFrame').contentWindow.reload();
}
</script>
<%
layout("/page/tags/add_update_tag.html",{'nameSpace':'sysMenu','idField':'menuId'}){}
%>
权限控制
使用#shiro tag即可控制权限,如果没此权限则节点html 不会展示
<#shiro name="staff:see">
<a href="javascript:void(0)" class="easyui-linkbutton searchBTN"
iconCls="icon-search" plain="true" onclick="reload()">查询</a>
</#shiro>
当前内容版权归 fhs-opensource 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 fhs-opensource .