修改专项任务和来函权限按钮展示以及列表展示权限用户下的数据
修改特定服务bug
This commit is contained in:
@@ -9,10 +9,6 @@
|
||||
|
||||
<div class="page-content">
|
||||
<div class="row">
|
||||
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<button type="button" class="btn btn-default" onclick="history.go(-1)"><spring:message code="back"/></button>
|
||||
</div>
|
||||
<h3 class="page-title">
|
||||
<spring:message code="special_task"/>
|
||||
</h3>
|
||||
@@ -30,21 +26,21 @@
|
||||
<input type="hidden" name="id" value="${taskInfo.id}"/>
|
||||
<div class="form-body">
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="task_name"></spring:message>:</label>
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="task_name"></spring:message>:</label>
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control" name="taskName" value="${taskInfo.taskName}">
|
||||
<input type="text" class="form-control required" name="taskName" value="${taskInfo.taskName}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="task_org"></spring:message>:</label>
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="task_org"></spring:message>:</label>
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control" name="taskOrg" value="${taskInfo.taskOrg}">
|
||||
<input type="text" class="form-control required" name="taskOrg" value="${taskInfo.taskOrg}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label"><spring:message code="task_time"></spring:message>:</label>
|
||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="task_time"></spring:message>:</label>
|
||||
<div class="col-md-4">
|
||||
<input id="taskTime" name="taskTime" type="text" readonly="readonly" maxlength="20" class="form-control input-medium Wdate"
|
||||
<input id="taskTime" name="taskTime" type="text" readonly="readonly" maxlength="20" class="form-control input-medium Wdate required"
|
||||
value="<fmt:formatDate value="${taskInfo.taskTime}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -84,46 +80,13 @@
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#inputForm").validate({
|
||||
rules: {
|
||||
taskName: {
|
||||
required: true,
|
||||
maxlength:64,
|
||||
$("#inputForm").validate({
|
||||
submitHandler: function(form){
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
},
|
||||
taskOrg: {
|
||||
required: true,
|
||||
maxlength:128,
|
||||
},
|
||||
taskTime: {
|
||||
required: true,
|
||||
},
|
||||
taskDesc: {
|
||||
maxlength:512,
|
||||
},
|
||||
|
||||
},
|
||||
messages: {
|
||||
taskName: {
|
||||
required: '<spring:message code="required"/>',
|
||||
maxlength: '<spring:message code="maxlength_64"/>',
|
||||
},
|
||||
taskOrg: {
|
||||
required: '<spring:message code="required"/>',
|
||||
maxlength: '<spring:message code="maxlength_128"/>',
|
||||
},
|
||||
taskTime: {
|
||||
required: '<spring:message code="required"/>',
|
||||
},
|
||||
taskDesc: {
|
||||
maxlength: '<spring:message code="maxlength_512"/>',
|
||||
},
|
||||
},
|
||||
submitHandler: function(form){
|
||||
//loading('onloading...');
|
||||
form.submit();
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
});
|
||||
errorContainer: "#messageBox",
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
@@ -9,14 +9,34 @@
|
||||
<body>
|
||||
|
||||
<div class="page-content">
|
||||
<c:set var ="isOptator" value="false"></c:set>
|
||||
<c:set var ="isConfirmor" value="false"></c:set>
|
||||
<c:set var ="isAuditor" value="false"></c:set>
|
||||
<c:forEach items="${fns:getUser().userRoleList}" var="role">
|
||||
<c:if test="${role.id ==28}">
|
||||
<c:set var ="isAuditor" value="true"></c:set>
|
||||
</c:if>
|
||||
<c:if test="${role.id ==27}">
|
||||
<c:set var ="isConfirmor" value="true"></c:set>
|
||||
</c:if>
|
||||
<c:if test="${role.id ==26}">
|
||||
<c:set var ="isOptator" value="true"></c:set>
|
||||
</c:if>
|
||||
<c:if test="${role.id ==1}">
|
||||
<c:set var ="isOptator" value="true"></c:set>
|
||||
<c:set var ="isConfirmor" value="true"></c:set>
|
||||
<c:set var ="isAuditor" value="true"></c:set>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<shiro:hasPermission name="basics:taskInfo:edit">
|
||||
<c:if test="${isOptator }">
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<button type="button" class="btn btn-default" onclick="javascript:window.location='${ctx}/basics/taskInfo/list'"><spring:message code="refresh"></spring:message></button>
|
||||
<button type="button" class="btn btn-primary"
|
||||
onClick="javascript:window.location='${ctx}/basics/taskInfo/form'">
|
||||
<i class="fa fa-plus"></i>
|
||||
<spring:message code="add"/></button>
|
||||
</div>
|
||||
</c:if>
|
||||
</shiro:hasPermission>
|
||||
<h3 class="page-title">
|
||||
<spring:message code="special_task"></spring:message>
|
||||
@@ -66,11 +86,14 @@
|
||||
|
||||
<div class="pull-right">
|
||||
<shiro:hasPermission name="basics:taskInfo:edit">
|
||||
<c:if test="${isOptator }">
|
||||
<button type="button" class="btn btn-default" onclick="edit()">
|
||||
<i class="fa fa-edit"></i> <spring:message code="edit"></spring:message></button>
|
||||
<sys:delRow url="${ctx}/basics/taskInfo/delete" id="contentTable" label="delete"></sys:delRow>
|
||||
<!-- <button type="button" class="btn btn-default">
|
||||
<i class="fa fa-download"></i> 导出</button> -->
|
||||
</c:if>
|
||||
<c:if test="${isConfirmor }">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-wrench"></i> <spring:message code="examine"></spring:message>
|
||||
@@ -82,6 +105,7 @@
|
||||
<li><sys:delRow url="${ctx}/basics/taskInfo/taskCancelExamine" id="contentTable" label="cancelPass"></sys:delRow></li>
|
||||
</ul>
|
||||
</div>
|
||||
</c:if>
|
||||
</shiro:hasPermission>
|
||||
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
||||
|
||||
Reference in New Issue
Block a user