/*文章个人列表*/ var orgId = $.cookie("orgId"); var colMgr = stringToBoolean($.cookie("colMgr")); if(orgId == "" || orgId == null || orgId == "null"){ location.href = "cmp-settled-log.html"; } resMgr(orgId); $(function() { $(".onlogin .headnavbtn li").eq(0).addClass("navcurrent"); $(".workmenu>ul>li.artIcon").addClass("nowLi"); var falseno = false; articalList(10, 1, true, 1); $("#articleSearch").on("keyup", function() { var inputval = $(this).val(); var inputlen = inputval.replace(/[^\u0000-\u00ff]/g, "aa").length; if(inputlen > 60) { var value = inputval.substring(0, 60); $(this).val(value); } }) //删除新闻 $("#articalList").on("click", ".deteleThis2", function() { var _this = this; $.MsgBox.Confirm("提示", "确认删除该文章?", function() { newsDelet(_this); }) }) //文章搜索 $(".searchSpan").on("click", function() { articalList(10, 1, true, 2); }) }); function articalList(pageSize, pageNo, isbind, num) { var $data = {}; if(num == 1) { $data.ownerId = orgId; $data.articleType = "2"; $data.pageSize = pageSize; $data.pageNo = pageNo; } else { $data.ownerId = orgId; $data.articleType = "2"; $data.pageSize = pageSize; $data.pageNo = pageNo; $data.key = $("#articleSearch").val(); } $.ajax({ "url": "/ajax/article/pqself", "type": "get", "async": false, "data": $data, "beforeSend": function() { $("#articalList").append(''); }, "success": function(data) { console.log(data); if(data.success && data.data.data != "") { var itemlist = ''; $("#articalList").html(""); $("#noartical").addClass("displayNone"); $(".tcdPageCode").css("display", "block"); for(var i = 0; i < data.data.data.length; i++) { if(data.data.data[i].status == 1) { var li = '