|
@@ -28,12 +28,12 @@
|
|
|
laydate.render({
|
|
|
elem: '#createStartDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
event: 'focus', //响应事件。如果没有传入event,则按照默认的click
|
|
|
- type : 'datetime'
|
|
|
+ type : 'date'
|
|
|
});
|
|
|
laydate.render({
|
|
|
elem: '#createEndDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
event: 'focus', //响应事件。如果没有传入event,则按照默认的click
|
|
|
- type : 'datetime'
|
|
|
+ type : 'date'
|
|
|
});
|
|
|
});
|
|
|
|
|
@@ -258,21 +258,21 @@
|
|
|
</div>
|
|
|
<div id="moresees" style="clear:both;display:none;">
|
|
|
<div class="layui-item query athird">
|
|
|
- <label class="layui-form-label">公告编号:</label>
|
|
|
+ <label class="layui-form-label">公告文号:</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
|
- <form:input path="number" htmlEscape="false" maxlength="200" class=" form-control layui-input"/>
|
|
|
+ <form:input path="referenceNumber" htmlEscape="false" maxlength="200" class=" form-control layui-input"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item query athird">
|
|
|
<label class="layui-form-label">创建日期:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <input class="form-control layer-date laydate-icon layui-input laydate-icondate" id="createStartDate" name="createStartDate" value="<fmt:formatDate value="${oaNotify.createStartDate}" pattern="yyyy-MM-dd"/>" onclick="laydate({istime: false, format: 'YYYY-MM-DD'})">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item query athird">
|
|
|
- <label class="layui-form-label">—— </label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input class="form-control layer-date laydate-icon layui-input laydate-icondate" id="createEndDate" name="createEndDate" value="<fmt:formatDate value="${oaNotify.createEndDate}" pattern="yyyy-MM-dd"/>" onclick="laydate({istime: false, format: 'YYYY-MM-DD'})">
|
|
|
+ <input id="createStartDate" name="createStartDate" type="text" readonly="readonly" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group"
|
|
|
+ value="<fmt:formatDate value="${oaNotify.createStartDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
+ </input>
|
|
|
+ <span class="group-sep">-</span>
|
|
|
+ <input id="createEndDate" name="createEndDate" type="text" readonly="readonly" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group"
|
|
|
+ value="<fmt:formatDate value="${oaNotify.createEndDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
+ </input>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item query athird">
|
|
@@ -287,12 +287,6 @@
|
|
|
<form:input path="createBy.name" htmlEscape="false" maxlength="200" class=" form-control layui-input"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item query athird">
|
|
|
- <label class="layui-form-label">阅读状态:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <form:radiobuttons path="status" class="i-checks" items="${fns:getDictList('oa_notify_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
<div style="clear:both;"></div>
|
|
|
</div>
|
|
|
</form:form>
|
|
@@ -333,16 +327,16 @@
|
|
|
,cols: [[
|
|
|
// {checkbox: true, fixed: true},
|
|
|
{field:'index',align:'center', width:40,title: '序号'}
|
|
|
- ,{field:'number',align:'center', title: '公告编号', minWidth:150/*,templet:function(d){
|
|
|
+ ,{field:'title',align:'center', title: '公告标题', minWidth:150,templet:function(d){
|
|
|
+ var xml = "<a class=\"attention-info\" href=\"javascript:void(0)\" onclick=\"openDialogView('查看公告', '${ctx}/oa/oaNotify/form?id=" + d.id + "&view=view','95%','95%')\">" +
|
|
|
+ "<span title=" + d.title + ">" + d.title + "</span></a>";
|
|
|
+ return xml;
|
|
|
+ }}
|
|
|
+ ,{field:'referenceNumber',align:'center', title: '公告文号', minWidth:150/*,templet:function(d){
|
|
|
var xml = "<a class=\"attention-info\" href=\"javascript:void(0)\" onclick=\"openDialogView('查看公告', '${ctx}/oa/oaNotify/form?id=" + d.id + "&view=view','95%','95%')\">" +
|
|
|
"<span title=" + d.number + ">" + d.number + "</span></a>";
|
|
|
return xml;
|
|
|
}*/}
|
|
|
- ,{field:'title',align:'center', title: '公告标题', minWidth:150,templet:function(d){
|
|
|
- var xml = "<a class=\"attention-info\" href=\"javascript:void(0)\" onclick=\"openDialogView('查看公告', '${ctx}/oa/oaNotify/form?id=" + d.id + "&view=view','95%','95%')\">" +
|
|
|
- "<span title=" + d.title + ">" + d.title + "</span></a>";
|
|
|
- return xml;
|
|
|
- }}
|
|
|
,{field:'type',align:'center', title: '公告类型', width:80}
|
|
|
,{field:'content',align:'center', title: '公告内容', minWidth:200,templet:function(d){
|
|
|
return "<span title='"+ d.content +"'>" + d.content + "</span>";
|
|
@@ -353,7 +347,9 @@
|
|
|
,{field:'createBy', align:'center',title: '创建人', width:80,templet:function(d){
|
|
|
return "<span title='"+ d.createBy +"'>" + d.createBy + "</span>";
|
|
|
}}
|
|
|
- ,{field:'createDate', align:'center',title: '创建时间',width:150}
|
|
|
+ ,{field:'tmdcreateDate', align:'center',title: '创建时间',width:150,templet:function(d){
|
|
|
+ return "<span title='"+ d.createDate +"'>" + d.tmdcreateDate + "</span>";
|
|
|
+ }}
|
|
|
,{align:'center', title: '公告状态', width:70,templet:function(d){
|
|
|
var st = getAuditState(d.status)
|
|
|
var xml = "<span onclick=\"openDialogView('流程追踪', '${ctx}/oa/oaNotify/getProcess?id=" + d.id + "','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
@@ -401,7 +397,9 @@
|
|
|
,"vtatus":"${oaNotify.readNum} / ${oaNotify.readNum + oaNotify.unReadNum}"
|
|
|
,"createBy":"${oaNotify.createBy.name}"
|
|
|
,"createDate":"<fmt:formatDate value="${oaNotify.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
|
|
|
+ ,"tmdcreateDate":"<fmt:formatDate value="${oaNotify.createDate}" pattern="yyyy-MM-dd"/>"
|
|
|
,"procId":"${oaNotify.processInstanceId}"
|
|
|
+ ,"referenceNumber":"${oaNotify.referenceNumber}"
|
|
|
<c:if test="${not empty oaNotify.candel}">,"candel":"1"</c:if>
|
|
|
|
|
|
<shiro:hasPermission name="oa:oaNotify:edit">,"canedit":<c:choose><c:when test="${oaNotify.status == 1}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|