123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%--
- ~ Copyright (c) 2014, 2023, Chengdu Minto Technology Co.,LTD. All rights reserved.
- ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- --%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
- <%@ page isELIgnored="false" %>
- <html lang="zh">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>领导关注</title>
- <link rel="stylesheet" type="text/css" href="${path}/tc_suite/project/css/base.css"/>
- <link rel="stylesheet" type="text/css" href="${path}/tc_suite/project/css/adminPage.css"/>
- <link href="${path}/tc_ttp/style/Mtstyle.css${resSuffix}" rel="Stylesheet" type="text/css" />
- <style>
- .dail-nav a{
- color:#333333;
- }
- .media-dail{width:100%}
- .media-dail h1{justify-content:space-between}
- .stageInfoLi .tabTtx{color:#999999;display:inline-block;max-width: 700px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;}
- .videopicture{margin-bottom: 5px;margin-top: 5px}
- .VandP a{white-space: normal}
- #dataList2{
- min-height: 200px;
- }
- #dataList1{
- min-height: 200px;
- }
- #dataList3,#dataList4{
- min-height: 310px;
- }
- .stageInfoLi{margin-top: 16px;font-weight: normal; overflow: hidden; text-overflow: ellipsis;display: flex}
- .li:hover .needline{color: #0c94ff;text-decoration:underline;}
- .needline{cursor: pointer}
- .Lisy{
- cursor: pointer;
- }
- .page .left{
- padding-top:0;
- }
- .liMo:last-child{
- border-bottom: none;
- }
- .VandP a {
- display: flex;
- align-items: center;
- }
- .titleHead{font-size:20px;display: flex;align-items: center;padding: 0 20px;height:60px;margin-bottom: 0;border-bottom: 1px solid #d9d9d9;
- background:#FFFFFF;
- justify-content:space-between}
- .delAttrtion{
- margin-left: 20px;
- border-radius:4px;
- color:#FFFFFF !important;
- background-color: #0c94ff;
- display: inline-block;
- font-size:12px !important;
- text-align: center;
- line-height: 24px;
- height: 24px;
- width:70px;
- }
- .needline{white-space: nowrap;text-overflow: ellipsis;overflow: hidden}
- </style>
- </head>
- <body>
- <div class="page">
- <div class="left">
- <div class="titleHead">
- <span style="font-weight: bold">领导关注</span>
- <span style="font-size:14px;" onclick="openMore()">更多</span>
- </div>
- <div id="imgShow" style="background: #fff">
- <div id="dataList2" class="dail-list show"></div>
- <%-- <!-- 引入分页jsp -->
- <jsp:include page="${path}../../tc_ttp/pagination/pagination.jsp">
- <jsp:param value="${count }" name="pageCount" />
- </jsp:include>--%>
- </div>
- </div>
- </div>
- <script src="${path}/tc_ttp/jquery/jquery-1.12.4.min.js${resSuffix}"></script>
- <script src="${path}/tc_suite/project/js/base.js" type="text/javascript" charset="utf-8"></script>
- <script src="${path}/tc_suite/project/js/echarts.min.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/function.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/tc.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/lhgdialog4.2.0/lhgdialog.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_tap/choosePerson/js/choosePersonConfig.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/jquery.json.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/ajax.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_tap/relResource/js/relResource.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/common/jquery.form.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_suite/form/js/form.js${resSuffix}"></script>
- <script type="text/javascript"
- src="${path}/common/mCustomScrollbar/js/jquery.mCustomScrollbar.concat.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.core.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.exhide.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.excheck.min.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_suite/menu/js/menu.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_ttp/dummyPhotoView/dummyPhotoView.js${resSuffix}"></script>
- <script type="text/javascript" src="${path}/tc_tap/space/js/upload.js${resSuffix}"></script>
- <script type="text/javascript"
- src="${path}/tc_ttp/jquery.serializeJSON/jquery.serializejson.min.js${resSuffix}"></script>
- <script>
- function openTab(id,url,newTabName) {
- top.addTab(id,newTabName,url,'curSelect');
- }
- $(function () {
- initListType2();
- heightCount();
- })
- function heightCount(ev) {
- var parentFrame = parent.document.getElementsByTagName("iframe");//获取父窗口的iframe
- // console.log(parentFrame);
- var h = document.documentElement.scrollHeight;//获取子窗口的高度 FF
- h = document.body.scrollHeight; //IE
- $(parentFrame).last().css("height",h + 20 +"px"); //设置父窗口iframe高度
- }
- function dateFtt(fmt,date)
- { //author: meizz
- var o = {
- "M+" : date.getMonth()+1, //月份
- "d+" : date.getDate(), //日
- "h+" : date.getHours(), //小时
- "m+" : date.getMinutes(), //分
- "s+" : date.getSeconds(), //秒
- "q+" : Math.floor((date.getMonth()+3)/3), //季度
- "S" : date.getMilliseconds () //毫秒
- };
- if(/(y+)/.test(fmt))
- fmt=fmt.replace(RegExp.$1, (date.getFullYear()+"").substr(4 - RegExp.$1.length));
- for(var k in o)
- if(new RegExp("("+ k +")").test(fmt))
- fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
- return fmt;
- }
- /** 初始化列表---项目动态 */
- function initListType2() {
- var dataList2 = $("#dataList2");
- var result=${result};
- var pdate =result;
- dataList2.html("");
- $.each(pdate, function (i, b) {
- var time= dateFtt("yyyy-MM-dd hh:mm:ss",new Date(b.create_time));
- // var li = "<li onclick=openProject('"+b.id+"')><img src='${path}/tc_suite/project/images/qtdw_03.png'><div><p>"+b.title+"</p></div></li>";
- var li = '<div onclick=openProject("' + b.id + '") class="li">'
- li += ' <span class="needline">'+b.title+'</span>' + '<div class="right-time">'
- li += '<span class="tps">【' + b.project_type + '】</span>'
- li += '<span>' + time + '</span>'
- li +=''
- li += '</div></div>';
- dataList2.append(li);
- })
- if(!pdate.length){
- var html = '<img src="${path}/common/images/empty.png" style="margin: 0 auto; padding: 50px 0 20px; display: block;" alt="">';
- dataList2.append(html);
- }
- }
- function openProject(id) {
- TC.ui.openResource({
- id: "/taskmt/?m=taskDetail",
- label: "查看事项",
- url: "/project/" + id,
- icon: ""
- });
- }
- //inspired todo 取消关注
- function delAttrtion(referenceId,title){
- var e=window.event || arguments.callee.caller.arguments[0];
- e.preventDefault();
- e.stopPropagation() ;
- var data={referenceId:referenceId,type:"leaderAttention"};
- $.confirm('您确定要取消吗?', function() {
- $.ajax({
- url: TC.config.baseUrl+"/project/attention/",
- type: "post",
- dataType: "json",
- data:data,
- traditional: true,
- async: false,
- success: function(result){
- if(result.state="success"){
- $.alert(title+"成功!",function () {
- window.location.reload();
- });
- }else{
- $.alert("操作失败!");
- }
- },error:function(){
- $.alert("操作失败!");
- }
- });
- })
- }
- function openMore() {
- TC.ui.openTab("/project/moreLeaderAttentionAttention");
- }
- </script>
- </body>
- </html>
|