|
@@ -28,17 +28,57 @@
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
WinMove();
|
|
WinMove();
|
|
|
|
|
|
- var ggType = '${type}'
|
|
|
|
|
|
+
|
|
|
|
+ <%--var ggType = '${type}'--%>
|
|
|
|
+ <%--if(undefined !== ggType && null !== ggType && '' !== ggType){--%>
|
|
|
|
+ <%-- $(".layui-tab-title li").eq(ggType-1).attr("class","layui-this");--%>
|
|
|
|
+ <%--}--%>
|
|
|
|
+ <%--$(".layui-tab-title li").click(function() {--%>
|
|
|
|
+ <%-- $(".layui-tab-title li").each(function () {--%>
|
|
|
|
+ <%-- $(this).removeAttr("layui-this");--%>
|
|
|
|
+ <%-- })--%>
|
|
|
|
+ <%-- $(this).attr("layui-this");--%>
|
|
|
|
+ <%-- location.replace("${ctx}/home?type="+$(this).val())--%>
|
|
|
|
+ <%--})--%>
|
|
|
|
+
|
|
|
|
+ /*function ggType(){
|
|
|
|
+ $.ajax({
|
|
|
|
+ type:"post",
|
|
|
|
+ cache:false,
|
|
|
|
+ url:"${ctx}/home?type=",
|
|
|
|
+ data:{"type":'${type}'},
|
|
|
|
+ success: function success(data){
|
|
|
|
+ var name = data.name;
|
|
|
|
+ $("#name").text(name);
|
|
|
|
+ },
|
|
|
|
+ error: function error(){
|
|
|
|
+ alert("服务器请求失败")
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+*/
|
|
|
|
+ /* var ggType = '${type}'
|
|
if(undefined !== ggType && null !== ggType && '' !== ggType){
|
|
if(undefined !== ggType && null !== ggType && '' !== ggType){
|
|
$(".layui-tab-title li").eq(ggType-1).attr("class","layui-this");
|
|
$(".layui-tab-title li").eq(ggType-1).attr("class","layui-this");
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
$(".layui-tab-title li").click(function() {
|
|
$(".layui-tab-title li").click(function() {
|
|
$(".layui-tab-title li").each(function () {
|
|
$(".layui-tab-title li").each(function () {
|
|
- $(this).removeAttr("layui-this");
|
|
|
|
|
|
+ $(this).removeAttr("class","layui-this");
|
|
})
|
|
})
|
|
- $(this).attr("layui-this");
|
|
|
|
- location.replace("${ctx}/home?type="+$(this).val())
|
|
|
|
|
|
+ $(this).attr("class","layui-this");
|
|
|
|
+ console.log(this.value)
|
|
|
|
+ var oaNotifyList = '${oaNotifyList}';
|
|
|
|
+ var array = new Array();
|
|
|
|
+ //console.info("info");
|
|
|
|
+ <c:forEach items="${oaNotifyList}" var="item" varStatus="status" >
|
|
|
|
+ var info = '${item}';
|
|
|
|
+ if(info.type == this.value){
|
|
|
|
+ array.push("${item}");
|
|
|
|
+ }
|
|
|
|
+ </c:forEach>
|
|
|
|
+ console.log(oaNotifyList)
|
|
})
|
|
})
|
|
|
|
+
|
|
});
|
|
});
|
|
|
|
|
|
function openDialogre(title,url,width,height,target){
|
|
function openDialogre(title,url,width,height,target){
|
|
@@ -890,20 +930,21 @@
|
|
<div class="bord-left">
|
|
<div class="bord-left">
|
|
<div class="bord-left-content">
|
|
<div class="bord-left-content">
|
|
<div class="bord-title">
|
|
<div class="bord-title">
|
|
-
|
|
|
|
- <div class="layui-tab ggTab" id="nt4">
|
|
|
|
- <ul class="layui-tab-title" id="nt4_1" style="margin-top: -10px;margin-left: 0px">
|
|
|
|
- <li value="1">通知</li>
|
|
|
|
- <li value="2">会议通知</li>
|
|
|
|
- <li value="3">公司标准或规范</li>
|
|
|
|
- <li value="4">行业标准或规范</li>
|
|
|
|
- <li value="5">其他</li>
|
|
|
|
- </ul>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="layui-tab ggTab" id="nt4">
|
|
|
|
+ <ul class="layui-tab-title" id="nt4_1" style="margin-top: -10px;margin-left: 0px" >
|
|
|
|
+ <%--<li value="1"><a>通知</a><span class="hide" id="inform"></span></li>
|
|
|
|
+ <li value="2"><a>会议通知</a><span class="hide" id="HYinform"></span></li>
|
|
|
|
+ <li value="3"><a>公司标准或规范</a><span class="hide" id="standard"></span></li>
|
|
|
|
+ <li value="4"><a>行业标准或规范</a><span class="hide" id="standard2"></span></li>
|
|
|
|
+ <li value="5"><a>其他</a><span class="hide" id="other"></span></li>--%>
|
|
|
|
+ <li value="1"><a>通知</a></li>
|
|
|
|
+ <li value="2"><a>会议通知</a></li>
|
|
|
|
+ <li value="3"><a>公司标准或规范</a></li>
|
|
|
|
+ <li value="4"><a>行业标准或规范</a></li>
|
|
|
|
+ <li value="5"><a>其他</a></li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <%-- <div class="bord-title">公告信息(${count1})</div>--%>
|
|
|
|
- <%--<div class="bord-pic"><img src="${ctxStatic}/common/img/icon03.png" height="100%" /></div>--%>
|
|
|
|
- <%--<div class="bord-num">${count1}</div>--%>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="bord-more">
|
|
<div class="bord-more">
|
|
<a href="javascript:void(0)" onclick='top.openTab("${ctx }/oa/oaNotify/self","公告信息", false)'><span>更多 </span><i class="fa fa-angle-right"></i></a>
|
|
<a href="javascript:void(0)" onclick='top.openTab("${ctx }/oa/oaNotify/self","公告信息", false)'><span>更多 </span><i class="fa fa-angle-right"></i></a>
|
|
@@ -918,6 +959,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
<div class="layui-col-sm6 layui-col-md6 call-board">
|
|
<div class="layui-col-sm6 layui-col-md6 call-board">
|
|
<div id="email-bord" class="call-bord-content contentShadow">
|
|
<div id="email-bord" class="call-bord-content contentShadow">
|
|
<div class="bord-left">
|
|
<div class="bord-left">
|
|
@@ -1196,9 +1238,7 @@
|
|
<c:forEach items="${page}" var="oaNotify" varStatus="index">
|
|
<c:forEach items="${page}" var="oaNotify" varStatus="index">
|
|
<c:if test="${index.index < 8}">
|
|
<c:if test="${index.index < 8}">
|
|
xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/oa/oaNotify/homeView?id=${oaNotify.id}&readAttr=disabled','95%','95%')\" >";
|
|
xml ="<a href=\"javascript:void(0)\" onclick=\"homeOpenDialogView('查看公告', '${ctx}/oa/oaNotify/homeView?id=${oaNotify.id}&readAttr=disabled','95%','95%')\" >";
|
|
-
|
|
|
|
- elem.append('<li>' + xml + "<span class=\"bord-record-type\" title=\"${fns:getMainDictLabel(oaNotify.type, 'oa_notify_type', '')}\">${fns:getMainDictLabel(oaNotify.type, 'oa_notify_type', '')}</span>"+
|
|
|
|
- "<span class=\"bord-record\" title=\"${oaNotify.title}\">${oaNotify.title}</span>"+
|
|
|
|
|
|
+ elem.append('<li>' + xml + "<span class=\"bord-record\" title=\"${oaNotify.title}\">${oaNotify.title}</span>"+
|
|
'<span class="bord-record-flag">'+'${oaNotify.readFlagStr}'+'</span>' +
|
|
'<span class="bord-record-flag">'+'${oaNotify.readFlagStr}'+'</span>' +
|
|
'<span class="bord-record-time">' + '<fmt:formatDate value="${oaNotify.updateDate}" pattern="yyyy-MM-dd"/>' + '</span></a></li>');
|
|
'<span class="bord-record-time">' + '<fmt:formatDate value="${oaNotify.updateDate}" pattern="yyyy-MM-dd"/>' + '</span></a></li>');
|
|
</c:if>
|
|
</c:if>
|