Commit e2a64d42 authored by Huang's avatar Huang
Browse files

no commit message

parent 0844dd86
@layout("/common/_container.html"){
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>通知管理</h5>
</div>
<div class="ibox-content">
<div class="row row-lg">
<div class="col-sm-12">
<div class="row">
<div class="col-sm-3">
<#NameCon id="condition" name="名称" />
</div>
<div class="col-sm-3">
<#button name="搜索" icon="fa-search" clickFun="Notice.search()"/>
</div>
</div>
<div class="hidden-xs" id="NoticeTableToolbar" role="group">
@if(shiro.hasPermission("/notice/add")){
<#button name="添加" icon="fa-plus" clickFun="Notice.openAddNotice()"/>
@}
@if(shiro.hasPermission("/notice/update")){
<#button name="修改" icon="fa-plus" clickFun="Notice.openNoticeDetail()" space="true"/>
@}
@if(shiro.hasPermission("/notice/delete")){
<#button name="删除" icon="fa-plus" clickFun="Notice.delete()" space="true"/>
@}
</div>
<#table id="NoticeTable"/>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="${ctxPath}/static/modular/system/notice/notice.js"></script>
@}
@layout("/common/_container.html"){
<div class="ibox float-e-margins">
<div class="ibox-content">
<div class="form-horizontal" id="noticeInfoForm">
<input type="hidden" id="id" value="">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-1 control-label">标题</label>
<div class="col-sm-11">
<input class="form-control" id="title" name="title" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">内容</label>
<div class="col-sm-11">
<div id="editor" class="editorHeight">
</div>
</div>
</div>
</div>
</div>
<div class="row btn-group-m-t">
<div class="col-sm-10">
<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="NoticeInfoDlg.addSubmit()"/>
<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="NoticeInfoDlg.close()"/>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="${ctxPath}/static/js/plugins/wangEditor/wangEditor.js"></script>
<script src="${ctxPath}/static/modular/system/notice/notice_info.js"></script>
@}
@layout("/common/_container.html"){
<div class="ibox float-e-margins">
<div class="ibox-content">
<div class="form-horizontal" id="noticeInfoForm">
<input type="hidden" id="id" value="${notice.id}">
<input type="hidden" id="contentVal" value="${notice.content}">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-1 control-label">标题</label>
<div class="col-sm-11">
<input class="form-control" id="title" name="title" type="text" value="${notice.title}">
</div>
</div>
<div class="form-group">
<label class="col-sm-1 control-label">内容</label>
<div class="col-sm-11">
<div id="editor" class="editorHeight">
</div>
</div>
</div>
</div>
</div>
<div class="row btn-group-m-t">
<div class="col-sm-10">
<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="NoticeInfoDlg.editSubmit()"/>
<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="NoticeInfoDlg.close()"/>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="${ctxPath}/static/js/plugins/wangEditor/wangEditor.js"></script>
<script src="${ctxPath}/static/modular/system/notice/notice_info.js"></script>
@}
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>通知管理</title>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>
<c:if test="${action ne 'view'}">
<c:if test="${empty oaNotify.id}">新增</c:if>
<c:if test="${not empty oaNotify.id}">编辑</c:if>
</c:if>
<c:if test="${action eq 'view'}">查看</c:if>
通知管理
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<form:form id="inputForm" modelAttribute="oaNotify" action="${ctx}/oa/oaNotify/save" method="post"
class="form-horizontal content-background">
<div class="content">
<form:hidden path="id"/>
<div class="form-unit">基本信息</div>
<div class="form-group">
<label class="control-label col-sm-2 pull-left">类型:<font color="red">*</font><i class="fa icon-question"></i></label>
<div class="col-sm-9 col-lg-10 col-xs-12">
<form:select path="type" class="form-control required">
<form:option value="" label=""/>
<form:options items="${fns:getDictList('oa_notify_type')}" itemLabel="label"
itemValue="value"
htmlEscape="false"/>
</form:select>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2 pull-left">标题:<font color="red">*</font></label>
<div class="col-sm-9 col-lg-10 col-xs-12">
<form:input path="title" htmlEscape="false" maxlength="200" class="form-control required"/>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2 pull-left">内容:<font color="red">*</font></label>
<div class="col-sm-9 col-lg-10 col-xs-12">
<form:textarea path="content" htmlEscape="false" rows="6" maxlength="2000"
class="form-control required"/>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2 pull-left">附件:</label>
<div class="col-sm-9 col-lg-10 col-xs-12">
<c:if test="${oaNotify.status ne '1'}">
<form:hidden id="files" path="files" htmlEscape="false" maxlength="255"
class="form-control"/>
<sys:ckfinder input="files" type="files" uploadPath="/oa/notify" selectMultiple="true"/>
</c:if>
<c:if test="${oaNotify.status eq '1'}">
<form:hidden id="files" path="files" htmlEscape="false" maxlength="255"
class="form-control"/>
<sys:ckfinder input="files" type="files" uploadPath="/oa/notify" selectMultiple="true"
readonly="true"/>
</c:if>
</div>
</div>
<c:if test="${oaNotify.status ne '1'}">
<div class="form-group">
<label class="control-label col-sm-2 pull-left">状态:<font color="red">*</font></label>
<div class="col-sm-9 col-lg-10 col-xs-12">
<form:radiobuttons path="status" items="${fns:getDictList('oa_notify_status')}"
itemLabel="label"
itemValue="value" htmlEscape="false" class="i-checks required"/>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2 pull-left">接受人:<font color="red">*</font></label>
<div class="col-sm-9 col-lg-10 col-xs-12">
<sys:treeselect id="oaNotifyRecord" name="oaNotifyRecordIds"
value="${oaNotify.oaNotifyRecordIds}"
labelName="oaNotifyRecordNames"
labelValue="${oaNotify.oaNotifyRecordNames}"
title="用户" url="/sys/office/treeData?type=3"
cssClass="form-control required"
notAllowSelectParent="true" checked="true"/>
</div>
</div>
</c:if>
<c:if test="${oaNotify.status eq '1'}">
<div class="form-group">
<label class="control-label col-sm-2 pull-left">接受人:</label>
<div class="col-sm-9 col-lg-10 col-xs-12">
<table id="contentTable"
class="table table-striped table-hover table-condensed dataTables-example dataTable">
<thead>
<tr>
<th>接受人</th>
<th>接受部门</th>
<th>阅读状态</th>
<th>阅读时间</th>
</tr>
</thead>
<tbody>
<c:forEach items="${oaNotify.oaNotifyRecordList}" var="oaNotifyRecord">
<tr>
<td>
${oaNotifyRecord.user.name}
</td>
<td>
${oaNotifyRecord.user.office.name}
</td>
<td>
${fns:getDictLabel(oaNotifyRecord.readFlag, 'oa_notify_read', '')}
</td>
<td>
<fmt:formatDate value="${oaNotifyRecord.readDate}"
pattern="yyyy-MM-dd HH:mm:ss"/>
</td>
</tr>
</c:forEach>
</tbody>
</table>
已查阅:${oaNotify.readNum} &nbsp; 未查阅:${oaNotify.unReadNum} &nbsp;
总共:${oaNotify.readNum + oaNotify.unReadNum}</td>
</div>
</div>
</c:if>
<div class="form-group">
<c:if test="${action ne 'view'}">
<a id="btnSubmit" class="btn btn-primary">保存</a>
</c:if>
<a id="btnBack" class="btn btn-default">返回</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</form:form>
</div>
</div>
</div>
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>通知管理</title>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>通知管理</div>
<div class="box-tools pull-right">
<a id="btnSearchView" href="#" class="btn btn-sm btn-default" title="筛选">
<i class="fa fa-filter"></i>筛选
</a>
<button id="btnRefresh" class="btn btn-default btn-sm" title="刷新">
<i class="glyphicon glyphicon-repeat"></i>刷新
</button>
<c:if test="${!requestScope.oaNotify.self}">
<shiro:hasPermission name="oa:oaNotify:add">
<a id="btnAdd" href="${ctx}/oa/oaNotify/form" data-addTab="true"
class="btn btn-default btn-sm" title="新增"><i
class="fa fa-plus"></i>新增</a>
</shiro:hasPermission>
<shiro:hasPermission name="oa:oaNotify:del">
<a id="btnDeleteAll" href="${ctx}/oa/oaNotify/deleteAll" class="btn btn-default btn-sm"
title="删除"><i class="fa fa-plus"></i> 删除</a>
</shiro:hasPermission>
<shiro:hasPermission name="oa:oaNotify:import">
<table:importExcel url="${ctx}/oa/oaNotify/import">导入</table:importExcel><!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission name="oa:oaNotify:export">
<table:exportExcel url="${ctx}/oa/oaNotify/export">导出</table:exportExcel><!-- 导出按钮 -->
</shiro:hasPermission>
</c:if>
<!-- 工具功能 -->
<%@ include file="/WEB-INF/views/include/btnGroup.jsp" %>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<!-- 查询条件 -->
<form:form id="searchForm" modelAttribute="oaNotify" action="${ctx}/oa/oaNotify/${oaNotify.self?'self':''}"
method="post" class="form-inline">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<input id="orderBy" name="orderBy" type="hidden" value="${page.orderBy}"/>
<div class="form-group">
<label class="control-label">标题:</label>
<div class="control-inline"><form:input path="title" htmlEscape="false" maxlength="200"
class=" form-control input-sm"/></div>
</div>
<div class="form-group">
<label class="control-label">类型:</label>
<div class="control-inline">
<form:select path="type" class="form-control m-b">
<form:option value="" label=""/>
<form:options items="${fns:getDictList('oa_notify_type')}" itemLabel="label"
itemValue="value" htmlEscape="false"/>
</form:select>
</div>
</div>
<div class="form-group">
<c:if test="${!requestScope.oaNotify.self}">
<label class="control-label">状态:</label>
<div class="control-inline">
<form:radiobuttons path="status" class="i-checks"
items="${fns:getDictListAddAll('oa_notify_status')}" itemLabel="label"
itemValue="value" htmlEscape="false"/>
</div>
</c:if>
</div>
<div class="form-group">
<button id="btnSearch" class="btn btn-primary"><i class="fa fa-search"></i> 查询</button>
<button id="btnReset" class="btn btn-default"><i class="fa fa-refresh"></i> 重置</button>
</div>
</form:form>
<!-- 列表 -->
<table id="contentTable" class="table table-hover table-condensed dataTables-example dataTable no-footer">
<thead>
<tr>
<th><input type="checkbox" class="i-checks"></th>
<th class="sort-column title">标题</th>
<th class="sort-column type">类型</th>
<th class="sort-column status">状态</th>
<th class="sort-column readFlag">查阅状态</th>
<th class="sort-column updateDate">更新时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="oaNotify">
<tr>
<td><input type="checkbox" id="${oaNotify.id}" class="i-checks"></td>
<td>
<shiro:hasPermission name="oa:oaNotify:edit">
<a href="${ctx}/oa/oaNotify/${requestScope.oaNotify.self?'view':'form'}?id=${oaNotify.id}">
</shiro:hasPermission>
${fns:abbr(oaNotify.title,50)}
<shiro:hasPermission name="oa:oaNotify:edit">
</a>
</shiro:hasPermission>
</td>
<td>${fns:getDictLabel(oaNotify.type, 'oa_notify_type', '')}</td>
<td>${fns:getDictLabel(oaNotify.status, 'oa_notify_status', '')}</td>
<td>
<c:if test="${requestScope.oaNotify.self}">
${fns:getDictLabel(oaNotify.readFlag, 'oa_notify_read', '')}
</c:if>
<c:if test="${!requestScope.oaNotify.self}">
${oaNotify.readNum} / ${oaNotify.readNum + oaNotify.unReadNum}
</c:if>
</td>
<td><fmt:formatDate value="${oaNotify.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
<td>
<c:if test="${!requestScope.oaNotify.self}">
<shiro:hasPermission name="oa:oaNotify:view">
<a id="btnView" class="btnView"
href="${ctx}/oa/oaNotify/form?id=${oaNotify.id}&action=view" title="查看"><i
class="fa fa-search-plus"></i></a>
</shiro:hasPermission>
<shiro:hasPermission name="oa:oaNotify:edit">
<a id="btnEdit" class="btnEdit" href="${ctx}/oa/oaNotify/form?id=${oaNotify.id}"
title="编辑"><i
class="fa fa-pencil"></i></a>
</shiro:hasPermission>
<shiro:hasPermission name="oa:oaNotify:del">
<a id="btnDelete" class="btnDelete"
href="${ctx}/oa/oaNotify/delete?id=${oaNotify.id}" title="删除"><i
class="fa fa-trash-o"></i></a>
</shiro:hasPermission>
</c:if>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<!-- 没有信息数据 -->
<%@ include file="/WEB-INF/views/include/tableNoData.jsp" %>
<!-- 分页代码 -->
${page.toStringPage()}
</div>
</div>
</div>
<!-- 信息-->
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>审批管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<script type="text/javascript">
$(document).ready(function() {
$("#name").focus();
$("#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);
}
}
});
});
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li><a href="${ctx}/oa/testAudit/">审批列表</a></li>
<li class="active"><a href="#"><shiro:hasPermission name="oa:testAudit:edit">${testAudit.act.taskName}</shiro:hasPermission><shiro:lacksPermission name="oa:testAudit:edit">查看</shiro:lacksPermission></a></li>
</ul>
<form:form id="inputForm" modelAttribute="testAudit" action="${ctx}/oa/testAudit/saveAudit" method="post" class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="act.taskId"/>
<form:hidden path="act.taskName"/>
<form:hidden path="act.taskDefKey"/>
<form:hidden path="act.procInsId"/>
<form:hidden path="act.procDefId"/>
<form:hidden id="flag" path="act.flag"/>
<sys:message content="${message}"/>
<fieldset>
<legend>${testAudit.act.taskName}</legend>
<table class="table-form">
<tr>
<td class="tit">姓名</td><td>${testAudit.user.name}</td>
<td class="tit">部门</td><td>${testAudit.office.name}</td>
<td class="tit">岗位职级</td><td>${testAudit.post}</td>
</tr>
<tr>
<td class="tit">调整原因</td>
<td colspan="5">${testAudit.content}</td>
</tr>
<tr>
<td class="tit" rowspan="3">调整原因</td>
<td class="tit">薪酬档级</td>
<td>${testAudit.olda}</td>
<td class="tit" rowspan="3">拟调整标准</td>
<td class="tit">薪酬档级</td>
<td>${testAudit.newa}</td>
</tr>
<tr>
<td class="tit">月工资额</td>
<td>${testAudit.oldb}</td>
<td class="tit">月工资额</td>
<td>${testAudit.newb}</td>
</tr>
<tr>
<td class="tit">年薪金额</td>
<td>${testAudit.oldc}</td>
<td class="tit">年薪金额</td>
<td>${testAudit.newc}</td>
</tr>
<tr>
<td class="tit">月增资</td>
<td colspan="2">${testAudit.addNum}</td>
<td class="tit">执行时间</td>
<td colspan="2">${testAudit.exeDate}</td>
</tr>
<tr>
<td class="tit">人力资源部意见</td>
<td colspan="5">
${testAudit.hrText}
</td>
</tr>
<tr>
<td class="tit">分管领导意见</td>
<td colspan="5">
${testAudit.leadText}
</td>
</tr>
<tr>
<td class="tit">集团主要领导意见</td>
<td colspan="5">
${testAudit.mainLeadText}
</td>
</tr>
<tr>
<td class="tit">您的意见</td>
<td colspan="5">
<form:textarea path="act.comment" class="required" rows="5" maxlength="20" cssStyle="width:500px"/>
</td>
</tr>
</table>
</fieldset>
<div class="form-actions">
<shiro:hasPermission name="oa:testAudit:edit">
<c:if test="${testAudit.act.taskDefKey eq 'apply_end'}">
<input id="btnSubmit" class="btn btn-primary" type="submit" value="兑 现" onclick="$('#flag').val('yes')"/>&nbsp;
</c:if>
<c:if test="${testAudit.act.taskDefKey ne 'apply_end'}">
<input id="btnSubmit" class="btn btn-primary" type="submit" value="同 意" onclick="$('#flag').val('yes')"/>&nbsp;
<input id="btnSubmit" class="btn btn-inverse" type="submit" value="驳 回" onclick="$('#flag').val('no')"/>&nbsp;
</c:if>
</shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
<act:histoicFlow procInsId="${testAudit.act.procInsId}"/>
</form:form>
</body>
</html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>审批管理</title>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i><shiro:hasPermission
name="oa:testAudit:edit">审批${not empty testAudit.id?'修改':'申请'}流程</shiro:hasPermission><shiro:lacksPermission
name="oa:testAudit:edit">查看</shiro:lacksPermission></div>
<div class="box-tools pull-right">
<a id="btnSearchView" href="#" class="btn btn-sm btn-default" title="查询"><i class="fa fa-filter"></i>查询</a>
<button id="btnRefresh" class="btn btn-default btn-sm" title="刷新"><i
class="glyphicon glyphicon-repeat"></i> 刷新
</button>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<ul class="nav nav-tabs">
<li><a href="${ctx}/oa/testAudit/">审批列表</a></li>
<li class="active"><a href="${ctx}/oa/testAudit/form?id=${testAudit.id}"><shiro:hasPermission
name="oa:testAudit:edit">审批${not empty testAudit.id?'修改':'申请'}流程</shiro:hasPermission><shiro:lacksPermission
name="oa:testAudit:edit">查看</shiro:lacksPermission></a></li>
</ul>
<br>
<form:form id="inputForm" modelAttribute="testAudit" action="${ctx}/oa/testAudit/save" method="post"
class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="act.taskId"/>
<form:hidden path="act.taskName"/>
<form:hidden path="act.taskDefKey"/>
<form:hidden path="act.procInsId"/>
<form:hidden path="act.procDefId"/>
<form:hidden id="flag" path="act.flag"/>
<table class="table table-bordered">
<tr><td colspan="6" class="title">审批申请</td></tr>
<tr>
<td class="tit">姓名</td>
<td>
<sys:treeselect id="user" name="user.id" value="${testAudit.user.id}"
labelName="user.name"
labelValue="${testAudit.user.name}"
title="用户" url="/sys/office/treeData?type=3"
cssClass="required recipient form-control"
allowClear="true" notAllowSelectParent="true" smallBtn="false"/>
</td>
<td class="tit">部门</td>
<td>
<sys:treeselect id="office" name="office.id" value="${testAudit.office.id}"
labelName="office.name" labelValue="${testAudit.office.name}"
title="用户" url="/sys/office/treeData?type=2"
cssClass="required recipient form-control"
allowClear="true" notAllowSelectParent="true" smallBtn="false"/>
</td>
<td class="tit">岗位职级</td>
<td>
<form:input path="post" class="form-control" htmlEscape="false" maxlength="50"/>
</td>
</tr>
<tr>
<td class="tit">调整原因</td>
<td colspan="5">
<form:textarea path="content" class="form-control required" rows="5" maxlength="200"
cssStyle="width:500px"/>
</td>
</tr>
<tr>
<td class="tit" rowspan="3">调整原因</td>
<td class="tit">薪酬档级</td>
<td><form:input path="olda" htmlEscape="false" maxlength="50" class="form-control"/></td>
<td class="tit" rowspan="3">拟调整标准</td>
<td class="tit">薪酬档级</td>
<td><form:input path="newa" htmlEscape="false" maxlength="50" class="form-control"/></td>
</tr>
<tr>
<td class="tit">月工资额</td>
<td><form:input path="oldb" htmlEscape="false" maxlength="50" class="form-control"/></td>
<td class="tit">月工资额</td>
<td><form:input path="newb" htmlEscape="false" maxlength="50" class="form-control"/></td>
</tr>
<tr>
<td class="tit">年薪金额</td>
<td><form:input path="oldc" htmlEscape="false" maxlength="50" class="form-control"/></td>
<td class="tit">年薪金额</td>
<td><form:input path="newc" htmlEscape="false" maxlength="50" class="form-control"/></td>
</tr>
<tr>
<td class="tit">月增资</td>
<td colspan="2"><form:input path="addNum" htmlEscape="false" maxlength="50" class="form-control"/></td>
<td class="tit">执行时间</td>
<td colspan="2"><form:input path="exeDate" htmlEscape="false" maxlength="50" class="form-control"/></td>
</tr>
<tr>
<td class="tit">人力资源部意见</td>
<td colspan="5">
${testAudit.hrText}
</td>
</tr>
<tr>
<td class="tit">分管领导意见</td>
<td colspan="5">
${testAudit.leadText}
</td>
</tr>
<tr>
<td class="tit">集团主要领导意见</td>
<td colspan="5">
${testAudit.mainLeadText}
</td>
</tr>
</table>
<div class="form-actions">
<shiro:hasPermission name="oa:testAudit:edit">
<input id="btnSubmit" class="btn btn-primary" type="submit" value="提交申请"
onclick="$('#flag').val('yes')"/>&nbsp;
<c:if test="${not empty testAudit.id}">
<input id="btnSubmit2" class="btn btn-inverse" type="submit" value="销毁申请"
onclick="$('#flag').val('no')"/>&nbsp;
</c:if>
</shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
<c:if test="${not empty testAudit.id}">
<act:histoicFlow procInsId="${testAudit.act.procInsId}"/>
</c:if>
</form:form>
</div>
</div>
</div>
<!-- 信息-->
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script></body>
</html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>审批管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
<script type="text/javascript">
$(document).ready(function () {
});
function page(n, s) {
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>通知管理</div>
<div class="box-tools pull-right">
<a id="btnSearchView" href="#" class="btn btn-sm btn-default" title="查询"><i class="fa fa-filter"></i>查询</a>
<button id="btnRefresh" class="btn btn-default btn-sm" title="刷新"><i
class="glyphicon glyphicon-repeat"></i> 刷新
</button>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<!-- 查询条件 -->
<ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/oa/testAudit/">审批列表</a></li>
<shiro:hasPermission name="oa:testAudit:edit">
<li><a href="${ctx}/oa/testAudit/form">审批申请流程</a></li>
</shiro:hasPermission>
</ul>
<br>
<form:form id="searchForm" modelAttribute="testAudit" action="${ctx}/oa/testAudit/" method="post"
class="form-inline">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<div class="form-group">
<label class="control-label">姓名:</label>
<div class="control-inline">
<sys:treeselect id="user" name="user.id" value="${testAudit.user.id}"
labelName="user.name" labelValue="${testAudit.user.name}"
title="用户" url="/sys/office/treeData?type=3"
cssClass="form-control"
allowClear="true" notAllowSelectParent="true"/>
</div>
</div>
<div class="form-group">
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
</div>
</form:form>
<table id="contentTable" class="table table-hover table-condensed dataTables-example dataTable no-footer">
<thead>
<tr>
<th>姓名</th>
<th>部门</th>
<th>岗位职级</th>
<th>调整原因</th>
<th>申请时间</th>
<shiro:hasPermission name="oa:testAudit:edit">
<th>操作</th>
</shiro:hasPermission></tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="testAudit">
<tr>
<td><a href="${ctx}/oa/testAudit/form?id=${testAudit.id}">${testAudit.user.name}</a></td>
<td>${testAudit.office.name}</td>
<td>${testAudit.post}</td>
<td>${testAudit.content}</td>
<td><fmt:formatDate value="${testAudit.createDate}" type="both"
pattern="yyyy-MM-dd HH:mm:ss"/></td>
<shiro:hasPermission name="oa:testAudit:edit">
<td>
<a href="${ctx}/oa/testAudit/form?id=${testAudit.id}">详情</a>
<a href="${ctx}/oa/testAudit/delete?id=${testAudit.id}"
onclick="return confirmx('确认要删除该审批吗?', this.href)">删除</a>
</td>
</shiro:hasPermission>
</tr>
</c:forEach>
</tbody>
</table>
${page.toStringPage()}
</div>
</div>
</div>
<!-- 信息-->
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script></body>
</html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>审批管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>审批详情</div>
<div class="box-tools pull-right">
<button id="btnRefresh" class="btn btn-default btn-sm" title="刷新"><i
class="glyphicon glyphicon-repeat"></i> 刷新
</button>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<ul class="nav nav-tabs">
<li><a href="${ctx}/oa/testAudit/">审批列表</a></li>
<li class="active"><a href="${ctx}/oa/testAudit/form/?procInsId=${testAudit.procInsId}">审批详情</a></li>
</ul>
<br>
<form:form class="form-horizontal">
<fieldset>
<legend>审批详情</legend>
<table class="table table-bordered">
<tr>
<td class="tit">姓名</td>
<td>${testAudit.user.name}</td>
<td class="tit">部门</td>
<td>${testAudit.office.name}</td>
<td class="tit">岗位职级</td>
<td>${testAudit.post}</td>
</tr>
<tr>
<td class="tit">调整原因</td>
<td colspan="5">${testAudit.content}</td>
</tr>
<tr>
<td class="tit" rowspan="3">调整原因</td>
<td class="tit">薪酬档级</td>
<td>${testAudit.olda}</td>
<td class="tit" rowspan="3">拟调整标准</td>
<td class="tit">薪酬档级</td>
<td>${testAudit.newa}</td>
</tr>
<tr>
<td class="tit">月工资额</td>
<td>${testAudit.oldb}</td>
<td class="tit">月工资额</td>
<td>${testAudit.newb}</td>
</tr>
<tr>
<td class="tit">年薪金额</td>
<td>${testAudit.oldc}</td>
<td class="tit">年薪金额</td>
<td>${testAudit.newc}</td>
</tr>
<tr>
<td class="tit">月增资</td>
<td colspan="2">${testAudit.addNum}</td>
<td class="tit">执行时间</td>
<td colspan="2">${testAudit.exeDate}</td>
</tr>
<tr>
<td class="tit">人力资源部意见</td>
<td colspan="5">
${testAudit.hrText}
</td>
</tr>
<tr>
<td class="tit">分管领导意见</td>
<td colspan="5">
${testAudit.leadText}
</td>
</tr>
<tr>
<td class="tit">集团主要领导意见</td>
<td colspan="5">
${testAudit.mainLeadText}
</td>
</tr>
</table>
</fieldset>
<act:histoicFlow procInsId="${testAudit.act.procInsId}"/>
<div class="form-actions">
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
</form:form>
</div>
</div>
<!-- 信息-->
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script></body>
</html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>区域管理</title>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>
部门管理
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<form:form id="inputForm" modelAttribute="area" action="${ctx}/sys/area/save" method="post"
class="form-horizontal content-background">
<div class="content">
<form:hidden path="id"/>
<div class="form-unit">基本信息</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">上级区域</label>
<div class="col-sm-8">
<sys:treeselect id="area" name="parent.id" value="${area.parent.id}"
labelName="parent.name"
labelValue="${area.parent.name}"
title="区域" url="/sys/area/treeData" extId="${area.id}"
cssClass="form-control m-s" allowClear="true"/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">区域名称</label>
<div class="col-sm-8">
<form:input path="name" htmlEscape="false" maxlength="50"
class="form-control required"/></div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left"><font color="red">*</font>区域编码</label>
<div class="col-sm-8">
<form:input path="code" htmlEscape="false" maxlength="50"
class="form-control"/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">区域类型</label>
<div class="col-sm-8">
<form:select path="type" class="form-control">
<form:options items="${fns:getDictList('sys_area_type')}" itemLabel="label"
itemValue="value" htmlEscape="false"/>
</form:select>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">备注</label>
<div class="col-sm-8">
<form:textarea path="remarks" htmlEscape="false" rows="3"
maxlength="200" class="form-control"/>
</div>
</div>
</div>
<div id="iframeSave" class="form-group">
<c:if test="${action ne 'view'}">
<a id="btnSubmit" class="btn btn-primary">保存</a>
</c:if>
<a id="btnBack" class="btn btn-default">返回</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</form:form>
</div>
</div>
</div>
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>区域管理</title>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
<%@include file="/WEB-INF/views/include/treetable.jsp" %>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>区域管理</div>
<div class="box-tools pull-right">
<shiro:hasPermission name="sys:area:add">
<a id="btnAdd" href="${ctx}/sys/area/form"
class="btn btn-default btn-sm" title="新增"><i
class="fa fa-plus"></i>新增</a>
</shiro:hasPermission>
<button data-placement="left" onclick="refresh()"
class="btn btn-default btn-sm" title="刷新"><i class="glyphicon glyphicon-repeat"></i>刷新
</button>
<!-- 工具功能 -->
<%@ include file="/WEB-INF/views/include/btnGroup.jsp" %>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<!-- 工具栏 -->
<div class="row">
<div class="col-sm-12">
<div class="pull-left"></div>
</div>
</div>
<table id="treeTable" class="table table-hover table-condensed dataTables-example dataTable">
<thead>
<tr>
<th>区域名称</th>
<th>区域编码</th>
<th>区域类型</th>
<th>备注</th>
<th>操作</th>
</tr>
</thead>
<tbody id="treeTableList"></tbody>
</table>
</div>
</div>
</div>
<!-- 信息-->
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script>
<script type="text/template" id="treeTableTpl">
<tr id="{{row.id}}" pId="{{pid}}">
<td><a href="${ctx}/sys/area/form?id={{row.id}}">{{row.name}}</a>
</td>
<td>{{row.code}}</td>
<td>{{dict.type}}</td>
<td>{{row.remarks}}</td>
<td>
<shiro:hasPermission name="sys:area:view">
<a href="${ctx}/sys/area/form?id={{row.id}}" title="查看"><i class="fa fa-search-plus"></i></a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:area:edit">
<a href="${ctx}/sys/area/form?id={{row.id}}"
title="编辑"><i class="fa fa-pencil"></i></a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:area:del">
<a href="${ctx}/sys/area/delete?id={{row.id}}" onclick="return confirmx('要删除该区域及所有子区域项吗?', this.href)"
title="删除"><i class="fa fa-trash-o"></i></a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:area:add">
<a href="${ctx}/sys/area/form?parent.id={{row.id}}"
class="btn btn-sm"><i class="fa fa-plus"></i> 添加下级区域</a>
</shiro:hasPermission>
</td>
</tr>
</script>
<script type="text/javascript">
$(document).ready(function () {
var tpl = $("#treeTableTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
var data = ${fns:toJson(list)}, rootId = "0";
addRow("#treeTableList", tpl, data, rootId, true);
$("#treeTable").treeTable({expandLevel: 2});
});
function addRow(list, tpl, data, pid, root) {
for (var i = 0; i < data.length; i++) {
var row = data[i];
if ((${fns:jsGetVal('row.parentId')}) == pid) {
$(list).append(Mustache.render(tpl, {
dict: {
type: getDictLabel(${fns:toJson(fns:getDictList('sys_area_type'))}, row.type)
}, pid: (root ? 0 : pid), row: row
}));
addRow(list, tpl, data, row.id);
}
}
}
function refresh() {//刷新
window.location = "${ctx}/sys/area/";
}
</script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>字典管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<script src="/staticViews/formSubmit.js" type="text/javascript"></script>
</head>
<body class="gray-bg">
<form:form id="inputForm" modelAttribute="dict" action="${ctx}/sys/dict/save" method="post" class="form-horizontal content-background">
<div class="content">
<form:hidden path="id"/>
<sys:message content="${message}"/>
<table class="width-100 table-condensed dataTables-example dataTable no-footer">
<tbody>
<tr>
<td class="width-15 active" valign="top"><label class="pull-left">键值</label></td>
<td class="width-35" ><form:input path="value" htmlEscape="false" maxlength="50" class="form-control required"/></td>
<td class="width-15 active" valign="top"><label class="pull-left">标签</label></td>
<td class="width-35" ><form:input path="label" htmlEscape="false" maxlength="50" class="form-control required"/></td>
</tr>
<tr>
<td class="width-15 active" valign="top"><label class="pull-left">类型</label></td>
<td class="width-35" ><form:input path="type" htmlEscape="false" maxlength="50" class="form-control required abc"/></td>
<td class="width-15 active" valign="top"><label class="pull-left">描述</label></td>
<td class="width-35" ><form:input path="description" htmlEscape="false" maxlength="50" class="form-control required"/></td>
</tr>
<tr>
<td class="width-15 active" valign="top"><label class="pull-left">图片</label></td>
<td class="width-35" colspan="3">
<form:hidden id="picture" path="picture" htmlEscape="false" maxlength="500" class="form-control"/>
<sys:ckfinder input="picture" type="files" uploadPath="/ylttrip/tdGoods" selectMultiple="false"/>
</td>
</tr>
<tr>
<td class="width-15 active" valign="top"><label class="pull-left">排序</label></td>
<td class="width-35" ><form:input path="sort" htmlEscape="false" maxlength="11" class="form-control required digits"/></td>
<td class="width-15 active" valign="top"><label class="pull-left">备注</label></td>
<td class="width-35" ><form:textarea path="remarks" htmlEscape="false" rows="3" maxlength="200" class="form-control "/></td>
</tr>
</tbody>
</table>
<div id="iframeSave" class="form-group ${action}">
<a class="btn btn-success" onclick="doSubmit();">保存</a>
<a class="btn btn-primary" onclick="javascript:history.back(-1);">返回</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</form:form>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>字典管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<script type="text/javascript">
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
<div class="ibox">
<div class="ibox-content">
<sys:message content="${message}"/>
<!-- 查询条件 -->
<div class="row">
<div class="col-sm-12">
<form:form id="searchForm" modelAttribute="dict" action="${ctx}/sys/dict/" method="post" class="form-inline">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
<div class="form-group">
<span>类型:</span>
<form:select id="type" path="type" class="form-control m-b"><form:option value="" label=""/><form:options items="${typeList}" htmlEscape="false"/></form:select>
<span>描述 :</span>
<form:input path="description" htmlEscape="false" maxlength="50" class="form-control"/>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div class="row">
<div class="col-sm-12">
<div class="pull-left">
<button class="btn btn-success btn-sm " onclick="search()" ><i class="fa fa-search"></i> 查询</button>
<shiro:hasPermission name="sys:dict:add">
<table:addRow url="${ctx}/sys/dict/form" title="字典"></table:addRow><!-- 增加按钮 -->
</shiro:hasPermission>
<shiro:hasPermission name="sys:dict:edit">
<table:editRow url="${ctx}/sys/dict/form" id="contentTable" title="字典"></table:editRow><!-- 编辑按钮 -->
</shiro:hasPermission>
<shiro:hasPermission name="sys:dict:del">
<table:delRow url="${ctx}/sys/dict/deleteAll" id="contentTable"></table:delRow><!-- 删除按钮 -->
</shiro:hasPermission>
<button class="btn btn-white btn-sm " data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button>
<button class="btn btn-white btn-sm " onclick="reset()" ><i class="fa fa-refresh"></i> 重置</button>
</div>
<!-- <div class="pull-right">
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="search()" ><i class="fa fa-search"></i> 查询</button>
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="reset()" ><i class="fa fa-refresh"></i> 重置</button>
</div> -->
</div>
</div>
<table id="contentTable" class="table table-hover table-condensed dataTables-example dataTable no-footer">
<thead>
<tr>
<th> <input type="checkbox" class="i-checks"></th>
<th class="sort-column value">键值</th>
<th >标签</th>
<th class="sort-column type">类型</th>
<th class="sort-column picture">图片</th>
<th class="sort-column description">描述</th>
<th class="sort-column sort">排序</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="dict">
<tr>
<td> <input type="checkbox" id="${dict.id}" class="i-checks"></td>
<td>${dict.value}</td>
<td><a href="#" onclick="openDialogView('查看字典', '${ctx}/sys/dict/form?id=${dict.id}','800px', '500px')">${dict.label}</a></td>
<td><a href="javascript:" onclick="$('#type').val('${dict.type}');$('#searchForm').submit();return false;">${dict.type}</a></td>
<td><img src="${dict.picture}" width="100px" height="50px"/></td>
<td>${dict.description}</td>
<td>${dict.sort}</td>
<td>
<shiro:hasPermission name="sys:dict:view">
<a href="#" onclick="openDialogView('查看字典', '${ctx}/sys/dict/form?id=${dict.id}','800px', '500px')" class="btn btn-success btn-sm" ><i class="fa fa-search-plus"></i> 查看</a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:dict:edit">
<a href="#" onclick="openDialog('修改字典', '${ctx}/sys/dict/form?id=${dict.id}','800px', '500px')" class="btn btn-white btn-sm" ><i class="fa fa-edit"></i> 修改</a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:dict:del">
<a href="${ctx}/sys/dict/delete?id=${dict.id}&type=${dict.type}" onclick="return confirmx('确认要删除该字典吗?', this.href)" class="btn btn-white btn-sm"><i class="fa fa-trash"></i> 删除</a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:dict:add">
<a href="#" onclick="openDialog('添加键值', '<c:url value='${fns:getAdminPath()}/sys/dict/form?type=${dict.type}&sort=${dict.sort+10}'><c:param name='description' value='${dict.description}'/></c:url>','800px', '500px')" class="btn btn-white btn-sm" ><i class="fa fa-plus"></i> 添加键值</a>
</shiro:hasPermission>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<!-- 分页代码 -->
<table:page page="${page}"></table:page>
<br/>
<br/>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>日志管理</title>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>日志管理</div>
<div class="box-tools pull-right">
<a id="btnSearchView" href="#" title="查询" class="btn btn-default btn-sm"><i
class="fa fa-filter"></i></a>
<a id="btnRefresh" title="刷新" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-repeat"></i></a>
<shiro:hasPermission name="sys:log:del">
<a id="btnDeleteAll" href="${ctx}/sys/log/deleteAll" title="删除"
class="btn btn-default btn-sm"><i class="fa fa-trash-o"></i></a>
<a id="btnDeleteAll" href="${ctx}/sys/log/empty" title="清空"
onclick="return confirmx('确认要清空日志吗?', this.href)"
class="btn btn-default btn-sm"><i class="fa fa-trash-o"></i>清空</a>
</shiro:hasPermission>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<form:form id="searchForm" action="${ctx}/sys/log/" method="post" class="form-inline">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}"
callback="sortOrRefresh();"/><!-- 支持排序 -->
<div class="form-group">
<span>操作菜单:</span>
<input id="title" name="title" type="text" maxlength="50"
class="form-control input-sm" value="${log.title}"/>
</div>
<div class="form-group">
<span>用户ID:</span>
<input id="createBy.id" name="createBy.id" type="text" maxlength="50"
class="form-control input-sm" value="${log.createBy.id}"/>
</div>
<div class="form-group">
<span>URI:</span>
<input id="requestUri" name="requestUri" type="text" maxlength="50"
class="form-control input-sm" value="${log.requestUri}"/>
</div>
<div class="form-group">
<span>日期范围:&nbsp;</span>
<input id="beginDate" name="beginDate" type="text" maxlength="20"
class="laydate-icon form-control layer-date input-sm"
value="<fmt:formatDate value="${log.beginDate}" pattern="yyyy-MM-dd"/>"/>
<label>-</label>
<input id="endDate" name="endDate" type="text" maxlength="20"
class=" laydate-icon form-control layer-date input-sm"
value="<fmt:formatDate value="${log.endDate}" pattern="yyyy-MM-dd"/>"/>&nbsp;&nbsp;
&nbsp;<label for="exception">
<input id="exception" name="exception" class="i-checks"
type="checkbox"${log.exception eq '1'?' checked':''} value="1"/>只查询异常信息</label>
</div>
<div class="form-group">
<button id="btnSearch" class="btn btn-primary"><i class="fa fa-search"></i> 查询</button>
<button id="btnReset" class="btn btn-default"><i class="fa fa-refresh"></i> 重置</button>
</div>
</form:form>
<table id="contentTable" class="table table-hover table-condensed dataTables-example dataTable">
<thead>
<tr>
<th><input type="checkbox" class="i-checks"></th>
<th>操作菜单</th>
<th>操作用户</th>
<th>所在公司</th>
<th>所在部门</th>
<th>URI</th>
<th>提交方式</th>
<th>操作者IP</th>
<th>操作时间</th>
</thead>
<tbody><%
request.setAttribute("strEnter", "\n");
request.setAttribute("strTab", "\t");
%>
<c:forEach items="${page.list}" var="log">
<tr>
<td><input type="checkbox" id="${log.id}" class="i-checks"></td>
<td>${log.title}</td>
<td>${log.createBy.name}</td>
<td>${log.createBy.company.name}</td>
<td>${log.createBy.office.name}</td>
<td><strong>${log.requestUri}</strong></td>
<td>${log.method}</td>
<td>${log.remoteAddr}</td>
<td><fmt:formatDate value="${log.createDate}" type="both"/></td>
</tr>
<c:if test="${not empty log.exception}">
<tr>
<td colspan="8" style="word-wrap:break-word;word-break:break-all;">
<%-- 用户代理: ${log.userAgent}<br/> --%>
<%-- 提交参数: ${fns:escapeHtml(log.params)} <br/> --%>
异常信息: <br/>
${fn:replace(fn:replace(fns:escapeHtml(log.exception), strEnter, '<br/>'), strTab, '&nbsp; &nbsp; ')}
</td>
</tr>
</c:if>
</c:forEach>
</tbody>
</table>
<!-- 分页代码 -->
${page.toStringPage()}
</div>
</div>
</div>
<!-- 信息-->
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script>
<script type="text/javascript">
$(document).ready(function () {
//外部js调用
laydate({
elem: '#beginDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event: 'focus' //响应事件。如果没有传入event,则按照默认的click
});
laydate({
elem: '#endDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event: 'focus' //响应事件。如果没有传入event,则按照默认的click
});
})
</script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>菜单管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>
<c:if test="${action ne 'view'}">
<c:if test="${empty oaNotify.id}">新增</c:if>
<c:if test="${not empty oaNotify.id}">编辑</c:if>
</c:if>
<c:if test="${action eq 'view'}">查看</c:if>
菜单管理
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<form:form id="inputForm" modelAttribute="menu" action="${ctx}/sys/menu/save" method="post"
class="form-horizontal content-background">
<div class="content">
<form:hidden path="id"/>
<sys:message content="${message}"/>
<div class="form-unit">基本信息</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">上级菜单</label>
<div class="col-sm-8">
<sys:treeselect id="menu" name="parent.id" value="${menu.parent.id}"
labelName="parent.name"
labelValue="${menu.parent.name}"
title="菜单" url="/sys/menu/treeData" extId="${menu.id}"
cssClass="form-control required"/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left"><font color="red">*</font>名称</label>
<div class="col-sm-8">
<form:input path="name" htmlEscape="false" maxlength="50"
class="required form-control "/>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">链接</label>
<div class="col-sm-8">
<form:input path="href" htmlEscape="false" maxlength="2000"
class="form-control "/>
<span class="help-inline">点击菜单跳转的页面</span>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left"><font color="red">*</font>目标</label>
<div class="col-sm-8">
<form:input path="target" htmlEscape="false" maxlength="10"
class="form-control "/>
<span class="help-inline">链接打开的目标窗口,默认:mainFrame</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">图标</label>
<div class="col-sm-8">
<sys:iconselect id="icon" name="icon" value="${menu.icon}"/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">排序</label>
<div class="col-sm-8">
<form:input path="sort" htmlEscape="false" maxlength="50"
class="required digits form-control "/>
<span class="help-inline">排列顺序,升序。</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">可见</label>
<div class="col-sm-8">
<form:radiobuttons path="isShow" items="${fns:getDictList('show_hide')}"
itemLabel="label" itemValue="value" htmlEscape="false"
class="required i-checks "/>
<span class="help-inline">该菜单或操作是否显示到系统菜单中</span>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">权限标识</label>
<div class="col-sm-8">
<form:input path="permission" htmlEscape="false" maxlength="100"
class="form-control "/>
<span class="help-inline">控制器中定义的权限标识,如:@RequiresPermissions("权限标识")</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">备注</label>
<div class="col-sm-8">
<form:textarea path="remarks" htmlEscape="false" rows="3"
maxlength="200" class="form-control "/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left"></label>
<div class="col-sm-8">
</div>
</div>
</div>
<div id="iframeSave" class="form-group">
<c:if test="${action ne 'view'}"><a id="btnSubmit" class="btn btn-primary">保存</a></c:if>
<a id="btnBack" class="btn btn-default">返回</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</form:form>
</div>
</div>
</div>
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>菜单管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
<%@include file="/WEB-INF/views/include/treetable.jsp" %>
</head>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>菜单管理</div>
<div class="box-tools pull-right">
<shiro:hasPermission name="sys:menu:add">
<a id="btnAdd" href="${ctx}/sys/menu/form" data-addTab="true"
class="btn btn-default btn-sm" title="新增"><i class="fa fa-plus"></i>新增</a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:menu:del">
<a id="btnDeleteAll" href="${ctx}/sys/menu/deleteAll" class="btn btn-default btn-sm" title="删除"><i
class="fa fa-trash-o"></i>删除</a>
</shiro:hasPermission>
<button class="btn btn-default btn-sm " data-toggle="tooltip" data-placement="left" onclick="refresh()"
title="刷新"><i class="glyphicon glyphicon-repeat"></i>刷新
</button>
<shiro:hasPermission name="sys:menu:updateSort">
<button id="btnSubmit" class="btn btn-default btn-sm " data-toggle="tooltip" data-placement="left"
onclick="updateSort()" title="保存排序"><i class="fa fa-save"></i> 保存排序
</button>
</shiro:hasPermission>
<!-- 工具功能 -->
<%@ include file="/WEB-INF/views/include/btnGroup.jsp" %>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<!-- 工具栏 -->
<div class="row">
<div class="col-sm-12">
<div class="pull-left"></div>
</div>
</div>
<!-- 查询条件 -->
<form id="listForm" method="post">
<table id="treeTable" class="table table-hover table-condensed dataTables-example dataTable">
<thead>
<tr>
<th><input type="checkbox" class="i-checks"></th>
<th>名称</th>
<th>链接</th>
<th style="text-align:center;">排序</th>
<th class="hidden-xs">可见</th>
<th class="hidden-xs">权限标识</th>
<shiro:hasPermission name="sys:menu:edit">
<th>操作</th>
</shiro:hasPermission>
</tr>
</thead>
<tbody><c:forEach items="${list}" var="menu">
<tr id="${menu.id}" pId="${menu.parent.id ne '1'?menu.parent.id:'0'}">
<td><input type="checkbox" id="${menu.id}" class="i-checks"></td>
<td nowrap><i class="icon-${not empty menu.icon?menu.icon:' hide'}"></i><a href="#"
onclick="openDialogView('查看菜单', '${ctx}/sys/menu/form?id=${menu.id}','800px', '500px')">${menu.name}</a>
</td>
<td title="${menu.href}">${fns:abbr(menu.href,30)}</td>
<td style="text-align:center;">
<shiro:hasPermission name="sys:menu:updateSort">
<input type="hidden" name="ids" value="${menu.id}"/>
<input name="sorts" type="text" value="${menu.sort}" class="form-control"
style="width:100px;margin:0;padding:0;text-align:center;">
</shiro:hasPermission><shiro:lacksPermission name="sys:menu:updateSort">
${menu.sort}
</shiro:lacksPermission>
</td>
<td class="hidden-xs">${menu.isShow eq '1'?'显示':'隐藏'}</td>
<td class="hidden-xs" title="${menu.permission}">${fns:abbr(menu.permission,30)}</td>
<td nowrap>
<shiro:hasPermission name="sys:menu:view">
<a href="${ctx}/sys/menu/form?id=${menu.id}" title="查看"
><i class="fa fa-search-plus"></i></a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:menu:edit">
<a href="${ctx}/sys/menu/form?id=${menu.id}" title="修改"
><i class="fa fa-pencil"></i></a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:menu:del">
<a href="${ctx}/sys/menu/delete?id=${menu.id}" title="删除"
onclick="return confirmx('要删除该菜单及所有子菜单项吗?', this.href)"
><i class="fa fa-trash-o"></i></a>
</shiro:hasPermission>
<shiro:hasPermission name="sys:menu:add">
<a href="${ctx}/sys/menu/form?parent.id=${menu.id}"
><i class="fa fa-plus"></i>添加下级菜单</a>
</shiro:hasPermission>
</td>
</tr>
</c:forEach></tbody>
</table>
</form>
</div>
</div>
</div>
<!-- 信息-->
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#treeTable").treeTable({expandLevel: 1, column: 1}).show();
});
function updateSort() {
loading('正在提交,请稍等...');
$("#listForm").attr("action", "${ctx}/sys/menu/updateSort");
$("#listForm").submit();
}
function refresh() {//刷新
window.location = "${ctx}/sys/menu/";
}
</script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%><%--
<html>
<head>
<title>菜单导航</title>
<meta name="decorator" content="blank"/>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
<script type="text/javascript">
$(document).ready(function() {
$(".accordion-heading a").click(function(){
$('.accordion-toggle i').removeClass('icon-chevron-down');
$('.accordion-toggle i').addClass('icon-chevron-right');
if(!$($(this).attr('href')).hasClass('in')){
$(this).children('i').removeClass('icon-chevron-right');
$(this).children('i').addClass('icon-chevron-down');
}
});
$(".accordion-body a").click(function(){
$("#menu-${param.parentId} li").removeClass("active");
$("#menu-${param.parentId} li i").removeClass("icon-white");
$(this).parent().addClass("active");
$(this).children("i").addClass("icon-white");
//loading('正在执行,请稍等...');
});
//$(".accordion-body a:first i").click();
//$(".accordion-body li:first li:first a:first i").click();
});
</script>
</head>
<body> --%>
<div class="accordion" id="menu-${param.parentId}"><c:set var="menuList" value="${fns:getMenuList()}"/><c:set var="firstMenu" value="true"/><c:forEach items="${menuList}" var="menu" varStatus="idxStatus"><c:if test="${menu.parent.id eq (not empty param.parentId ? param.parentId:1)&&menu.isShow eq '1'}">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#menu-${param.parentId}" data-href="#collapse-${menu.id}" href="#collapse-${menu.id}" title="${menu.remarks}"><i class="icon-chevron-${not empty firstMenu && firstMenu ? 'down' : 'right'}"></i>&nbsp;${menu.name}</a>
</div>
<div id="collapse-${menu.id}" class="accordion-body collapse ${not empty firstMenu && firstMenu ? 'in' : ''}">
<div class="accordion-inner">
<ul class="nav nav-list"><c:forEach items="${menuList}" var="menu2"><c:if test="${menu2.parent.id eq menu.id&&menu2.isShow eq '1'}">
<li><a data-href=".menu3-${menu2.id}" href="${fn:indexOf(menu2.href, '://') eq -1 ? ctx : ''}${not empty menu2.href ? menu2.href : '/404'}" target="${not empty menu2.target ? menu2.target : 'mainFrame'}" ><i class="icon-${not empty menu2.icon ? menu2.icon : 'circle-arrow-right'}"></i>&nbsp;${menu2.name}</a>
<ul class="nav nav-list hide" style="margin:0;padding-right:0;"><c:forEach items="${menuList}" var="menu3"><c:if test="${menu3.parent.id eq menu2.id&&menu3.isShow eq '1'}">
<li class="menu3-${menu2.id} hide"><a href="${fn:indexOf(menu3.href, '://') eq -1 ? ctx : ''}${not empty menu3.href ? menu3.href : '/404'}" target="${not empty menu3.target ? menu3.target : 'mainFrame'}" ><i class="icon-${not empty menu3.icon ? menu3.icon : 'circle-arrow-right'}"></i>&nbsp;${menu3.name}</a></li></c:if>
</c:forEach></ul></li><c:set var="firstMenu" value="false"/></c:if></c:forEach></ul>
</div>
</div>
</div>
</c:if></c:forEach></div><%--
</body>
</html> --%>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@include file="/WEB-INF/views/include/treeview.jsp" %>
<div id="menuTreeselect" class="ztree" style="margin:15px;"></div>
<script type="text/javascript">
var menuTreeselectSetting = {view:{selectedMulti:false,dblClickExpand:false,nameIsHTML:true,showIcon:false,showTitle:false}, data:{simpleData:{enable:true}},
callback:{onClick:function(event, treeId, treeNode){menuTreeselect.expandNode(treeNode);if (!treeNode.isParent){cookie('menuId', treeNode.id, {path:'/'});}}}};
var menuTreeselectNodes=[
<c:forEach items="${fns:getMenuList()}" var="menu"><c:if test="${menu.isShow eq '1'}">{id:"${menu.id}", pId:"${not empty menu.parent.id ? menu.parent.id : 0}", name:"<i class=\"icon-${not empty menu.icon ? menu.icon : 'file'}\"></i>&nbsp;${not empty menu.parent.id ? menu.name : ''}", url:"${not empty menu.href && fn:indexOf(menu.href, '://') eq -1 ? ctx : ''}${not empty menu.href ? menu.href : 'javascript:'}", target:"${not empty menu.target ? menu.target:'_self'}"},
</c:if></c:forEach>{id:new Date().getTime(), pId:"0", name:"<i class=\"icon-home\"></i>&nbsp;进入主页", url:"${ctx}", target:"_self"},
{id:new Date().getTime(), pId:"0", name:"<i class=\"icon-share\"></i>&nbsp;退出登录", url:"${ctx}/logout", target:"_self"}];
var menuTreeselect = $.fn.zTree.init($("#menuTreeselect"), menuTreeselectSetting, menuTreeselectNodes);//<c:if test="${empty parentId}">
var menuTreeselectNodes = menuTreeselect.getNodesByParam("level", 1);
for(var i=0; i<menuTreeselectNodes.length; i++) {
menuTreeselect.expandNode(menuTreeselectNodes[i], true, false, false);
}//</c:if>
var menuTreeselectNode = menuTreeselect.getNodeByParam("id", '${parentId != '' ? parentId : cookie.menuId.value}');
menuTreeselect.selectNode(menuTreeselectNode, true);
menuTreeselect.expandNode(menuTreeselectNode, true, false, false);
</script>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>部门管理</title>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>
部门管理
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<form:form id="inputForm" modelAttribute="office" action="${ctx}/sys/office/save" method="post"
class="form-horizontal content-background">
<div class="content">
<form:hidden path="id"/>
<div class="form-unit">基本信息</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">上级部门</label>
<div class="col-sm-8">
<sys:treeselect id="office" name="parent.id" value="${office.parent.id}"
labelName="parent.name" labelValue="${office.parent.name}" title="部门"
url="/sys/office/treeData" extId="${office.id}" cssClass="form-control"
allowClear="${office.currentUser.admin}"/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left"><font color="red">*</font>归属区域</label>
<div class="col-sm-8">
<sys:treeselect id="area" name="area.id" value="${office.area.id}" labelName="area.name"
labelValue="${office.area.name}" title="区域" url="/sys/area/treeData"
cssClass="form-control required"/></div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left"><font color="red">*</font>部门名称</label>
<div class="col-sm-8"><form:input path="name" htmlEscape="false" maxlength="50"
class="form-control required"/></div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">部门编码</label>
<div class="col-sm-8"><form:input path="code" htmlEscape="false" maxlength="50"
class="form-control"/></div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">部门类型</label>
<div class="col-sm-8">
<form:select path="type" class="form-control">
<form:options items="${fns:getDictList('sys_office_type')}" itemLabel="label"
itemValue="value" htmlEscape="false"/>
</form:select>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">部门级别</label>
<div class="col-sm-8">
<form:select path="grade" class="form-control">
<form:options items="${fns:getDictList('sys_office_grade')}" itemLabel="label"
itemValue="value" htmlEscape="false"/>
</form:select>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">是否可用</label>
<div class="col-sm-8">
<form:select path="useable" class="form-control">
<form:options items="${fns:getDictList('yes_no')}" itemLabel="label"
itemValue="value"
htmlEscape="false"/>
</form:select>
<!--span class="help-inline">“是”代表此账号允许登陆,“否”则表示此账号不允许登陆</span-->
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">主负责人</label>
<div class="col-sm-8">
<sys:treeselect id="primaryPerson" name="primaryPerson.id"
value="${office.primaryPerson.id}"
labelName="office.primaryPerson.name"
labelValue="${office.primaryPerson.name}"
title="用户" url="/sys/office/treeData?type=3"
cssClass="form-control" allowClear="true"
notAllowSelectParent="true"/>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">副负责人</label>
<div class="col-sm-8">
<sys:treeselect id="deputyPerson" name="deputyPerson.id"
value="${office.deputyPerson.id}"
labelName="office.deputyPerson.name"
labelValue="${office.deputyPerson.name}"
title="用户" url="/sys/office/treeData?type=3"
cssClass="form-control" allowClear="true"
notAllowSelectParent="true"/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">联系地址</label>
<div class="col-sm-8">
<form:input path="address" htmlEscape="false" maxlength="50"
cssClass="form-control"/>
</div>
</div>
</div>
<div class="form-unit">详细信息</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">邮政编码</label>
<div class="col-sm-8">
<form:input path="zipCode" htmlEscape="false" maxlength="50"
cssClass="form-control"/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">负责人</label>
<div class="col-sm-8">
<form:input path="master" htmlEscape="false" maxlength="50"
cssClass="form-control"/>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">电话</label>
<div class="col-sm-8">
<form:input path="phone" htmlEscape="false" maxlength="50"
cssClass="form-control"/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">传真</label>
<div class="col-sm-8">
<form:input path="fax" htmlEscape="false" maxlength="50"
cssClass="form-control"/>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">邮箱</label>
<div class="col-sm-8">
<form:input path="email" htmlEscape="false" maxlength="50"
cssClass="form-control"/>
</div>
</div>
<div class="col-xs-6 form-group">
<label class="control-label col-sm-4 pull-left">备注</label>
<div class="col-sm-8">
<form:textarea path="remarks" htmlEscape="false" rows="3"
maxlength="200"
class="form-control"/>
</div>
</div>
</div>
<div id="iframeSave" class="form-group">
<c:if test="${action ne 'view'}">
<a id="btnSubmit" class="btn btn-primary">保存</a>
</c:if>
<a id="btnBack" class="btn btn-default">返回</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</form:form>
</div>
</div>
</div>
<div id="messageBox">${message}</div>
<%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script src="/staticViews/viewBase.js"></script>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
<title>机构管理</title>
<meta name="decorator" content="default"/>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
<%@include file="/WEB-INF/views/include/treeview.jsp" %>
</head>
<body>
<div class="row">
<div class="col-sm-2 hidden-xs" style="border-right: 1px solid #eee; padding-right: 0px;">
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title">
<i class="fa fa-edit"></i>部门
</div>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" id="btnExpand" title="展开" style="display:none;">
<i class="fa fa-chevron-up"></i></button>
<button type="button" class="btn btn-box-tool" id="btnCollapse" title="折叠"><i
class="fa fa-chevron-down"></i></button>
<button type="button" class="btn btn-box-tool" id="btnRefresh" title="刷新"><i
class="fa fa-refresh"></i></button>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<div id="ztree" class="ztree leftBox-content"></div>
</div>
</div>
</div>
</div>
<div class="col-sm-10" style="padding-left: 0px;">
<iframe id="iframeContent" name="iframeContent" src="${ctx}/sys/office/list?id=&parentIds=" width="100%"
height="100%"
frameborder="0"></iframe>
</div>
</div>
<script type="text/javascript">
var tree;
var setting = {
data: {simpleData: {enable: true, idKey: "id", pIdKey: "pId", rootPId: '0'}},
callback: {
onClick: function (event, treeId, treeNode) {
var id = treeNode.pId == '0' ? '' : treeNode.pId;
$('#iframeContent').attr("src", "${ctx}/sys/office/list?id=" + id + "&parentIds=" + treeNode.pIds);
}
}
};
function refreshTree() {
$.getJSON("${ctx}/sys/office/treeData", function (data) {
tree =$.fn.zTree.init($("#ztree"), setting, data);
//tree.expandAll(true);
// 展开第一级节点
var nodes = tree.getNodesByParam("level", 0);
for(var i=0; i<nodes.length; i++) {
tree.expandNode(nodes[i], true, false, false);
}
// 展开第二级节点
// nodes = tree.getNodesByParam("level", 1);
// for(var i=0; i<nodes.length; i++) {
// tree.expandNode(nodes[i], true, false, false);
// }
});
}
refreshTree();
function refresh() {//刷新
window.location = "${ctx}/sys/office/";
}
// 工具栏按钮绑定
$('#btnExpand').click(function () {
tree.expandAll(true);
$(this).hide();
$('#btnCollapse').show();
});
$('#btnCollapse').click(function () {
tree.expandAll(false);
$(this).hide();
$('#btnExpand').show();
});
$('#btnRefresh').click(function () {
refresh();
});
</script>
</body>
</html>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment