leaderAttention.jsp 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  2. <%--
  3. ~ Copyright (c) 2014, 2023, Chengdu Minto Technology Co.,LTD. All rights reserved.
  4. ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  5. --%>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
  8. <%@ page isELIgnored="false" %>
  9. <html lang="zh">
  10. <head>
  11. <meta charset="UTF-8">
  12. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  13. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  14. <title>领导关注</title>
  15. <link rel="stylesheet" type="text/css" href="${path}/tc_suite/project/css/base.css"/>
  16. <link rel="stylesheet" type="text/css" href="${path}/tc_suite/project/css/adminPage.css"/>
  17. <link href="${path}/tc_ttp/style/Mtstyle.css${resSuffix}" rel="Stylesheet" type="text/css" />
  18. <style>
  19. .dail-nav a{
  20. color:#333333;
  21. }
  22. .media-dail{width:100%}
  23. .media-dail h1{justify-content:space-between}
  24. .stageInfoLi .tabTtx{color:#999999;display:inline-block;max-width: 700px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;}
  25. .videopicture{margin-bottom: 5px;margin-top: 5px}
  26. .VandP a{white-space: normal}
  27. #dataList2{
  28. min-height: 200px;
  29. }
  30. #dataList1{
  31. min-height: 200px;
  32. }
  33. #dataList3,#dataList4{
  34. min-height: 310px;
  35. }
  36. .stageInfoLi{margin-top: 16px;font-weight: normal; overflow: hidden; text-overflow: ellipsis;display: flex}
  37. .li:hover .needline{color: #0c94ff;text-decoration:underline;}
  38. .needline{cursor: pointer}
  39. .Lisy{
  40. cursor: pointer;
  41. }
  42. .page .left{
  43. padding-top:0;
  44. }
  45. .liMo:last-child{
  46. border-bottom: none;
  47. }
  48. .VandP a {
  49. display: flex;
  50. align-items: center;
  51. }
  52. .titleHead{font-size:20px;display: flex;align-items: center;padding: 0 20px;height:60px;margin-bottom: 0;border-bottom: 1px solid #d9d9d9;
  53. background:#FFFFFF;
  54. justify-content:space-between}
  55. .delAttrtion{
  56. margin-left: 20px;
  57. border-radius:4px;
  58. color:#FFFFFF !important;
  59. background-color: #0c94ff;
  60. display: inline-block;
  61. font-size:12px !important;
  62. text-align: center;
  63. line-height: 24px;
  64. height: 24px;
  65. width:70px;
  66. }
  67. .needline{white-space: nowrap;text-overflow: ellipsis;overflow: hidden}
  68. </style>
  69. </head>
  70. <body>
  71. <div class="page">
  72. <div class="left">
  73. <div class="titleHead">
  74. <span style="font-weight: bold">领导关注</span>
  75. <span style="font-size:14px;" onclick="openMore()">更多</span>
  76. </div>
  77. <div id="imgShow" style="background: #fff">
  78. <div id="dataList2" class="dail-list show"></div>
  79. <%-- <!-- 引入分页jsp -->
  80. <jsp:include page="${path}../../tc_ttp/pagination/pagination.jsp">
  81. <jsp:param value="${count }" name="pageCount" />
  82. </jsp:include>--%>
  83. </div>
  84. </div>
  85. </div>
  86. <script src="${path}/tc_ttp/jquery/jquery-1.12.4.min.js${resSuffix}"></script>
  87. <script src="${path}/tc_suite/project/js/base.js" type="text/javascript" charset="utf-8"></script>
  88. <script src="${path}/tc_suite/project/js/echarts.min.js" type="text/javascript" charset="utf-8"></script>
  89. <script type="text/javascript" src="${path}/tc_ttp/common/function.js${resSuffix}"></script>
  90. <script type="text/javascript" src="${path}/tc_ttp/common/tc.js${resSuffix}"></script>
  91. <script type="text/javascript" src="${path}/tc_ttp/lhgdialog4.2.0/lhgdialog.js${resSuffix}"></script>
  92. <script type="text/javascript" src="${path}/tc_tap/choosePerson/js/choosePersonConfig.js${resSuffix}"></script>
  93. <script type="text/javascript" src="${path}/tc_ttp/common/jquery.json.js${resSuffix}"></script>
  94. <script type="text/javascript" src="${path}/tc_ttp/common/ajax.js${resSuffix}"></script>
  95. <script type="text/javascript" src="${path}/tc_tap/relResource/js/relResource.js${resSuffix}"></script>
  96. <script type="text/javascript" src="${path}/tc_ttp/common/jquery.form.js${resSuffix}"></script>
  97. <script type="text/javascript" src="${path}/tc_suite/form/js/form.js${resSuffix}"></script>
  98. <script type="text/javascript"
  99. src="${path}/common/mCustomScrollbar/js/jquery.mCustomScrollbar.concat.min.js${resSuffix}"></script>
  100. <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.core.min.js${resSuffix}"></script>
  101. <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.exhide.min.js${resSuffix}"></script>
  102. <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.excheck.min.js${resSuffix}"></script>
  103. <script type="text/javascript" src="${path}/tc_suite/menu/js/menu.js${resSuffix}"></script>
  104. <script type="text/javascript" src="${path}/tc_ttp/dummyPhotoView/dummyPhotoView.js${resSuffix}"></script>
  105. <script type="text/javascript" src="${path}/tc_tap/space/js/upload.js${resSuffix}"></script>
  106. <script type="text/javascript"
  107. src="${path}/tc_ttp/jquery.serializeJSON/jquery.serializejson.min.js${resSuffix}"></script>
  108. <script>
  109. function openTab(id,url,newTabName) {
  110. top.addTab(id,newTabName,url,'curSelect');
  111. }
  112. $(function () {
  113. initListType2();
  114. heightCount();
  115. })
  116. function heightCount(ev) {
  117. var parentFrame = parent.document.getElementsByTagName("iframe");//获取父窗口的iframe
  118. // console.log(parentFrame);
  119. var h = document.documentElement.scrollHeight;//获取子窗口的高度 FF
  120. h = document.body.scrollHeight; //IE
  121. $(parentFrame).last().css("height",h + 20 +"px"); //设置父窗口iframe高度
  122. }
  123. function dateFtt(fmt,date)
  124. { //author: meizz
  125. var o = {
  126. "M+" : date.getMonth()+1, //月份
  127. "d+" : date.getDate(), //日
  128. "h+" : date.getHours(), //小时
  129. "m+" : date.getMinutes(), //分
  130. "s+" : date.getSeconds(), //秒
  131. "q+" : Math.floor((date.getMonth()+3)/3), //季度
  132. "S" : date.getMilliseconds () //毫秒
  133. };
  134. if(/(y+)/.test(fmt))
  135. fmt=fmt.replace(RegExp.$1, (date.getFullYear()+"").substr(4 - RegExp.$1.length));
  136. for(var k in o)
  137. if(new RegExp("("+ k +")").test(fmt))
  138. fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
  139. return fmt;
  140. }
  141. /** 初始化列表---项目动态 */
  142. function initListType2() {
  143. var dataList2 = $("#dataList2");
  144. var result=${result};
  145. var pdate =result;
  146. dataList2.html("");
  147. $.each(pdate, function (i, b) {
  148. var time= dateFtt("yyyy-MM-dd hh:mm:ss",new Date(b.create_time));
  149. // var li = "<li onclick=openProject('"+b.id+"')><img src='${path}/tc_suite/project/images/qtdw_03.png'><div><p>"+b.title+"</p></div></li>";
  150. var li = '<div onclick=openProject("' + b.id + '") class="li">'
  151. li += ' <span class="needline">'+b.title+'</span>' + '<div class="right-time">'
  152. li += '<span class="tps">【' + b.project_type + '】</span>'
  153. li += '<span>' + time + '</span>'
  154. li +=''
  155. li += '</div></div>';
  156. dataList2.append(li);
  157. })
  158. if(!pdate.length){
  159. var html = '<img src="${path}/common/images/empty.png" style="margin: 0 auto; padding: 50px 0 20px; display: block;" alt="">';
  160. dataList2.append(html);
  161. }
  162. }
  163. function openProject(id) {
  164. TC.ui.openResource({
  165. id: "/taskmt/?m=taskDetail",
  166. label: "查看事项",
  167. url: "/project/" + id,
  168. icon: ""
  169. });
  170. }
  171. //inspired todo 取消关注
  172. function delAttrtion(referenceId,title){
  173. var e=window.event || arguments.callee.caller.arguments[0];
  174. e.preventDefault();
  175. e.stopPropagation() ;
  176. var data={referenceId:referenceId,type:"leaderAttention"};
  177. $.confirm('您确定要取消吗?', function() {
  178. $.ajax({
  179. url: TC.config.baseUrl+"/project/attention/",
  180. type: "post",
  181. dataType: "json",
  182. data:data,
  183. traditional: true,
  184. async: false,
  185. success: function(result){
  186. if(result.state="success"){
  187. $.alert(title+"成功!",function () {
  188. window.location.reload();
  189. });
  190. }else{
  191. $.alert("操作失败!");
  192. }
  193. },error:function(){
  194. $.alert("操作失败!");
  195. }
  196. });
  197. })
  198. }
  199. function openMore() {
  200. TC.ui.openTab("/project/moreLeaderAttentionAttention");
  201. }
  202. </script>
  203. </body>
  204. </html>