|
@@ -0,0 +1,2020 @@
|
|
|
+
|
|
|
+<!DOCTYPE html>
|
|
|
+<style>
|
|
|
+ .efficiencyTable td {
|
|
|
+ padding: 8px;
|
|
|
+ max-width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .navC {
|
|
|
+ background: #B0E2FF;
|
|
|
+ color: white;
|
|
|
+ }
|
|
|
+ .btn-default {
|
|
|
+ color: #333;
|
|
|
+ background-color: #fff;
|
|
|
+ border-color: #ccc;
|
|
|
+ }
|
|
|
+ .btn{
|
|
|
+ display: inline-block;
|
|
|
+ padding: 6px 12px;
|
|
|
+ margin-bottom: 0;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: normal;
|
|
|
+ line-height: 1.42857143;
|
|
|
+ text-align: center;
|
|
|
+ white-space: nowrap;
|
|
|
+ vertical-align: middle;
|
|
|
+ -ms-touch-action: manipulation;
|
|
|
+ touch-action: manipulation;
|
|
|
+ cursor: pointer;
|
|
|
+ -webkit-user-select: none;
|
|
|
+ -moz-user-select: none;
|
|
|
+ -ms-user-select: none;
|
|
|
+ user-select: none;
|
|
|
+ background-image: none;
|
|
|
+ border: 1px solid transparent;
|
|
|
+ border-radius: 4px;
|
|
|
+ border: 1px solid;
|
|
|
+ border-color: #0772B0;
|
|
|
+
|
|
|
+ }
|
|
|
+ .pic{
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+ }
|
|
|
+ .pic img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .fet{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ #wtTable tr td:nth-child(3){
|
|
|
+ min-width: 300px;
|
|
|
+ }
|
|
|
+ .tabBtn{
|
|
|
+ color: #0072b0;
|
|
|
+ }
|
|
|
+ .jdTab tr td:nth-child(2){
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+ .basiInforCon1 {
|
|
|
+ width: 100%;
|
|
|
+ /* height: 200px; */
|
|
|
+ padding: 30px 0px 0px 30px;
|
|
|
+ }
|
|
|
+ .d_ttile{
|
|
|
+ width: 100%;
|
|
|
+ height: 64px;
|
|
|
+ background: #fff;
|
|
|
+ border-bottom: 1px solid #E2E2E2;
|
|
|
+ display: flex;
|
|
|
+ position: fixed;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ }
|
|
|
+ .dt_op{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .jdTabl tbody .bgd{
|
|
|
+ background: #f9fdff;
|
|
|
+ color: #0772b0;
|
|
|
+ }
|
|
|
+ .btn-group button{
|
|
|
+ color: #0072b0;
|
|
|
+ }
|
|
|
+ .openProblem a{
|
|
|
+ color: rgb(0, 114, 176);
|
|
|
+ }
|
|
|
+ .operator a{
|
|
|
+ color: rgb(0, 114, 176);
|
|
|
+ }
|
|
|
+ .disabled {
|
|
|
+ pointer-events: none;
|
|
|
+ filter: alpha(opacity=50); /*IE滤镜,透明度50%*/
|
|
|
+ -moz-opacity: 0.5; /*Firefox私有,透明度50%*/
|
|
|
+ opacity: 0.5; /*其他,透明度50%*/
|
|
|
+ }
|
|
|
+ .projectOpertion{
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+ .nav {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0px 30px;
|
|
|
+ height: 49px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav a {
|
|
|
+ font-size: 16px;
|
|
|
+ color: #333333;
|
|
|
+ /*margin-right: 70px;*/
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ padding: 0 10px;
|
|
|
+ border-radius: 15px;
|
|
|
+ border: 1px solid transparent;
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav a.active {
|
|
|
+ border: 1px solid #2e6aaf;
|
|
|
+ background: #f3f7fa;
|
|
|
+ color: #0068b7;
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav a:last-child {
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+ #menu, #menu li {
|
|
|
+ list-style:none; /* 将默认的列表符号去掉 */
|
|
|
+ padding:0 10px;
|
|
|
+ }
|
|
|
+ #menu li {
|
|
|
+ margin-right: 130px;
|
|
|
+ float:left; /* 往左浮动 */
|
|
|
+ }
|
|
|
+ #menu li a:hover{
|
|
|
+ color: #333333;
|
|
|
+ text-decoration: none;
|
|
|
+ border: 1px solid #E5E5E5;
|
|
|
+ cursor: pointer;
|
|
|
+ background:#F2F2F2;
|
|
|
+ }
|
|
|
+ #menu a.active:hover{
|
|
|
+ border: 1px solid #2e6aaf;
|
|
|
+ background: #f3f7fa;
|
|
|
+ color: #0068b7;
|
|
|
+ }
|
|
|
+ body{overflow: hidden}
|
|
|
+ .needHide{display: none}
|
|
|
+ .infoZoom{transition: all .5s;overflow: hidden;box-sizing: border-box;padding: 0 !important;}
|
|
|
+</style>
|
|
|
+<html>
|
|
|
+ <head>
|
|
|
+ <meta charset="utf-8" />
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/perfect-scrollbar@1.4.0/css/perfect-scrollbar.min.css">
|
|
|
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ant-design-vue@1.3.8/dist/antd.min.css">
|
|
|
+ <link rel="stylesheet" href="/pms_web/tc_suite/minto/task/css/details.css?tcVersion=V5.0_200315_2023-02-24">
|
|
|
+ <link rel="stylesheet" href="/pms_web/tc_suite/minto/assets/bootstrap/css/bootstrap.css?tcVersion=V5.0_200315_2023-02-24">
|
|
|
+ <link rel="stylesheet" type="text/css" href="/pms_web/tc_suite/tapproject/css/detail.css"/>
|
|
|
+ <link rel="stylesheet" type="text/css" href="/pms_web/tc_suite/tapproject/css/jquery.mCustomScrollbar.css"/>
|
|
|
+ <title>因地制宜破难题 湖北超额完成万户特困老人居家适老化改造</title>
|
|
|
+ <style>
|
|
|
+ body{background: transparent}
|
|
|
+ .opi{padding: 0}
|
|
|
+ .narrow{right: 0}
|
|
|
+ .FocusOnDiv>img {
|
|
|
+ width: 18px;
|
|
|
+ height: 18px;
|
|
|
+ margin-right: 5px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .FocusOn{width:auto}
|
|
|
+ .ProjectTittle p{max-width:100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis}
|
|
|
+ .topTitle{height: auto;min-height: auto;margin-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0;}
|
|
|
+ .hsatitle{justify-content: space-between;}
|
|
|
+ #menu{margin-bottom: 0;overflow: hidden;padding: 0}
|
|
|
+ .nav{height: auto;background:#FFFFFF;margin-bottom: 20px;padding: 5px 20px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;}
|
|
|
+ .content{background: transparent;padding-right: 320px}
|
|
|
+ #menu li{margin-right:10px}
|
|
|
+ /*#menu li:last-child{margin-right:50px}*/
|
|
|
+ .basiInfor{border-radius:4px}
|
|
|
+ .ProjectContent{border-radius:4px;}
|
|
|
+ .ProjectContent>div{
|
|
|
+ box-shadow: 0 1px 4px 0 rgba(0,0,0,0.10);
|
|
|
+ }
|
|
|
+ .content_right{top: 0;right: 0;border-radius: 4px;}
|
|
|
+ .content_left{display: block;}
|
|
|
+ .tran {
|
|
|
+ transition: all .1s;
|
|
|
+ -webkit-transition: all .1s;
|
|
|
+ -moz-transition: all .1s;
|
|
|
+ -o-transition: all .1s;
|
|
|
+ }
|
|
|
+ .roundTittle{font-size: 18px;color: #0068b7;padding-left:6px}
|
|
|
+ button{outline: none !important}
|
|
|
+ .btn{
|
|
|
+ border-radius: 0px !important;
|
|
|
+ min-width:60px;
|
|
|
+ height: 20px;
|
|
|
+ line-height:18px;
|
|
|
+ padding: 0;
|
|
|
+ display:inline-block;
|
|
|
+ margin-right:20px;
|
|
|
+ background:#FFFFFF;
|
|
|
+ border: 1px solid #0068b7;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #0068b7;
|
|
|
+ }
|
|
|
+ /*.btn-default {*/
|
|
|
+ /*background: #0068b7;*/
|
|
|
+ /*color: #FFFFFF;*/
|
|
|
+ /*}*/
|
|
|
+ .btn-default:hover {
|
|
|
+ background: #f3f7fa;
|
|
|
+ border: 1px solid #0068b7;
|
|
|
+ color: #0068b7;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn-default:active:focus,.btn-default:active {
|
|
|
+ background: #f3f7fa;
|
|
|
+ /*border-color: #0072b0;*/
|
|
|
+ /*color: #ffffff;*/
|
|
|
+ box-shadow: none;
|
|
|
+ outline:none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn-default:focus, .btn-default.focus {
|
|
|
+ color:#ffffff;
|
|
|
+ background-color: #00649b;
|
|
|
+ border-color: #0072b0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .emptyData{text-align: center;padding: 20px;color:#999999;}
|
|
|
+ .emptyData img{width: 80px;}
|
|
|
+ .emptyData p{margin-top: 10px;}
|
|
|
+ .emptyData a{color:#0068b7;text-decoration: underline;margin-left:5px}
|
|
|
+ #memberInfo{
|
|
|
+ padding: 5px;
|
|
|
+ }
|
|
|
+ #memberInfo ul{
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+ #memberInfo li{
|
|
|
+ /*padding: 12px 15px;*/
|
|
|
+ display: flex;
|
|
|
+ /*align-items: center;*/
|
|
|
+ height: auto;
|
|
|
+ margin: 0;
|
|
|
+ padding: 5px 0;
|
|
|
+ }
|
|
|
+ .HeadPortrait{
|
|
|
+ width: 38px;
|
|
|
+ min-width: 38px;
|
|
|
+ height: 38px;
|
|
|
+ margin: 6px 0 0 4px !important;
|
|
|
+ /*margin-right: 5px !important;*/
|
|
|
+ }
|
|
|
+ .HeadPortrait>img{
|
|
|
+ width: 38px;
|
|
|
+ height: 38px;
|
|
|
+ }
|
|
|
+ .message{
|
|
|
+ width: 100%;
|
|
|
+ padding: 5px;
|
|
|
+ line-height: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .InstRuction a{
|
|
|
+ width: 80px;
|
|
|
+ height: 30px;
|
|
|
+ padding: 0;
|
|
|
+ text-align: center;
|
|
|
+ background: #0068b7;
|
|
|
+ line-height: 30px;
|
|
|
+ cursor: pointer;
|
|
|
+ margin: 10px 0;
|
|
|
+ }
|
|
|
+ .InstRuction a:hover{
|
|
|
+ text-decoration: none;
|
|
|
+ background: #00649b;
|
|
|
+ }
|
|
|
+ .Back_to{
|
|
|
+ border-left: none;
|
|
|
+ border-bottom: 1px solid #e5e5e5;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ }
|
|
|
+ .sate{display: flex;align-items: center}
|
|
|
+ .blogPhoto {
|
|
|
+ min-width: 38px;
|
|
|
+ width: 38px;
|
|
|
+ height: 38px;
|
|
|
+ border-radius: 4px;
|
|
|
+ }
|
|
|
+ .fil{margin-left:0;max-width: 100%;}
|
|
|
+ .sate>.time{
|
|
|
+ color: #999999;
|
|
|
+ font-size: 14px;
|
|
|
+ text-align: left;
|
|
|
+ margin: 0;
|
|
|
+ margin-left: auto;
|
|
|
+ }
|
|
|
+ .sate>span{
|
|
|
+ margin-top: 0;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+ .statList .mCSB_inside > .mCSB_container {
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+ #btn2{
|
|
|
+ padding:0;
|
|
|
+ text-indent:0;
|
|
|
+ height:30px;
|
|
|
+ float:right;
|
|
|
+ line-height: 28px;
|
|
|
+ width:80px;
|
|
|
+ text-align: center;
|
|
|
+ cursor: pointer;
|
|
|
+ background: #0068b7;
|
|
|
+ color:#FFFFFF;
|
|
|
+ border-radius:4px !important;
|
|
|
+ margin-left: auto;
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+ #btn2 a{
|
|
|
+ color:#FFFFFF;
|
|
|
+ }
|
|
|
+ #btn2 a:hover{
|
|
|
+ text-decoration: none;
|
|
|
+ }
|
|
|
+ #btn2:hover{
|
|
|
+ background: #00649b !important;
|
|
|
+ }
|
|
|
+ .btnfiles{
|
|
|
+ min-height: 22px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .leaveContent{
|
|
|
+ resize: none;
|
|
|
+ outline: none;
|
|
|
+ width: 100%;
|
|
|
+ height: 130px;
|
|
|
+ border: 1px solid rgb(227, 230, 234);
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 5px;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ .attHandelObj a{display: flex;max-width:100%}
|
|
|
+ .attHandelObj a label{white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
|
|
|
+ #memberInfo li:first-child{margin-top: 0;}
|
|
|
+ #addAtt:hover lable{text-decoration: underline}
|
|
|
+ .black{
|
|
|
+ background: #f0f7fb;
|
|
|
+ margin-top: 30px;
|
|
|
+ padding:10px;
|
|
|
+ }
|
|
|
+ .replyNew .time {
|
|
|
+ color: #999999;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ td .btn:hover{background: #f3f7fa}
|
|
|
+ </style>
|
|
|
+ </head>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_suite/minto/assets/jquery/jquery-3.2.1.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script>
|
|
|
+ function initDefaultImg(obj) {
|
|
|
+ $(obj).attr("src","/pms_web/tc_suite/tapproject/images/head.jpg");
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ <body>
|
|
|
+ <div class="opi">
|
|
|
+ <input type="hidden" id="behSummaryInfo" onclick="getBehSummary()">
|
|
|
+ <input id="referenceId" value="7572638245089067614" type="hidden">
|
|
|
+ <input id="taskType" value="2993815614199646938" type="hidden">
|
|
|
+ <div class="content">
|
|
|
+ <div class="content_left">
|
|
|
+ <div style="min-height: 121px;">
|
|
|
+ <div id="nav" style="position: relative;">
|
|
|
+
|
|
|
+ <div class="ProjectTittle" style="background: #fff; display: flex; justify-content: space-between; padding-right: 20px;">
|
|
|
+ <p title="因地制宜破难题 湖北超额完成万户特困老人居家适老化改造">因地制宜破难题 湖北超额完成万户特困老人居家适老化改造</p>
|
|
|
+ <div class="FocusOn">
|
|
|
+ <button id="save" lib-id="1" data-type="true" class="btn btn-default" projectType="2993815614199646938">保存</button>
|
|
|
+ <button id="cancel" class="btn" style="margin-right: 0">取消</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="nav">
|
|
|
+ <style>
|
|
|
+ .nav{position: relative;box-shadow:0 3px 5px -1px #e5e5e5;}
|
|
|
+ .runRight{position: absolute;right: 44px;cursor: pointer;display: none;}
|
|
|
+ .runLeft{position: absolute;right: 60px;cursor: pointer;display: none;}
|
|
|
+ .navgun{overflow:hidden;margin-right: 60px;min-width:calc(100% - 60px)}
|
|
|
+ #menu{transition: all .1s;margin-left: 0}
|
|
|
+ .setting{position: absolute;right: 14px;cursor: pointer;}
|
|
|
+ </style>
|
|
|
+
|
|
|
+ <img class="runLeft" src="/pms_web/tc_suite/minto/icon/images/r_jt.png" alt="" style="transform: rotate(180deg);">
|
|
|
+ <img class="runRight" src="/pms_web/tc_suite/minto/icon/images/r_jt.png" alt="" style="transform: rotate(0deg);">
|
|
|
+ <div class="navgun">
|
|
|
+ <ul id="menu" thisGroup="1" style="width: 9999px">
|
|
|
+ <div style="overflow:hidden;display: inline-block" class="nei">
|
|
|
+ <li><a class="active cata" hrefurl="#project_summary_top">项目信息</a></li>
|
|
|
+ <li><a class="cata" hrefurl="#xmxcdj_top">项目巡查登记</a></li>
|
|
|
+ </div>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="ProjectContent" style="width: 100%;">
|
|
|
+
|
|
|
+ <div class="basiInfor" id="project_summary_top">
|
|
|
+ <div class="basiInforTitle">
|
|
|
+ <div class="titleLeft">
|
|
|
+ <img class="zk" src="/pms_web/tc_suite/tapproject/images/top_down.png" alt="">
|
|
|
+ <span class="roundTittle">项目信息</span>
|
|
|
+ </div>
|
|
|
+ <div class="infor_tittle project_summary needHide">
|
|
|
+ <button onclick="btnDatain('project_summary')" class="btn btn-default curd-btn">新建</button>
|
|
|
+ <button onclick="btnEdit('project_summary')" class="btn btn-default curd-btn">编辑</button>
|
|
|
+ <button onclick="btnDelete('project_summary')" class="btn btn-default curd-btn">删除</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="basiInforCon infoZoom" style="padding: 0">
|
|
|
+ <iframe id="project_summary" name="project_summary" src="/pms_web/tc/dm/table/8209847906886501692/?m=dataList&referenceId=7572638245089067614&isEdit=true&relationType=21001008&projectType=2993815614199646938&id=7572638245089067614&relationType=21001008&projectType=2993815614199646938"
|
|
|
+ width="100%" height="100%" frameborder="0" scrolling="yes"
|
|
|
+ style="overflow: auto;"></iframe>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="basiInfor" id="xmxcdj_top">
|
|
|
+ <div class="basiInforTitle zoom">
|
|
|
+ <div class="titleLeft">
|
|
|
+ <img class="imgZk" src="/pms_web/tc_suite/tapproject/images/top_down.png" alt="">
|
|
|
+ <span class="roundTittle">项目巡查登记</span>
|
|
|
+ </div>
|
|
|
+ <div class="infor_tittle xmxcdj needHide">
|
|
|
+ <button onclick="btnDatain('xmxcdj')" class="btn btn-default curd-btn">新建</button>
|
|
|
+ <button onclick="btnEdit('xmxcdj')" class="btn btn-default curd-btn">编辑</button>
|
|
|
+ <button onclick="btnDelete('xmxcdj')" class="btn btn-default curd-btn">删除</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="basiInforCon infoZoom" style="padding: 0;overflow: hidden;height:0px">
|
|
|
+ <iframe id="xmxcdj" name="xmxcdj" src="/pms_web/tc/dm/table/3444419298534705772/?m=dataList&isEdit=true&projectId=7572638245089067614&relationType=21001008&projectType=2993815614199646938"
|
|
|
+ width="100%" height="100%" frameborder="0" scrolling="yes"
|
|
|
+ style="overflow: auto;"></iframe>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="content_right tran">
|
|
|
+ <div class="reRort_po">
|
|
|
+ <div class="projecRE">
|
|
|
+ <div data="content" class="yi info">项目动态</div>
|
|
|
+ <div data="memberInfo" class="info">项目成员</div>
|
|
|
+<style>
|
|
|
+ .projecRE > div{width: 50%}
|
|
|
+ </style>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="mustHide">
|
|
|
+ <div id="InstRuction messageDiv2" style="padding: 20px 10px 10px 10px;">
|
|
|
+ <textarea placeholder="输入内容" class="leaveContent" id="leaveContent" style="width:100%;height: 100px"></textarea>
|
|
|
+ <div id="addFiles" addFiles="addFiles" style="width:100%; overflow-y:auto; line-height:30px; border:0px solid #000;margin:0 10px"></div>
|
|
|
+ </div>
|
|
|
+ <div style="padding:5px 2px 10px 10px;text-align:right;">
|
|
|
+ <div class="btnfiles ">
|
|
|
+ <img src="/pms_web/tc_suite/tapproject/images/attachment.png" title="添加附件" style="float:left;"><a id="addAtt" href="javascript:;" style="float:left;"><lable style="float:left;">添加附件</lable></a>
|
|
|
+ <div class="btn" id="btn2" onclick="saveLeaveContent()">
|
|
|
+ <a class="input" href="javascript:;">提交</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="ToDo" style="display: none;">
|
|
|
+ <div class="remind">
|
|
|
+ <p class="">待办提醒</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="qhDiv">
|
|
|
+ <div id="content">
|
|
|
+ <div class="All" style="display: none">
|
|
|
+ <select class="xmdt">
|
|
|
+ <option value="0" selected>全部</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="statList" style="height: 100%;">
|
|
|
+ <div class="statListCen">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div id="memberInfo">
|
|
|
+
|
|
|
+ <ul>
|
|
|
+
|
|
|
+ <li>
|
|
|
+ <div class="HeadPortrait">
|
|
|
+ <img src="/pms_web/tc/space//showFile/" onerror="initDefaultImg(this)" alt="">
|
|
|
+ </div>
|
|
|
+ <div class="message">
|
|
|
+ <div style="width: 100%; height: 20px;">
|
|
|
+ <span style="font-weight:bold;float:left;height: 20px;width: 100%;display: flex;align-items: center;justify-content: space-between;" _pid="10000003_8444652628253428837" class="state_off">
|
|
|
+ <div>
|
|
|
+ <span style="max-width: 115px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size: 14px;color: #333;font-weight: initial;">华州区联络员</span>
|
|
|
+ <span style=" font-size: 12px;color: #999;max-width: 120px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;position: static;margin-left: 3px;font-weight: initial;">
|
|
|
+ [华州区]
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div style="line-height: 20px; vertical-align: top;">
|
|
|
+
|
|
|
+ <span style="color: #333;font-size: 14px">业主单位</span>
|
|
|
+ </div>
|
|
|
+ <div style="line-height: 20px; vertical-align: top;">
|
|
|
+
|
|
|
+ <span style="color: #333;font-size: 14px">联系方式:</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div id="emailInfo">
|
|
|
+ <div style="display: block;text-align: center;" class="opinion" >
|
|
|
+ <img src="/pms_web/tc_suite/dc/images/empty.png" style="margin: 0 auto; padding: 50px 0 20px; display: block;width: 80%;" alt="">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_ttp/common/jquery.form.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_ttp/common/jquery.json.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script src="/pms_web/tc_suite/tapproject/js/jquery.mCustomScrollbar.concat.min.js"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_ttp/common/tc.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_ttp/My97DatePicker/WdatePicker.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_ttp/lhgdialog4.2.0/lhgdialog.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_tap/space/js/upload.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_suite/tapproject/js/tapProject.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_tap/relResource/js/relResource.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_ttp/common/function.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_ttp/uploadify/jquery.uploadify.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_ttp/common/ajax.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_tap/chooseData/js/chooseData.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_ttp/dummyPhotoView/dummyPhotoView.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+
|
|
|
+ <script type="text/javascript" src="/pms_web/tc_suite/assembly/hubei/js/domeResize.js?tcVersion=V5.0_200315_2023-02-24"></script>
|
|
|
+ <script>
|
|
|
+ // @author : inspired(胡启林);Description: 挪按钮 (edit) lastdate : 2020/5/25
|
|
|
+ var iframeArr = new Array();
|
|
|
+
|
|
|
+ iframeArr.push("project_summary");
|
|
|
+
|
|
|
+ iframeArr.push("xmxcdj");
|
|
|
+
|
|
|
+ window.onload = function (){
|
|
|
+ for(var i=0;i<iframeArr.length;i++){
|
|
|
+ var iframeIsEdit = $("#"+iframeArr[i]).contents().find("#toolbar").attr("isEdit");
|
|
|
+ if('true'==iframeIsEdit){
|
|
|
+ $("."+iframeArr[i]).removeClass("needHide");
|
|
|
+ }else{
|
|
|
+ $("."+iframeArr[i]).addClass("needHide");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+
|
|
|
+ <script>
|
|
|
+ var cid = "407223454379623895";
|
|
|
+ var projectType = "2993815614199646938";
|
|
|
+
|
|
|
+ var projPhaseExtend = "1";
|
|
|
+ var fundsChecking ="0";
|
|
|
+
|
|
|
+ $(".opinion_title").on("click",function(){
|
|
|
+ $("#needHide")
|
|
|
+ });
|
|
|
+ function opinionClick(id){
|
|
|
+ top.addTab(id,'事项列表','/col.doColIndex.do?affairId='+id ,'curSelect');
|
|
|
+ }
|
|
|
+ $(".basiInforTitle").click(function () {
|
|
|
+ $(this).toggleClass("zoom");
|
|
|
+ if($(this).hasClass("zoom")){
|
|
|
+ $(this).find("img").addClass("imgZk");
|
|
|
+ // $(this).parent().find(".infoZoom").animate({"height":"hide"},500);
|
|
|
+ $(this).parent().find(".infoZoom").css({"height":"0"});
|
|
|
+ }else{
|
|
|
+ $(this).find("img").removeClass("imgZk");
|
|
|
+
|
|
|
+ if($(this).parent().find(".infoZoom iframe").length){
|
|
|
+ var h = $(this).parent().find(".infoZoom iframe").outerHeight(true);
|
|
|
+ }else{
|
|
|
+ var h = $(this).parent().find(".infoZoom .emptyData").outerHeight(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ $(this).parent().find(".infoZoom").css({"height": 'auto' });
|
|
|
+ // $(this).parent().find(".infoZoom").animate({"height":"show"},500);
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ // @author : inspired(胡启林);Description: 挪按钮 (edit) lastdate : 2020/5/25
|
|
|
+ function btnDatain(iframeId){
|
|
|
+ stopProp()
|
|
|
+ $("#"+iframeId)[0].contentWindow.btnDatain();
|
|
|
+ }
|
|
|
+ function btnEdit(iframeId){
|
|
|
+ stopProp()
|
|
|
+ $("#"+iframeId)[0].contentWindow.btnEdit();
|
|
|
+ }
|
|
|
+ function btnDelete(iframeId){
|
|
|
+ stopProp()
|
|
|
+ $("#"+iframeId)[0].contentWindow.btnDelete();
|
|
|
+ }
|
|
|
+ function stopProp(){
|
|
|
+ var e=window.event || arguments.callee.caller.arguments[0];
|
|
|
+ e.preventDefault();
|
|
|
+ e.stopPropagation() ;
|
|
|
+ }
|
|
|
+ function hidebtn(iframeNode){
|
|
|
+ $(iframeNode).parents('.basiInfor').find('.infor_tittle').hide();
|
|
|
+ }
|
|
|
+ function showbtn(iframeNode){
|
|
|
+ $(iframeNode).parents('.basiInfor').find('.infor_tittle').show();
|
|
|
+ }
|
|
|
+ function openCeng(iframeNode){
|
|
|
+ $(iframeNode).parents('.basiInfor').find('.basiInforTitle').click()
|
|
|
+ }
|
|
|
+ $(function () {
|
|
|
+ getBehSummary();
|
|
|
+ var isEdit = true;
|
|
|
+ if(isEdit){
|
|
|
+ $(".content_right").css("display","none");
|
|
|
+ $(".content").css("padding-right","0px");
|
|
|
+ }else {
|
|
|
+ $(".content_right").css("display","block");
|
|
|
+ $(".content").css("padding-right","320px");
|
|
|
+ }
|
|
|
+ if($(window).width() < 1201){
|
|
|
+ $('.narrow').click();
|
|
|
+ }
|
|
|
+
|
|
|
+ //初始化导航条的宽度,用最宽的为基准
|
|
|
+ var numLen = $('#menu li').length;
|
|
|
+ var widthLi = $('#menu li').outerWidth(true);
|
|
|
+ $('#menu li').each(function (v,i) {
|
|
|
+ widthLi<$(this).outerWidth(true)?widthLi =$(this).outerWidth(true) : '' ;
|
|
|
+ })
|
|
|
+
|
|
|
+ $('#menu').css('width',$('.nei').width()+'px')
|
|
|
+
|
|
|
+ var tolNum = parseInt($('.navgun').width() / widthLi);
|
|
|
+ if($('.navgun').width() < $('.nei').width()){
|
|
|
+ $('.runLeft').show()
|
|
|
+ $('.runRight').show()
|
|
|
+ }
|
|
|
+ $('.runLeft').click(function () {
|
|
|
+ //每一次能够显示出来的个数
|
|
|
+ var tolNum = parseInt($('.navgun').width() / widthLi);
|
|
|
+ //当前能够偏移多少组
|
|
|
+ var group = $('#menu li').length / tolNum;
|
|
|
+ //当前的偏移量
|
|
|
+ var marginLeft = parseInt($('#menu').css('margin-left'));
|
|
|
+ //下一个是第几组
|
|
|
+ var thisGroup =parseInt($('#menu').attr('thisGroup')) ;
|
|
|
+ if(thisGroup > 1){
|
|
|
+ $('#menu').attr('thisGroup',parseInt($('#menu').attr('thisGroup')) - 1)
|
|
|
+ // $('#menu').css('margin-left',(marginLeft + widthLi * tolNum) + 'px');
|
|
|
+ $('#menu').css('margin-left',(marginLeft + $('.navgun').width()) + 'px');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('.runRight').click(function () {
|
|
|
+ //每一次能够显示出来的个数
|
|
|
+ var tolNum = parseInt($('.navgun').width() / widthLi);
|
|
|
+ //当前能够偏移多少组
|
|
|
+ var group = $('#menu li').length / tolNum;
|
|
|
+ //当前的偏移量
|
|
|
+ var marginLeft = parseInt($('#menu').css('margin-left'));
|
|
|
+ //下一个是第几组
|
|
|
+ var thisGroup =parseInt($('#menu').attr('thisGroup')) ;
|
|
|
+ if(thisGroup < group){
|
|
|
+ $('#menu').attr('thisGroup',parseInt($('#menu').attr('thisGroup')) + 1)
|
|
|
+ // $('#menu').css('margin-left',(marginLeft - widthLi * tolNum) + 'px');
|
|
|
+ $('#menu').css('margin-left',(marginLeft - $('.navgun').width()) + 'px');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ var parentScroll = $(parent.document).find('.bodyCon');
|
|
|
+ var cha = $(parent.document).find('.topTitle').outerHeight(true);
|
|
|
+ var topTitle = cha + $('#nav').offset().top;
|
|
|
+ parentScroll.scroll(function(e){
|
|
|
+ if(parentScroll.scrollTop()>topTitle){
|
|
|
+ $('#nav').css({
|
|
|
+ 'position': 'absolute',
|
|
|
+ 'top': parentScroll.scrollTop() - cha,
|
|
|
+ 'width': '100%',
|
|
|
+ 'z-index': '999'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ $('#nav').css({
|
|
|
+ 'position': 'relative',
|
|
|
+ 'top': 0,
|
|
|
+ 'width': '100%',
|
|
|
+ 'z-index': '999'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('.nav').on('mouseenter','.runLeft',function () {
|
|
|
+ $(this).attr('src','/pms_web/tc_suite/minto/icon/images/r_jt1.png')
|
|
|
+ }).on('mouseleave','.runLeft',function () {
|
|
|
+ $(this).attr('src','/pms_web/tc_suite/minto/icon/images/r_jt.png')
|
|
|
+ })
|
|
|
+
|
|
|
+ $('.nav').on('mouseenter','.runRight',function () {
|
|
|
+ $(this).attr('src','/pms_web/tc_suite/minto/icon/images/r_jt1.png')
|
|
|
+ }).on('mouseleave','.runRight',function () {
|
|
|
+ $(this).attr('src','/pms_web/tc_suite/minto/icon/images/r_jt.png')
|
|
|
+ })
|
|
|
+
|
|
|
+ $('.nav').on('mouseenter','.setting',function () {
|
|
|
+ $(this).attr('src','/pms_web/tc_suite/tapproject/images/setting1.png')
|
|
|
+ }).on('mouseleave','.setting',function () {
|
|
|
+ $(this).attr('src','/pms_web/tc_suite/tapproject/images/setting.png')
|
|
|
+ })
|
|
|
+
|
|
|
+ });
|
|
|
+ $(".xmdt").change(function () {
|
|
|
+ getBehSummary();
|
|
|
+ });
|
|
|
+ $("#addAtt").click(function(){
|
|
|
+ TC.ui.rel.show({width:600,height:350,model:1 ,onSuccess:function(result) {
|
|
|
+ var fileResult = result.fileResult;
|
|
|
+ for(var i = 0; i < fileResult.length; i++) {
|
|
|
+ var file = fileResult[i];
|
|
|
+ addFileHtml(file);
|
|
|
+ }
|
|
|
+ }});
|
|
|
+ });
|
|
|
+
|
|
|
+ function getBehSummary(){
|
|
|
+ var resType=$(".xmdt option:selected").val();
|
|
|
+ var resName=$(".xmdt option:selected").text();
|
|
|
+ //初始化项目动态
|
|
|
+ var referenceId='7572638245089067614';
|
|
|
+ var params={
|
|
|
+ majorProjects:'',
|
|
|
+ resType:resType,
|
|
|
+ resId:referenceId
|
|
|
+ };
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/getBehSummary/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:params,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state=="success"){
|
|
|
+ var behList=eval(result.behList);
|
|
|
+ var Html='';
|
|
|
+ if(!!behList){
|
|
|
+ for(var i=0;i<behList.length;i++){
|
|
|
+ var beh=behList[i];
|
|
|
+ Html+='<div class="Back_to" style="height: auto;">';
|
|
|
+ // Html+='<div class="yuan"></div>' ;
|
|
|
+
|
|
|
+
|
|
|
+ Html+='<div class="sate">';
|
|
|
+ Html+=' <img class="blogPhoto" src="/pms_web/tc/space/'+beh.picon+'/showFile/" onerror="initDefaultImg(this)" alt="">'
|
|
|
+ Html+='<span style="margin-left: 18px;" class="hu">'+beh.createPeople+'</span>';
|
|
|
+ Html+=' <span class="time">'+beh.createDates+'</span>';
|
|
|
+ Html+='</div>';
|
|
|
+ Html+='<div class="xinxi" style="display: flex;">';
|
|
|
+
|
|
|
+ Html+='</div>';
|
|
|
+ Html+='<p class="fil">'+beh.descript+'</p>';
|
|
|
+ if(beh.files.length>0){
|
|
|
+ Html+='<div style="text-align: left;line-height: 20px;padding:10px 10px 10px 0;" id="imgShow">';
|
|
|
+ if(beh.files.length){
|
|
|
+ Html+='<img src="/minto/tc_ttp/style/cloud/images/addA16.png" align="absmiddle" style="margin-bottom: 2px;">'
|
|
|
+ Html+='<span style="font-size: 12px;font-weight: bold;">附件</span>';
|
|
|
+ }
|
|
|
+ for(var j=0;j<beh.files.length;j++){
|
|
|
+ var file=beh.files[j]
|
|
|
+ var fileType=file.fileType;
|
|
|
+ Html+='<li class="attHandelObj" data-file-type="pdf" id="img" fileId=\"'+file.id+'\" data-file-reltype="10020001" data-file-id="'+file.id+'" style="padding-left: 5px; padding-top: 3px;">';
|
|
|
+ if(file.fileType=="image"||file.fileType=="jpg"||file.fileType=="png"||file.fileType=="gif"){
|
|
|
+ Html+='<a href="javascript:;" onclick="openPhotoView(\'imgShow\',this,\''+TC.config.baseUrl+'/\')" class="normalA" title="'+file.fileName+'">';
|
|
|
+ }else{
|
|
|
+ Html+='<a href="javascript:;" onclick="TC.ui.space.openFile(\''+file.id+'\')" class="normalA" title="'+file.fileName+'">';
|
|
|
+ }
|
|
|
+ Html+= ' <img src="/minto/tc_ttp/style/default/images/icon/'+fileType+'16x16.png" align="absmiddle">';
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Html+=' <label style="margin: 0 0 0 5px;cursor: pointer;font-size: 12px;" >'+file.fileName+'</label>';
|
|
|
+ Html+=' <br>';
|
|
|
+ Html+=' </a>' ;
|
|
|
+ Html+=' </li>';
|
|
|
+ }
|
|
|
+ Html+='</div>';
|
|
|
+ }
|
|
|
+ Html+='<div>';
|
|
|
+ if(beh.behType=='40000011'||beh.behType=='40000007'){
|
|
|
+ Html+='<a name="repley" style="float: right;margin: 0 0;height: 20px;" href="javascript:;" name="replys" ct="add0" onclick="repley(this)">回复</a>';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ Html+='<span style="display: none;" name="show"> <form action="/pms_web/tc/tapProject/repleyContent" style="padding-top: 20px;" method="post">';
|
|
|
+ Html+=' <input type="hidden" name="parentId" value="'+beh.id+'">';
|
|
|
+ Html+=' <input type="hidden" name="projectId" value="7572638245089067614">';
|
|
|
+ Html+=' <table border="0" cellpadding="0" cellspacing="0" width="100%">';
|
|
|
+ Html+=' <tbody><tr>';
|
|
|
+ Html+=' <td colspan="2" style="padding-right: 5px"><textarea validate="required:true,maxlength:500" message="required:不能为空,maxlength:不能超过500个字符" name="opinion" style="width: 100%; color: rgb(0, 0, 0); height: 70px; margin-top: 10px;"></textarea></td>';
|
|
|
+ Html+=' </tr>';
|
|
|
+ Html+=' <tr>';
|
|
|
+ Html+=' <td align="left" style="font-size: 12px;height: 30px;">';
|
|
|
+ Html+=' <a ct="add0" name="addAtt" onclick="addFile(this)" href="javascript:;">';
|
|
|
+ Html+=' <img src="/minto/tc_ttp/style/default/images/attachment.png" align="absmiddle" style="margin-bottom: 4px;" title="添加附件">添加附件</a>';
|
|
|
+ Html+='<div> </div>'
|
|
|
+ Html+=' </td>';
|
|
|
+ Html+=' </tr>';
|
|
|
+
|
|
|
+ Html+=' <tr>';
|
|
|
+ Html+=' <td colspan="2" align="left">';
|
|
|
+ Html+=' <div name="addFiles" style="margin-top: 5px;text-align: left;border: 0px solid #000;"></div>';
|
|
|
+ Html+=' </td>';
|
|
|
+ Html+=' </tr>';
|
|
|
+
|
|
|
+ Html+=' <tr><td align="right" style="font-size: 12px;">';
|
|
|
+ Html+=' <div class="btn" style="padding: 0;text-indent: 0;height: 25px;margin-right: 1px;margin-top: 5px;float: right;line-height: 23px;height:23px">';
|
|
|
+ Html+=' <a name="cancelReply" class="input" href="javascript:;" style="color:#0068b7;text-decoration: none" onclick="cancel(this)">取消</a>';<!--取消-->
|
|
|
+ Html+=' </div>';
|
|
|
+ Html+=' <div class="btn" style="padding: 0;text-indent: 0;margin-right: 7px;margin-top: 5px;height: 25px;float: right;line-height: 23px;height:23px">';
|
|
|
+ Html+=' <a name="saveReply" parentid="145237636133504769" class="input" href="javascript:;" onclick="saveContent(this)" style="color:#0068b7;text-decoration: none" >提交</a>';<!--提交-->
|
|
|
+ Html+=' </div>';
|
|
|
+ Html+=' </td></tr>';
|
|
|
+
|
|
|
+
|
|
|
+ Html+=' </tbody></table>';
|
|
|
+ Html+=' </form>';
|
|
|
+ Html+=' </span>';
|
|
|
+
|
|
|
+ Html+='</div>';
|
|
|
+ var son=eval(beh.son);
|
|
|
+ if(!!son&&son!='undefined'){
|
|
|
+
|
|
|
+ Html+='<div class="black">';
|
|
|
+ Html+=addRr(son);
|
|
|
+ Html+='</div>';
|
|
|
+ }
|
|
|
+ Html+='</div>';
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(!behList.length) {
|
|
|
+ Html = '<img src="/pms_web/tc_suite/dc/images/empty.png" style="margin: 0 auto; padding: 50px 0 20px; display: block;width: 80%;" alt="">';
|
|
|
+ }
|
|
|
+ $(".statListCen").html(Html);
|
|
|
+ }else{
|
|
|
+ $.alert("获取项目动态失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ console.log("获取项目动态失败!")
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function addRr(son){
|
|
|
+ var Html=""
|
|
|
+ if(!!son){
|
|
|
+ for(var i=0;i<son.length;i++){
|
|
|
+ var beh=son[i];
|
|
|
+ Html+='<div class="sate">';
|
|
|
+ Html+='<span style="margin-left: 0;font-size:14px;color:#0068b7" class="" style="color:#005aae !important;">'+beh.createPeople+'</span>';
|
|
|
+ // Html+=' <span class="time">'+beh.createDate+'</span>';
|
|
|
+ Html+='</div>';
|
|
|
+ Html+='<div class="xinxi" style="display: flex;">';
|
|
|
+
|
|
|
+ Html+='</div>';
|
|
|
+ Html+='<p class="fil">'+beh.descript+'</p>';
|
|
|
+ if(beh.files.length>0){
|
|
|
+ Html+='<div style="text-align: left;line-height: 20px;padding:10px 10px 10px 0;" id="imgShow" >';
|
|
|
+ if(beh.files.length){
|
|
|
+ Html+='<img src="/minto/tc_ttp/style/cloud/images/addA16.png" align="absmiddle" style="margin-bottom: 2px;">'
|
|
|
+ Html+='<span style="font-size: 12px;font-weight: bold;">附件</span>';
|
|
|
+ }
|
|
|
+ for(var j=0;j<beh.files.length;j++){
|
|
|
+ var file=beh.files[j]
|
|
|
+ var fileType=file.fileType;
|
|
|
+ Html+='<li class="attHandelObj" data-file-type="pdf" id="img" fileId=\"'+file.id+'\" data-file-reltype="10020001" data-file-id="'+file.id+'" style="padding-left: 4px; padding-top: 3px;">';
|
|
|
+ if(file.fileType=="image"||file.fileType=="jpg"||file.fileType=="png"||file.fileType=="gif"){
|
|
|
+ Html+='<a href="javascript:;" onclick="openPhotoView(\'imgShow\',this,\''+TC.config.baseUrl+'/\')" class="normalA" title="'+file.fileName+'">';
|
|
|
+ }else{
|
|
|
+ Html+='<a href="javascript:;" onclick="TC.ui.space.openFile(\''+file.id+'\')" class="normalA" title="'+file.fileName+'">';
|
|
|
+ }
|
|
|
+ Html+=' <img src="/minto/tc_ttp/style/default/images/icon/'+fileType+'16x16.png" align="absmiddle">';
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Html+=' <label style="margin: 0 0 0 5px;cursor: pointer;font-size: 12px;" >'+file.fileName+'</label>';
|
|
|
+ Html+=' <br>';
|
|
|
+ Html+=' </a>' ;
|
|
|
+ Html+=' </li>';
|
|
|
+ }
|
|
|
+ Html+='</div>';
|
|
|
+ }
|
|
|
+ Html+='<div >';
|
|
|
+ Html+='<div style="display: flex;align-items:center;justify-content: space-between;border-bottom: 1px solid #e4e7eb;padding-bottom: 10px;margin-bottom: 10px">';
|
|
|
+ Html+=' <span class="time" style="font-size:14px;color:#999999">'+beh.createDates+'</span>';
|
|
|
+ Html+='<a name="repley" style="float: right;margin: 0 0;height: 20px;" href="javascript:;" name="replys" ct="add0" onclick="repley(this)">';
|
|
|
+ Html+=' <img title="回复" style="cursor: pointer;height: 13px;" src="/minto/tc_ttp/style/cloud/images/task/huifu.png" id="subprocess4Re_8233220096154157457" class="subprocess4Re" targetdom="replyOpinion_8233220096154157457">';
|
|
|
+ Html+='</a> '
|
|
|
+ Html+='</div> '
|
|
|
+
|
|
|
+
|
|
|
+ Html+='<span style="display: none;" name="show"> <form action="/pms_web/tc/tapProject/repleyContent" method="post">';
|
|
|
+ Html+=' <input type="hidden" name="parentId" value="'+beh.id+'">';
|
|
|
+ Html+=' <input type="hidden" name="projectId" value="7572638245089067614">';
|
|
|
+ Html+=' <table border="0" cellpadding="0" cellspacing="0" width="100%">';
|
|
|
+ Html+=' <tbody><tr>';
|
|
|
+ Html+=' <td colspan="2" style="padding-right: 5px"><textarea validate="required:true,maxlength:500" message="required:不能为空,maxlength:不能超过500个字符" name="opinion" style="width: 100%; color: rgb(0, 0, 0); height: 70px; margin-top: 10px;"></textarea></td>';
|
|
|
+ Html+=' </tr>';
|
|
|
+ Html+=' <tr>';
|
|
|
+ Html+=' <td align="left" style="font-size: 12px;height: 30px;">';
|
|
|
+ Html+=' <a ct="add0" name="addAtt" onclick="addFile(this)" href="javascript:;">';
|
|
|
+ Html+=' <img src="/minto/tc_ttp/style/default/images/attachment.png" align="absmiddle" style="margin-bottom: 4px;" title="添加附件">添加附件</a>';
|
|
|
+ Html+='<div> </div>'
|
|
|
+ Html+=' </td>';
|
|
|
+ Html+=' </tr>';
|
|
|
+
|
|
|
+ Html+=' <tr>';
|
|
|
+ Html+=' <td colspan="2" align="left">';
|
|
|
+ Html+=' <div name="addFiles" style="margin-top: 5px;text-align: left;border: 0px solid #000;"></div>';
|
|
|
+ Html+=' </td>';
|
|
|
+ Html+=' </tr>';
|
|
|
+
|
|
|
+ Html+=' <tr><td align="right" style="font-size: 12px;">';
|
|
|
+ Html+=' <div class="btn" style="padding: 0;text-indent: 0;height: 25px;margin-right: 1px;margin-top: 5px;float: right;line-height:23px">';
|
|
|
+ Html+=' <a name="cancelReply" class="input" href="javascript:;" style="text-decoration: none;color:#0068b7;" onclick="cancel(this)">取消</a>';<!--取消-->
|
|
|
+ Html+=' </div>';
|
|
|
+ Html+=' <div class="btn" style="line-padding: 0;text-indent: 0;margin-right: 7px;margin-top: 5px;height: 25px;float: right;height:23px">';
|
|
|
+ Html+=' <a name="saveReply" parentid="145237636133504769" class="input" href="javascript:;" onclick="saveContent(this)" style="color:#0068b7;text-decoration: none;display: inline-block;height: 100%;width:100%">提交</a>';<!--提交-->
|
|
|
+ Html+=' </div>';
|
|
|
+ Html+=' </td></tr>';
|
|
|
+ Html+=' </tbody></table>';
|
|
|
+ Html+=' </form>';
|
|
|
+ Html+=' </span>';
|
|
|
+ Html+='</div>';
|
|
|
+ var sons=eval(beh.son);
|
|
|
+ if(!!sons&&sons!='undefined'){
|
|
|
+ Html+=addRreSon(sons,name);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return Html;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ function addRreSon(son){
|
|
|
+ var Html=""
|
|
|
+ if(!!son){
|
|
|
+ for(var i=0;i<son.length;i++){
|
|
|
+ var beh=son[i];
|
|
|
+ Html+='<div class="black" style="padding: 0">';
|
|
|
+ Html+='<div class="">';
|
|
|
+ Html+=' <span id="litter">';
|
|
|
+ Html+=' <span class="blueTxt" style="color:#005aae">'+beh.createPeople+'</span> 回复 ';
|
|
|
+ Html+=' <span class="blueTxt" style="color:#005aae">'+beh.name+'</span> :';
|
|
|
+ Html+=' </span>';
|
|
|
+ Html+='</div>';
|
|
|
+ Html+='<p class="fil">'+beh.descript+'</p>';
|
|
|
+
|
|
|
+ Html+='<div class="xinxi" style="display: flex;">';
|
|
|
+
|
|
|
+ Html+='</div>';
|
|
|
+ if(beh.files.length>0){
|
|
|
+ Html+='<div style="text-align: left;line-height: 20px;padding:10px 10px 10px 0;" id="imgShow">';
|
|
|
+ if(beh.files.length){
|
|
|
+ Html+='<img src="/minto/tc_ttp/style/cloud/images/addA16.png" align="absmiddle" style="margin-bottom: 2px;">'
|
|
|
+ Html+='<span style="font-size: 12px;font-weight: bold;">附件</span>';
|
|
|
+ }
|
|
|
+ for(var j=0;j<beh.files.length;j++){
|
|
|
+ var file=beh.files[j]
|
|
|
+ var fileType=file.fileType;
|
|
|
+ Html+='<li class="attHandelObj" data-file-type="pdf" id="img" fileId=\"'+file.id+'\" data-file-reltype="10020001" data-file-id="'+file.id+'" style="padding-left: 5px; padding-top: 3px;">';
|
|
|
+ if(file.fileType=="image"||file.fileType=="jpg"||file.fileType=="png"||file.fileType=="gif"){
|
|
|
+ Html+='<a href="javascript:;" onclick="openPhotoView(\'imgShow\',this,\''+TC.config.baseUrl+'/ \')" class="normalA" title="'+file.fileName+'">';
|
|
|
+ }else{
|
|
|
+ Html+='<a href="javascript:;" onclick="TC.ui.space.openFile(\''+file.id+'\')" class="normalA" title="'+file.fileName+'">';
|
|
|
+ }
|
|
|
+ Html+=' <a href="javascript:;" onclick="TC.ui.space.openFile(\''+file.id+'\')" class="normalA" title="'+file.fileName+'">';
|
|
|
+ Html+= ' <img src="/minto/tc_ttp/style/default/images/icon/'+fileType+'16x16.png" align="absmiddle">';
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Html+=' <label style="margin: 0 0 0 5px;cursor: pointer;font-size: 12px;">'+file.fileName+'</label>';
|
|
|
+ Html+=' <br>';
|
|
|
+ Html+=' </a>' ;
|
|
|
+ Html+=' </li>';
|
|
|
+ }
|
|
|
+ Html+='</div>';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Html+='<div >';
|
|
|
+ Html+='<div style="display: flex;align-items:center;justify-content: space-between;border-bottom: 1px solid #e4e7eb;padding-bottom: 10px;margin-bottom: 10px">';
|
|
|
+ Html+=' <span class="time" style="font-size:14px;color:#999999">'+beh.createDates+'</span>';
|
|
|
+ Html+='<a name="repley" style="float: right;margin: 0 0;height: 20px;" href="javascript:;" name="replys" ct="add0" onclick="repley(this)">';
|
|
|
+ Html+=' <img title="回复" style="cursor: pointer;height: 13px;" src="/minto/tc_ttp/style/cloud/images/task/huifu.png" id="subprocess4Re_8233220096154157457" class="subprocess4Re" targetdom="replyOpinion_8233220096154157457">';
|
|
|
+ Html+='</a> '
|
|
|
+ Html+='</div> '
|
|
|
+ Html+='<span style="display: none;" name="show"> <form action="/pms_web/tc/tapProject/repleyContent" style="padding-top: 20px;" method="post">';
|
|
|
+ Html+=' <input type="hidden" name="parentId" value="'+beh.id+'">';
|
|
|
+ Html+=' <input type="hidden" name="projectId" value="7572638245089067614">';
|
|
|
+ Html+=' <table border="0" cellpadding="0" cellspacing="0" width="100%">';
|
|
|
+ Html+=' <tbody><tr>';
|
|
|
+ Html+=' <td colspan="2" style="padding-right: 5px"><textarea validate="required:true,maxlength:500" message="required:不能为空,maxlength:不能超过500个字符" name="opinion" style="width: 100%; color: rgb(0, 0, 0); height: 70px; margin-top: 10px;"></textarea></td>';
|
|
|
+ Html+=' </tr>';
|
|
|
+ Html+=' <tr>';
|
|
|
+ Html+=' <td align="left" style="font-size: 12px;height: 30px;">';
|
|
|
+ Html+=' <a ct="add0" name="addAtt" onclick="addFile(this)" href="javascript:;">';
|
|
|
+ Html+=' <img src="/minto/tc_ttp/style/default/images/attachment.png" align="absmiddle" style="margin-bottom: 4px;" title="添加附件">添加附件</a>';
|
|
|
+ Html+='<div> </div>'
|
|
|
+ Html+=' </td>';
|
|
|
+ Html+=' </tr>';
|
|
|
+
|
|
|
+ Html+=' <tr>';
|
|
|
+ Html+=' <td colspan="2" align="left">';
|
|
|
+ Html+=' <div name="addFiles" style="margin-top: 5px;text-align: left;border: 0px solid #000;"></div>';
|
|
|
+ Html+=' </td>';
|
|
|
+ Html+=' </tr>';
|
|
|
+
|
|
|
+ Html+=' <tr><td align="right" style="font-size: 12px;">';
|
|
|
+ Html+=' <div class="btn" style="padding: 0;text-indent: 0;height: 25px;margin-right: 1px;margin-top: 5px;float: right;line-height: 23px;">';
|
|
|
+ Html+=' <a name="cancelReply" class="input" href="javascript:;" style="text-decoration: none;color:#0068b7;" onclick="cancel(this)">取消</a>';<!--取消-->
|
|
|
+ Html+=' </div>';
|
|
|
+ Html+=' <div class="btn" style="padding: 0;text-indent: 0;margin-right: 7px;margin-top: 5px;height: 25px;float: right;line-height: 23px;">';
|
|
|
+ Html+=' <a name="saveReply" parentid="145237636133504769" class="input" href="javascript:;" onclick="saveContent(this)" style="color:#0068b7;text-decoration: none;display:inline-block;height: 100%;width: 100%" >提交</a>';<!--提交-->
|
|
|
+ Html+=' </div>';
|
|
|
+ Html+=' </td></tr>';
|
|
|
+ Html+=' </tbody></table>';
|
|
|
+ Html+=' </form>';
|
|
|
+ Html+=' </span>';
|
|
|
+ Html+='</div>';
|
|
|
+ var sons=eval(beh.son);
|
|
|
+ if(!!sons&&sons!='undefined'){
|
|
|
+ Html+=addRreSon(sons,name);
|
|
|
+ }
|
|
|
+
|
|
|
+ Html+='</div>';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return Html;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ $(".info").click(function () {
|
|
|
+ $(".info").removeClass("yi");
|
|
|
+ $(this).addClass("yi");
|
|
|
+ $("#content,#memberInfo,#emailInfo").css("z-index","1");
|
|
|
+ var data=$(this).attr("data");
|
|
|
+ $("#"+data).css("z-index","2");
|
|
|
+ if(data == "memberInfo" || data == "emailInfo"){
|
|
|
+ $(this).parents(".reRort_po").find(".InstRuction").hide();
|
|
|
+ $('.mustHide').hide();
|
|
|
+ }else{
|
|
|
+ $(this).parents(".reRort_po").find(".InstRuction").show();
|
|
|
+ $('.mustHide').show();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // 文件上传
|
|
|
+ $(".file-up").click(function(){
|
|
|
+ TC.ui.rel.show({
|
|
|
+ model:3,
|
|
|
+ onSuccess:function(result) {
|
|
|
+ var fileResult = result.fileResult;
|
|
|
+ //选这图片个数
|
|
|
+ var length = fileResult.length;
|
|
|
+
|
|
|
+ //3、回显
|
|
|
+ $.each(fileResult,function(key,result){
|
|
|
+ //每次都只会遍历一个图片数据
|
|
|
+ var div = document.createElement("div"),
|
|
|
+ img = document.createElement("img");
|
|
|
+ div.className = "pic";
|
|
|
+
|
|
|
+ var fr = new FileReader();
|
|
|
+ fr.onload = function(){
|
|
|
+ img.src=this.result;
|
|
|
+ div.appendChild(img);
|
|
|
+ document.body.appendChild(div);
|
|
|
+ };
|
|
|
+ fr.onload(result);
|
|
|
+ });
|
|
|
+ //4、我们把当前input标签的id属性remove
|
|
|
+ // $input.removeAttr("id");
|
|
|
+ //我们做个标记,再class中再添加一个类名就叫test
|
|
|
+ var newInput = '<input class="uploadImg test" type="file" name="file" multiple id="file">';
|
|
|
+ $(this).append($(newInput));
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ $(".hu").hover(function(){
|
|
|
+ $(this).parent().find('.hubil').css('display','block');
|
|
|
+ },function(){
|
|
|
+ $(this).parent().find('.hubil').css('display','none');
|
|
|
+ });
|
|
|
+ $(function(){
|
|
|
+ $(".footList").mCustomScrollbar({
|
|
|
+ autoHideScrollbar:true,
|
|
|
+ horizontalScroll:true
|
|
|
+ });
|
|
|
+// $(".ProjectContent").mCustomScrollbar({
|
|
|
+// autoHideScrollbar:true,
|
|
|
+// });
|
|
|
+
|
|
|
+ $(".statList").mCustomScrollbar({
|
|
|
+ autoHideScrollbar:true,
|
|
|
+ });
|
|
|
+ $("#memberInfo").mCustomScrollbar({
|
|
|
+ autoHideScrollbar:true,
|
|
|
+ });
|
|
|
+ $("#emailInfo").mCustomScrollbar({
|
|
|
+ autoHideScrollbar:true,
|
|
|
+ });
|
|
|
+ $(".tzDiv,.wtDiv").mCustomScrollbar({
|
|
|
+ autoHideScrollbar:true,
|
|
|
+ horizontalScroll:true
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ $('.jbk').click(function(){
|
|
|
+ var _this=$(this);
|
|
|
+ var src = _this.attr("data-src");
|
|
|
+ var $ProjectContent = $(".ProjectContent");
|
|
|
+ var $matrixGrid = $(".matrix-grid-div");
|
|
|
+ if(src){
|
|
|
+ var $grid = $(".matrix-grid");
|
|
|
+ var _src = $grid.prop("src");
|
|
|
+ if(_src.indexOf(src) == -1){
|
|
|
+ $.startProc();
|
|
|
+ $grid.prop("src",src);
|
|
|
+ $grid.one("load",function(){
|
|
|
+ $.endProc();
|
|
|
+ })
|
|
|
+ }
|
|
|
+ $ProjectContent.hide();
|
|
|
+ $matrixGrid.show();
|
|
|
+ }else{
|
|
|
+ $ProjectContent.show();
|
|
|
+ $matrixGrid.hide();
|
|
|
+ }
|
|
|
+ _this.parents().find('.jbk').removeClass('gai');
|
|
|
+ _this.addClass('gai');
|
|
|
+ });
|
|
|
+
|
|
|
+ //关注
|
|
|
+ $('.relAttetion').click(function(){
|
|
|
+ var _this=$(this);
|
|
|
+ var src=$(this).find('img').attr('src');
|
|
|
+ var data={referenceId:'7572638245089067614',type:"attention"};
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/attention/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:data,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state="success"){
|
|
|
+
|
|
|
+ getBehSummary();
|
|
|
+ if(src=='/pms_web/tc_suite/tapproject/images/icon_wdgz_nor.png'){
|
|
|
+ _this.find('img').attr('src','/pms_web/tc_suite/tapproject/images/icon_wdgz.png')
|
|
|
+ }else{
|
|
|
+ _this.find('img').attr('src','/pms_web/tc_suite/tapproject/images/icon_wdgz_nor.png')
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $.alert("关注失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ $.alert("关注失败!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+ //领导关注
|
|
|
+ $('.leaderAttention').click(function(){
|
|
|
+
|
|
|
+ var _this=$(this);
|
|
|
+ var src=$(this).find('img').attr('src');
|
|
|
+ var isLeader=false;
|
|
|
+ if(!!isLeader){//领导才有权限
|
|
|
+ var data={referenceId:'7572638245089067614',type:"leaderAttention"};
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/attention/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:data,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state="success"){
|
|
|
+ getBehSummary();
|
|
|
+ if(src == '/pms_web/tc_suite/tapproject/images/icon_wdgz.png'){
|
|
|
+ _this.find('img').attr('src','/pms_web/tc_suite/tapproject/images/icon_wdgz_nor.png')
|
|
|
+ }else{
|
|
|
+ _this.find('img').attr('src','/pms_web/tc_suite/tapproject/images/icon_wdgz.png')
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $.alert("关注失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ $.alert("关注失败!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ $("#add-problem").click(function () {
|
|
|
+
|
|
|
+ var referenceId='7572638245089067614';
|
|
|
+ $.dialog({
|
|
|
+ title : "新建",
|
|
|
+ max: true,
|
|
|
+ min: false,
|
|
|
+ content : 'url:/pms_web/tc/tapProject/addProblem/?type=new&referenceId='+referenceId,
|
|
|
+ width: ($(window).width()*0.5)+"px",
|
|
|
+ height: ($(window).height()*0.8)+"px",
|
|
|
+ lock : true,
|
|
|
+ parent : this,
|
|
|
+ button : [
|
|
|
+ {
|
|
|
+ "name":"保存",
|
|
|
+ callback:function(){
|
|
|
+ var _this = this;
|
|
|
+ var data=this.content.window.saveProblem();
|
|
|
+ data.submit=true;
|
|
|
+ data.type="new";
|
|
|
+
|
|
|
+ var datas=JSON.stringify(data);
|
|
|
+ if(!!data){
|
|
|
+ //往后台提交数据
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/addProblem/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:data,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state=="success"){
|
|
|
+ $.ok("保存成功!",function () {
|
|
|
+ window.location.reload();
|
|
|
+ _this.close();
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ $.alert("保存失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ console.log("保存失败!")
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ focus:true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ cancel:true
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+ $("#edit-problem").click(function () {
|
|
|
+
|
|
|
+ var referenceId='7572638245089067614';
|
|
|
+ var checks=[];
|
|
|
+ $('input[name="checkProblem"]:checked').each(function(){
|
|
|
+ checks.push($(this).val());//向数组中添加元素
|
|
|
+ });
|
|
|
+ if(checks.length<=0){
|
|
|
+ $.alert("请选中一个问题后进行编辑!");
|
|
|
+ return;
|
|
|
+ }else if(checks.length>=2){
|
|
|
+ $.alert("只能勾选一个问题进行编辑!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var problemId=checks[0];
|
|
|
+ $.dialog({
|
|
|
+ title : "编辑",
|
|
|
+ max: true,
|
|
|
+ min: false,
|
|
|
+ content : 'url:/pms_web/tc/tapProject/addProblem/?type=edit&problemId='+problemId+"&referenceId="+referenceId,
|
|
|
+ width: ($(window).width()*0.5)+"px",
|
|
|
+ height: ($(window).height()*0.8)+"px",
|
|
|
+ lock : true,
|
|
|
+ parent : this,
|
|
|
+ button : [
|
|
|
+ {
|
|
|
+ "name":"保存",
|
|
|
+ callback:function(){
|
|
|
+ var _this = this;
|
|
|
+ // 注意这里是临时保存
|
|
|
+ var data=this.content.window.saveProblem();
|
|
|
+ data.submit=true;
|
|
|
+ data.type="edit";
|
|
|
+ data.problemId=problemId;
|
|
|
+ if(!!data){
|
|
|
+ //往后台提交数据
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/addProblem/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:data,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state=="success"){
|
|
|
+ $.ok("修改成功!",function () {
|
|
|
+ window.location.reload();
|
|
|
+ _this.close();
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ $.alert("编辑失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ $.alert("编辑失败!")
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ focus:true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ cancel:true
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ function replyContent(problemId) {
|
|
|
+ var referenceId='7572638245089067614';
|
|
|
+ $.dialog({
|
|
|
+ title : "回复",
|
|
|
+ max: true,
|
|
|
+ min: false,
|
|
|
+ content : 'url:/pms_web/tc/tapProject/addProblem/?type=reply&problemId='+problemId+"&referenceId="+referenceId,
|
|
|
+ width: ($(window).width()*0.5)+"px",
|
|
|
+ height: ($(window).height()*0.8)+"px",
|
|
|
+ lock : true,
|
|
|
+ parent : this,
|
|
|
+ button : [
|
|
|
+ {
|
|
|
+ "name":"保存",
|
|
|
+ callback:function(){
|
|
|
+ var _this = this;
|
|
|
+ var data=this.content.window.saveProblem();
|
|
|
+
|
|
|
+ data.type="reply";
|
|
|
+ data.submit=true;
|
|
|
+ data.problemId=problemId;
|
|
|
+ if(!!data){
|
|
|
+ //往后台提交数据
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/addProblem/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:data,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state=="success"){
|
|
|
+
|
|
|
+ $.ok("回复成功!",function () {
|
|
|
+ window.location.reload();
|
|
|
+ _this.close();
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ $.alert("回复失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ $.alert("回复失败!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ focus:true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ cancel:true
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function superiorOpinion(problemId) {
|
|
|
+ $.dialog({
|
|
|
+ title : "领导批示",
|
|
|
+ max: true,
|
|
|
+ min: false,
|
|
|
+ content : 'url:/pms_web/tc_suite/tapproject/superiorOpinion.jsp',
|
|
|
+ width: ($(window).width()*0.4)+"px",
|
|
|
+ height: ($(window).height()*0.2)+"px",
|
|
|
+ lock : true,
|
|
|
+ parent : this,
|
|
|
+ button : [
|
|
|
+ {
|
|
|
+ "name":"保存",
|
|
|
+ callback:function(){
|
|
|
+ var _this = this;
|
|
|
+ var leaveContent=this.content.window.getSuperiorOpinionContent()
|
|
|
+
|
|
|
+ if(!leaveContent){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var data={leaveContent:leaveContent,referenceId:problemId,optionType:'21001009'};
|
|
|
+ if(!!data){
|
|
|
+ //往后台提交数据
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/leaveContent/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:data,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state=="success"){
|
|
|
+
|
|
|
+ $.ok("批示成功!",function () {
|
|
|
+ window.location.reload();
|
|
|
+ _this.close();
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ $.alert("批示失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ $.alert("批示失败!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ focus:true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ cancel:true
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function finishProblem(problemId) {
|
|
|
+ var referenceId='7572638245089067614';
|
|
|
+ $.dialog({
|
|
|
+ title : "回复",
|
|
|
+ max: true,
|
|
|
+ min: false,
|
|
|
+ content : 'url:/pms_web/tc/tapProject/addProblem/?type=finish&problemId='+problemId+"&referenceId="+referenceId,
|
|
|
+ width: ($(window).width()*0.5)+"px",
|
|
|
+ height: ($(window).height()*0.8)+"px",
|
|
|
+ lock : true,
|
|
|
+ parent : this,
|
|
|
+ button : [
|
|
|
+ {
|
|
|
+ "name":"保存",
|
|
|
+ callback:function(){
|
|
|
+ var _this = this;
|
|
|
+ var data=this.content.window.saveProblem();
|
|
|
+
|
|
|
+ data.type="finish";
|
|
|
+ data.submit=true;
|
|
|
+ data.problemId=problemId;
|
|
|
+ if(!!data){
|
|
|
+ //往后台提交数据
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/addProblem/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:data,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state=="success"){
|
|
|
+
|
|
|
+ $.ok("操作成功!",function () {
|
|
|
+ window.location.reload();
|
|
|
+ _this.close();
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ $.alert("操作失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ $.alert("操作失败!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ focus:true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ cancel:true
|
|
|
+ });
|
|
|
+ }
|
|
|
+ $("iframe:not(.matrix-grid)").on("load",function () {
|
|
|
+ var height = $(this.contentDocument).height();
|
|
|
+ $(this).attr("height",height);
|
|
|
+ $(".content").css("display", "flex");
|
|
|
+ //添加项目基础信息资金合计验证 by lix start
|
|
|
+ var doc = $(this.contentDocument);
|
|
|
+ var framename=$(this).attr("id");
|
|
|
+ if(fundsChecking=="1"&&framename=="project_summary"){
|
|
|
+ //准备需要合计的资金字段 1
|
|
|
+ var checkInputs=['inves_zhongy','inves_shengj','inves_shixj','inves_gfother','inves_self','inves_bank','inves_sfother',
|
|
|
+ 'inplace_zhongy','inplace_shengj','inplace_shixj','inplace_gfother','inplace_self','inplace_bank','inplace_sfother',
|
|
|
+ 'plan_zhongy','plan_shengj','plan_shixj','plan_budget1','plan_budget2','plan_dfbond','plan_carryied','plan_gfother','plan_self','plan_bank','plan_sfother'
|
|
|
+ ];
|
|
|
+ //求和验证分组 2
|
|
|
+ var checkMap = new Map();
|
|
|
+ checkMap.set("total_investment",['inves_zhongy','inves_shengj','inves_shixj','inves_gfother','inves_self','inves_bank','inves_sfother']);
|
|
|
+ checkMap.set("total_inplace",['inplace_zhongy','inplace_shengj','inplace_shixj','inplace_gfother','inplace_self','inplace_bank','inplace_sfother']);
|
|
|
+ checkMap.set("year_economic",['plan_zhongy','plan_shengj','plan_budget1','plan_budget2','plan_dfbond','plan_carryied','plan_gfother','plan_self','plan_bank','plan_sfother']);
|
|
|
+ checkMap.set("plan_shixj",['plan_budget1','plan_budget2','plan_dfbond']);
|
|
|
+
|
|
|
+ /* checkMap.set("plan_budget",['plan_budget1','plan_budget2']);
|
|
|
+ checkMap.set("plan_dfbond",['plan_dfbond1','plan_dfbond2']); */
|
|
|
+ //涉及到求和字段绑定验证事件 3
|
|
|
+ $.each(checkInputs,function(index,nvalue){
|
|
|
+ var inputs = doc.find("input[name='"+nvalue+"']");
|
|
|
+ if(inputs&&inputs.length>0){
|
|
|
+ $.each(inputs,function (i,n) {
|
|
|
+ // $(n).bind("keyup",function(){
|
|
|
+ $(n).bind("keyup",function(){
|
|
|
+ var field_name = $(n).attr("name");
|
|
|
+ var field_value = $(n).val();
|
|
|
+ checkMap.forEach(function(values,key){
|
|
|
+ //当前对应的合计字段存在,且当前字段存在对应验证分组内 需进行处理 求和 4
|
|
|
+ if(doc.find("input[name='"+key+"']").length>0 && values.indexOf(field_name)>=0){
|
|
|
+ var totalnum = 0;
|
|
|
+ $.each(values,function(dfindex,dfname){
|
|
|
+ var intstr = $(doc.find("input[name='"+dfname+"']")).val();
|
|
|
+ if(intstr && !isNaN(intstr) && intstr>0){//大于0累加
|
|
|
+ totalnum += parseInt(intstr);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $(doc.find("input[name='"+key+"']")).val(totalnum);
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ //添加项目基础信息资金合计验证 by lix end
|
|
|
+ });
|
|
|
+ function reload() {
|
|
|
+ window.location.reload();
|
|
|
+ }
|
|
|
+ //留言
|
|
|
+ function saveLeaveContent(){
|
|
|
+ var leaveContent=$(".leaveContent").val();
|
|
|
+ var str="";
|
|
|
+ $.each($("input[name=attachment]"),function () {
|
|
|
+ str+=$(this).attr("id")+","
|
|
|
+ })
|
|
|
+ var data={
|
|
|
+ leaveContent:leaveContent,
|
|
|
+ referenceId:'7572638245089067614',
|
|
|
+ optionType:'21001008',
|
|
|
+ fileIds:str,
|
|
|
+ majorProjects:true
|
|
|
+ };
|
|
|
+ if(!leaveContent){
|
|
|
+ $.alert("请输入批示信息");
|
|
|
+ }else{//验证通过
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/leaveContent/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:data,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state=="success"){
|
|
|
+ $.ok("留言成功!",function () {
|
|
|
+ $("#leaveContent").val("");
|
|
|
+ $("#addFiles").empty();
|
|
|
+ getBehSummary();
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ $.alert("留言失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ $.alert("留言失败!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ function report(phaseId,referenceId,memberId) {
|
|
|
+ var taskType = $("#taskType").val();
|
|
|
+ $.dialog({
|
|
|
+ title : "汇报",
|
|
|
+ max: true,
|
|
|
+ min: false,
|
|
|
+ content : 'url:/pms_web/tc/tapProject/reportInfoSet/?type=detail&phaseId='+phaseId+'&referenceId='+referenceId+'&memberId='+memberId+"&taskType="+taskType,
|
|
|
+ width:"700px",
|
|
|
+ height:"500px",
|
|
|
+ lock : true,
|
|
|
+ parent : this,
|
|
|
+ button : [
|
|
|
+ {
|
|
|
+ "name":"保存",
|
|
|
+ callback:function(){
|
|
|
+ var _this = this;
|
|
|
+
|
|
|
+ var params=this.content.window.saveReport();
|
|
|
+ if(!!params){
|
|
|
+ //往后台提交数据
|
|
|
+ $.ajax({
|
|
|
+ url: TC.config.baseUrl+"/tc/tapProject/saveReport/",
|
|
|
+ type: "post",
|
|
|
+ dataType: "json",
|
|
|
+ data:params,
|
|
|
+ traditional: true,
|
|
|
+ async: false,
|
|
|
+ success: function(result){
|
|
|
+ if(result.state=="success"){
|
|
|
+ $.ok("汇报成功!",function () {
|
|
|
+ _this.close();
|
|
|
+ window.location.reload();
|
|
|
+ })
|
|
|
+
|
|
|
+ }else{
|
|
|
+ $.alert("汇报失败!");
|
|
|
+ }
|
|
|
+ },error:function(){
|
|
|
+ console.log("汇报失败!")
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ focus:true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ cancel:true
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function remind(phaseId,referenceId) {
|
|
|
+ $.dialog({
|
|
|
+ id : 'searchPerson',
|
|
|
+ title : '发送催办',
|
|
|
+ max : false,
|
|
|
+ min : false,
|
|
|
+ width: "740px",
|
|
|
+ height: "350px",
|
|
|
+ content : "url:"+TC.config.baseUrl+"/tc/tapProject/remind/?referenceId="+referenceId+"&phaseId="+phaseId,
|
|
|
+ lock : true,
|
|
|
+ parent : this,
|
|
|
+ ok : function() {
|
|
|
+ var _this = this;
|
|
|
+ this.content.window.sendSignRemind(function(result,processBar){
|
|
|
+ processBar.close();
|
|
|
+ if (result.state=="success") {
|
|
|
+ $.ok(result.message,function(){
|
|
|
+ getBehSummary();
|
|
|
+ //window.location.reload();
|
|
|
+ });
|
|
|
+ _this.close();
|
|
|
+ } else {
|
|
|
+ $.ok(result.message,function(){
|
|
|
+ //window.location.reload();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ cancel : true
|
|
|
+ });
|
|
|
+ }
|
|
|
+ //取消按钮
|
|
|
+ var sidePanel = frameElement?frameElement.sidePanel:null;
|
|
|
+
|
|
|
+ $("#cancel").on("click",function(){
|
|
|
+ if(sidePanel){
|
|
|
+ sidePanel.close();
|
|
|
+ }else{
|
|
|
+ TC.ui.relocateResource("");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $(".openProblem").on("click",function () {
|
|
|
+ var problemId=$(this).attr("data-id");
|
|
|
+ top.addTab("","项目详情","/tc/tapProject/problemDetails?id="+problemId,'curSelect');
|
|
|
+ })
|
|
|
+ $(".narrow").click(function () {
|
|
|
+ $(this).toggleClass("sq");
|
|
|
+ if($(this).hasClass("sq")){
|
|
|
+ $(".content_right").css({
|
|
|
+ "width":"0px"
|
|
|
+ });
|
|
|
+ $(".content").css("padding-right","0");
|
|
|
+ $(this).find('img').css('transform','rotate(0)')
|
|
|
+ }else{
|
|
|
+ $(".content_right").css({
|
|
|
+ "width":"300px"
|
|
|
+ });
|
|
|
+ $(".content").css("padding-right","320px");
|
|
|
+ $(this).find('img').css('transform','rotate(180deg)')
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $(".op").on("click",function(){
|
|
|
+ var referenceId = $("#referenceId").val();
|
|
|
+ var referenceType = "21001008";
|
|
|
+ var url = "url:" + TC.config.baseUrl+"/tc/matrixData/labels/"+referenceType+"/"+referenceId;
|
|
|
+ var dialog = $.dialog({
|
|
|
+ id : 'taskExtTabSet',
|
|
|
+ title : '数据管理',
|
|
|
+ max : false,
|
|
|
+ min : false,
|
|
|
+ width:'700px',
|
|
|
+ height:'400px',
|
|
|
+ content : url,
|
|
|
+ lock : true,
|
|
|
+ parent : frameElement?frameElement.api:window,
|
|
|
+ button: [
|
|
|
+ {
|
|
|
+ name: '确定',
|
|
|
+ callback: function () {
|
|
|
+ var fieldList = new Array();
|
|
|
+ var objData = $(this.content.objData);
|
|
|
+ for(var i = 0;i<objData.length;i++){
|
|
|
+ fieldList.push(objData[i]);
|
|
|
+ }
|
|
|
+ var params = {
|
|
|
+ "fieldList[]" : fieldList,
|
|
|
+ "referenceId" : referenceId,
|
|
|
+ "referenceType" : referenceType
|
|
|
+ };
|
|
|
+ TC.util.postAjaxData(TC.config.baseUrl
|
|
|
+ + "/tc/matrixData/extTabSetSave/", params, function(result) {
|
|
|
+ if (result.state == "success") {
|
|
|
+ dialog.close();
|
|
|
+ window.location.reload();
|
|
|
+ } else {
|
|
|
+ $.dialog({
|
|
|
+ title : "系统提示",
|
|
|
+ icon : result.state + ".gif",
|
|
|
+ content : result.message,
|
|
|
+ lock : true,
|
|
|
+ parent : dialog,
|
|
|
+ ok : function(){
|
|
|
+ dialog.close();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ focus: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '关闭'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ });
|
|
|
+ });
|
|
|
+ $("#startProject").on("click",function () {
|
|
|
+
|
|
|
+ var id = $(this).attr("data-id");
|
|
|
+ var dataType = $(this).attr("data-type");
|
|
|
+ if(dataType == "begun"){
|
|
|
+ $.confirm("项目已开工,是否继续开工?",function () {
|
|
|
+ startProject(id);
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(!id){
|
|
|
+ $.alert("请选择需要开工的项目!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ startProject(id);
|
|
|
+ })
|
|
|
+ function startProject(id){
|
|
|
+ var param = {id : id};
|
|
|
+ $.ajax({
|
|
|
+ url : '/pms_web/tc/tapProject/startProject',
|
|
|
+ data : param,
|
|
|
+ type : "post",
|
|
|
+ dataType : "json",
|
|
|
+ success : function(d) {
|
|
|
+ if (d.state == "success") {
|
|
|
+ $.ok(d.msg,function(){
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
+
|
|
|
+ } else {
|
|
|
+ $.alert(d.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ </body>
|
|
|
+</html>
|
|
|
+<script>
|
|
|
+ $(function () {
|
|
|
+ $('.nav'). on('click','a',function () {
|
|
|
+ $('.nav .active').removeClass('active')
|
|
|
+ $(this).addClass('active')
|
|
|
+
|
|
|
+ var ids = $(this).attr('hrefurl');
|
|
|
+ var tolHeighr = $('.ProjectTittle').outerHeight(true)+$('.nav').outerHeight(true) + $(parent.document).find('.topTitle').outerHeight(true) - 91;
|
|
|
+ $(ids).prevAll().each(function (index,ele) {
|
|
|
+ tolHeighr += $(ele).outerHeight(true);
|
|
|
+ })
|
|
|
+ $(parent.window.document.body).find('.bodyCon').animate({scrollTop: tolHeighr },0);
|
|
|
+ })
|
|
|
+ //监听页面内容的高度变换
|
|
|
+ $('.ProjectContent').resize(function() {
|
|
|
+ $(parent.document.getElementsByTagName("iframe")).css("height",$('.ProjectContent').outerHeight(true)+$('.nav').outerHeight(true)+$('.ProjectTittle').outerHeight(true)+"px");
|
|
|
+ });
|
|
|
+ });
|
|
|
+ function changeType() {
|
|
|
+ var id=$("#referenceId").val();
|
|
|
+ var ids = [id];
|
|
|
+ var projectType='2993815614199646938';
|
|
|
+ $.dialog({
|
|
|
+ title : "修改计划",
|
|
|
+ max: true,
|
|
|
+ min: false,
|
|
|
+ content : 'url:/pms_web/tc/tapProject/plan?id='+id,
|
|
|
+ width:"900px",
|
|
|
+ height:"500px",
|
|
|
+ lock : true,
|
|
|
+ parent : this,
|
|
|
+ button : [
|
|
|
+ {
|
|
|
+ "name":"保存",
|
|
|
+ callback:function(){
|
|
|
+ var _this = this;
|
|
|
+ this.content.window.savePlan(1,ids,function(){
|
|
|
+ /* reloaddata(); */
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ focus:true
|
|
|
+
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ cancel:true
|
|
|
+ });
|
|
|
+ /* $.dialog({
|
|
|
+ title: $.i18n("common.add.records.label"),
|
|
|
+ max: false,
|
|
|
+ min: false,
|
|
|
+ content: 'url:/pms_web/tc/tapProject/findTaskPhase/?id='+id+'&projectType='+projectType,
|
|
|
+ width: 1000 + 'px',
|
|
|
+ height: 500 + 'px',
|
|
|
+ lock: true,
|
|
|
+ parent: this,
|
|
|
+ button: [
|
|
|
+ {
|
|
|
+ "name":'修改',
|
|
|
+ callback:function(re){
|
|
|
+ var _th = this;
|
|
|
+ var saveForm = this.content.window.getTaskSonPhase();
|
|
|
+ if(typeof saveForm != "boolean"){
|
|
|
+ var tmpPhases=JSON.stringify(saveForm);
|
|
|
+ savePhase(tmpPhases,id);
|
|
|
+ _th.close();
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ focus:true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }); */
|
|
|
+ }
|
|
|
+
|
|
|
+ // 保存阶段
|
|
|
+ function savePhase(projectPhases,ids) {
|
|
|
+ var param={
|
|
|
+ projectPhases:projectPhases,
|
|
|
+ ids:ids
|
|
|
+ };
|
|
|
+ TC.util.postAjaxData(TC.config.baseUrl+"/tc/tapProject/saveProjectPhase",
|
|
|
+ param,//参数
|
|
|
+ function(result){//正常回调
|
|
|
+ $.endProc();
|
|
|
+ window.location.reload();
|
|
|
+ },
|
|
|
+ true, //同步操作
|
|
|
+ "POST",//POST推送数据
|
|
|
+ function(){//异常回调
|
|
|
+ $.endProc();
|
|
|
+ document.getElementById('phaseInfo').contentWindow.location.reload();
|
|
|
+ // window.location.reload();
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ $("#editData").on("click",function(){
|
|
|
+ var referenceId = $("#referenceId").val();
|
|
|
+ var url = "url:" + TC.config.baseUrl+"/tc/tapProject/projectConfig?id="+referenceId;
|
|
|
+ var dialog = $.dialog({
|
|
|
+ title : '数据表配置',
|
|
|
+ max : false,
|
|
|
+ min : false,
|
|
|
+ width:'320px',
|
|
|
+ height:'430px',
|
|
|
+ content : url,
|
|
|
+ lock : true,
|
|
|
+ parent : frameElement?frameElement.api:window,
|
|
|
+ button: [
|
|
|
+ {
|
|
|
+ name: '保存',
|
|
|
+ callback: function () {
|
|
|
+ var _this = this;
|
|
|
+ this.content.window.save(function (result) {
|
|
|
+ if (result.data.msg=="success") {
|
|
|
+ _this.close();
|
|
|
+ window.location.reload();
|
|
|
+ } else {
|
|
|
+ $.alert(result.message);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+
|
|
|
+ },
|
|
|
+ focus: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '关闭'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ });
|
|
|
+ });
|
|
|
+ function repley(that){
|
|
|
+ $(that)[0].style.display="none";
|
|
|
+ $(that).parent().parent().find("span[name=show]")[0].style.display="";
|
|
|
+ }
|
|
|
+ function addFile(that){
|
|
|
+ TC.ui.rel.show({width:600,height:350,model:1 ,onSuccess:function(result) {
|
|
|
+ var fileResult = result.fileResult;
|
|
|
+ for(var i = 0; i < fileResult.length; i++) {
|
|
|
+ var file = fileResult[i];
|
|
|
+ addFileHtml(file,$(that).parent().parent().parent().find("div[name=addFiles]"));
|
|
|
+ }
|
|
|
+ }});
|
|
|
+ }
|
|
|
+
|
|
|
+ function cancel(that){
|
|
|
+ $(that).parent().parent().parent().parent().parent().parent().parent().parent().find("a[name=repley]")[0].style.display="";
|
|
|
+ $(that).parent().parent().parent().parent().parent().parent().parent()[0].style.display="none";
|
|
|
+ }
|
|
|
+
|
|
|
+ function saveContent(that){
|
|
|
+ var replyOpinion= $(that).parent().parent().parent().parent().parent().parent().find("textarea[name=opinion]").val();
|
|
|
+ var parentId= $(that).parent().parent().parent().parent().parent().parent().find("input[name=parentId]").val();
|
|
|
+ var projectId= $(that).parent().parent().parent().parent().parent().parent().find("input[name=projectId]").val();
|
|
|
+ var attachment=''
|
|
|
+ if(!replyOpinion){
|
|
|
+ $.alert("请输入回复信息");
|
|
|
+ }else{
|
|
|
+ $.each($(that).parent().parent().parent().parent().parent().parent().find("input[name=attachment]"),function () {
|
|
|
+ attachment+=$(this).attr("id")+",";
|
|
|
+ });
|
|
|
+ if(attachment!=''&&attachment!=null){
|
|
|
+ attachment=attachment.substring(0,attachment.length-1);
|
|
|
+ }
|
|
|
+ var progressBar = $.startProc("正在保存,请稍后...");
|
|
|
+ $.ajax({
|
|
|
+ type: "post",
|
|
|
+ url: "/pms_web/tc/tapProject/repleyContent",
|
|
|
+ data:{
|
|
|
+ "opinion":replyOpinion,
|
|
|
+ "parentId":parentId,
|
|
|
+ "projectId":projectId,
|
|
|
+ "attachment":attachment
|
|
|
+
|
|
|
+ },
|
|
|
+ success:function(message) {
|
|
|
+ progressBar.close();
|
|
|
+ getBehSummary();
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+</script>
|