فهرست منبع

Merge branch 'referMasterNew' into his/yiwufubao

liuqq 3 سال پیش
والد
کامیت
dcee8a45c7

+ 1 - 1
src/css/cdss.less

@@ -126,7 +126,7 @@ body{
 .emptyTxt{
     text-align: center;
     color: #999;
-    font-size: 12px;
+    font-size: 14px;
 }
 .loading{
     position: fixed;

+ 166 - 133
src/css/cdssHorizontal.less

@@ -1,37 +1,44 @@
 @import "./common.less";
 .bodyWrap {
-  /*padding: 0 0 0 43px;*/
   position: relative;
-  /*min-height: 244px;*/
-  height: 244px;
+  min-height: 100px;
   border-bottom: 1px solid #ebebeb;
-  /*min-width: 1127px;*/
   box-shadow: 1px 1px 5px 2px #ebebeb;
 }
 .versionWrapper {
-  /*display: inline-block;
   position: absolute;
-  left: 0px;*/
-  float: left;
-  width: 43px;
-  height: 100%;
-  background: @bgcBlue;
+  top:0;
+  right: 0;
+  width: 45px;
+  height: 100px;
+  background: url("../images/bg.png");
   color: #fff;
   font-size: 12px;
 }
 .versionTop {
-  /*position: absolute;
-  width: 100%;*/
-  height: 160px;
+  display: inline-block;
+  width: 10px;
+  height: 49px;
+  background: url("../images/copy.png");
   cursor: pointer;
+  margin: 3px 0 0 2px;
 }
 .versionBottom {
-  position: absolute;
-  /*width: 100%;*/
-  bottom: 0;
-  height: 70px;
-  font-size: 12px;
+  display: inline-block;
+  width: 40px;
+  height: 10px;
+  background: url("../images/vs.png");
   cursor: pointer;
+  margin: 29px 0 0 3px;
+}
+.versionNew{
+  display: inline-block;
+  width: 24px;
+  height: 12px;
+  background: url("../images/new1.png");
+  position: absolute;
+  top: 70px;
+  left: 19px;
 }
 .pushDisclaimer {
   display: inline-block;
@@ -57,58 +64,55 @@
   left: 7px;
 }
 .tabList {
-  width: 100%;
-  height: 34px;
-  background-color: #fff;
+  float: left;
+  width: 70px;
+  height: 100%;
+  min-height: 100px;
+  text-align: center;
   color: #333333;
   //   box-sizing: border-box;
   z-index: 99;
-  border-bottom: 4px solid #e6e7e8;
+  border-right: 1px solid @bgcBlue;
 }
 .tab {
-  position: relative;
-  width: 106px;
-  height: 34px;
-  line-height: 34px;
-  background: #ffffff;
+  width: 60px;
+  height: 20px;
+  font-size:12px;
   cursor: pointer;
   text-align: center;
-  float: left;
+  margin:4px 5px;
 }
 .tabName {
-  display: inline-block;
   text-align: center;
 }
 .activeTab {
   font-weight: 500;
-  background: #e3f0ff;
   color: @bgcBlue;
-}
-.activeLine {
-  display: none;
-  position: absolute;
-  left: 0;
-  bottom: 0;
-  width: 106px;
-  height: 4px;
-  background: #4f9ff3;
+  background:@pushBgColor;
+  position: relative;
+  &:after{
+    content: '';
+    width: 5px;
+    height: 11px;
+    background: url("../images/ar.png") no-repeat;
+    display: block;
+    position: absolute;
+    top: 4px;
+    left: 60px;
+  }
 }
 .contentBox {
-  /*position: absolute;
-  left: 43px;*/
-  margin-left: 43px;
-  height: 100%;
-  // overflow-y: auto;
+  margin:0 46px 0 72px;
 }
 .moduleWrapper {
   /*position: absolute;
-  width: 100%;*/
-  height: 202px;
+  width: 100%;
+  height: 202px;*/
 }
 .leftWrapper,
 .rightWrapper {
   position: relative;
-  height: 206px;
+  height: 100px;
   display: inline-block;
   box-sizing: border-box;
   overflow-y: auto;
@@ -117,7 +121,7 @@
   width: 60%;
   // border-right: 1px solid #E6E6E6;
   float: left;
-  padding: 10px 10px 0 10px;
+  padding: 2px 10px 0 10px;
   box-sizing: border-box;
 }
 .rightWrapper {
@@ -130,6 +134,9 @@
 .leftBox,
 .rightBox {
   position: relative;
+  p{
+    font-size: 12px;
+  }
 }
 .moduleWrapper {
   display: none;
@@ -137,7 +144,10 @@
 .moduleItem {
   padding: 0 0 0 110px;
   box-sizing: border-box;
-  line-height: 27px;
+  line-height: 21px;
+  span,div{
+    font-size: 12px;
+  }
   &:hover {
     background: #f6f6f6;
   }
@@ -145,30 +155,27 @@
 .moduleItemTitBox {
   display: inline-block;
   width: 110px;
-  height: 27px;
+  height: 21px;
   box-sizing: border-box;
   position: absolute;
   left: 0;
-  margin-top: -1px;
+  margin-top: -2px;
 }
 .casewriting .moduleItemTitBox .moduleTitle {
   color: @colorWaring;
 }
 .titleIcon {
   width: 18px;
-  margin: 0px 5px 0 5px;
+  margin: 0px 0px 0 5px;
   position: relative;
   top: 4px;
 }
 .treatIcon {
-  width: 20px;
+  width: 14px;
   position: relative;
-  top: 4px;
+  top: 2px;
   margin-right: 6px;
 }
-.infoImg {
-  width: 15px;
-}
 .moduleTitle {
   font-size: 14px;
   font-weight: 500;
@@ -183,20 +190,17 @@
 .warning .moduleTitle {
   color: #fff;
   background: #ff7f5b;
-  width: 83px;
-  height: 21px;
-  line-height: 21px;
+  width: 62px;
+  height: 17px;
+  line-height: 17px;
   margin-top: 4px;
   img {
-    width: 16px;
+    width: 12px;
     vertical-align: top;
     margin-top: -1.5px;
-    margin-right: 13px;
+    margin-right: 7px;
   }
 }
-.warning {
-  margin-bottom: 10px;
-}
 .warning .moduleItemTitBox {
   width: 83px;
 }
@@ -207,12 +211,12 @@
   //   color: #1677FF;
 }
 .infoImg {
-  width: 15px;
+  width: 11px;
   position: absolute;
-  top: 7px;
+  top: 5px;
   cursor: pointer;
   display: none;
-  right: 2px;
+  right: 4px;
 }
 .pushItemBox:hover {
   .infoImg {
@@ -220,7 +224,7 @@
   }
 }
 .searchBox {
-  margin: 30px 0 0 30px;
+  margin: 38px 0 0 30px;
 }
 .search {
   color: @bgcBlue;
@@ -235,9 +239,10 @@
   .moduleTitle {
     position: absolute;
     top: 0;
-    font-size: 14px;
+    font-size: 12px;
     /*font-weight: 600;*/
     color: @colorWaring;
+    left: -4px;
   }
 }
 .moduleItem.crivalue,
@@ -262,7 +267,7 @@
     color: @colorWaring;
     display: inline-block;
     border: 1px solid @colorWaring;
-    line-height: 18px;
+    line-height: 16px;
     top: 5px;
     padding: 0 7px;
     border-radius: 9px;
@@ -279,7 +284,7 @@
   display: inline-block;
   cursor: pointer;
   float: right;
-  line-height: 27px;
+  line-height: 21px;
   color: #3b9ed0;
   position: relative;
   right: 5px;
@@ -289,10 +294,12 @@
   display: inline-block;
   cursor: pointer;
   position: absolute;
-  line-height: 27px;
+  line-height: 21px;
   color: @bgcBlue;
   right: 5px;
-  bottom: 0;
+  bottom: -3px;
+  background: #fff;
+  font-size: 12px;
 }
 .longStrBox {
   max-height: 180px;
@@ -326,22 +333,22 @@
   left: 0;
   font-size: 12px;
   color: @bgcBlue;
-  //   background: #e2eaf2;
-  border: 0px;
   display: inline-block;
   line-height: 16px;
-  border-radius: 2px;
   top: 4px;
-  padding: 2px 5px;
+  padding: 0px 5px;
   border-radius: 9px;
   border: 1px solid @bgcBlue;
 }
 .rightBoxTitle {
-  height: 36px;
-  line-height: 36px;
+  height: 22px;
+  line-height: 22px;
   color: #2fc6c7;
   border-bottom: 1px solid #e6e6e6;
   font-weight: 600;
+  span{
+    font-size: 12px;
+  }
 }
 .versionIcon {
   width: 12px;
@@ -360,12 +367,6 @@
   position: relative;
   top: -5px;
 }
-
-/*.medicine .titleIcon, .operation .titleIcon, .general .titleIcon, .nurse .titleIcon {
-    width: 13px;
-    position: relative;
-    top: 2px;
-}*/
 .moduleItem.casewriting {
   padding: 0 0 0 160px;
   // background: rgba(60,172,228,.17);
@@ -396,15 +397,19 @@
 .showMoreGeneralTreat {
   position: absolute;
   cursor: pointer;
-  color: #3b9ed0;
+  color: @bgcBlue;
   right: 0px;
-  bottom: 0px;
+  bottom: 0;
   background: #fff;
 }
 .generalTreatInfo {
   position: relative;
   padding: 0 28px 0 0;
   color: @fontColor;
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 4;
+  overflow: hidden;
   ol li {
     list-style: decimal;
     list-style-position: inside;
@@ -422,23 +427,23 @@
   }
 }
 .disName {
-  font-size: 14px;
+  font-size: 12px;
   color: #1e1e1e;
-  margin: 10px 0;
+  margin: 3px 0 0;
   font-weight: 600;
 }
 .followUpWrap {
   /*position: absolute;*/
   width: 100%;
-  height: 202px;
-  padding: 10px 20px;
+  height: 100px;
+  padding: 0 20px;
   box-sizing: border-box;
   overflow-y: auto;
 }
 .operaNameBox {
   background-color: #eff1f6;
-  height: 27px;
-  line-height: 27px;
+  height: 21px;
+  line-height: 21px;
   color: #777777;
   padding-left: 10px;
 }
@@ -455,7 +460,7 @@
   color: @fontColor;
   .infoBox {
     padding-left: 10px;
-    padding-top: 8px;
+    padding-top: 3px;
     box-sizing: border-box;
     &:hover {
       background-color: #fff;
@@ -464,26 +469,27 @@
   .infoBox p {
     color: #1e1e1e;
     font-weight: bold;
-    margin-bottom: 10px;
+    font-size: 12px;
+    margin-bottom: 5px;
   }
 }
 .medicalKonwledgeWrap {
-  height: 202px;
+  height: 100px;
   overflow: auto;
 }
 .readMorePlan {
-  margin-top: 20px;
+  margin-top: 10px;
   padding-left: 10px;
-  width: 116px;
-  height: 28px;
-  line-height: 28px;
+  width: 98px;
+  height: 21px;
+  line-height: 21px;
   background: #e7f1ff;
   border-radius: 2px;
   cursor: pointer;
   a {
     list-style: none;
     display: inline-block;
-
+    font-size: 12px;
     color: @bgcBlue;
   }
   img {
@@ -501,18 +507,21 @@
     position: absolute;
     left: 0;
     top: 0px;
-    width: 62px;
-    height: 22px;
-    line-height: 22px;
+    width: 50px;
+    height: 18px;
+    line-height: 18px;
     border-radius: 4px;
     color: @bgcBlue;
     border: 1px solid @bgcBlue;
     text-align: center;
     font-size: 12px;
     img {
-      width: 15px;
-      height: 15px;
-      margin-bottom: -1.5px;
+      width: 12px;
+      height: 12px;
+      margin-bottom: -1px;
+    }
+    span{
+      font-size: 12px;
     }
   }
 }
@@ -538,23 +547,23 @@
   display: none;
   .title {
     float: left;
-    height: 30px;
+    height: 20px;
     padding: 0 12px;
-    margin-top: 9px;
+    margin-top: 3px;
     border-radius: 8px 8px 0px 0px;
     img {
       vertical-align: middle;
-      width: 20px;
-      height: 20px;
+      width: 14px;
+      height: 14px;
       margin-top: -1.5px;
     }
     .h2 {
-      font-size: 14px;
+      font-size: 12px;
       color: @bgcBlue;
     }
     .go {
       margin-right: 10px;
-      font-size: 14px;
+      font-size: 12px;
       color: #1677ff;
       text-decoration: none;
       cursor: pointer;
@@ -568,9 +577,9 @@
   .go-btn,
   .go-push {
     display: inline-block;
-    width: 80px;
-    height: 25px;
-    line-height: 25px;
+    width: 60px;
+    height: 17px;
+    line-height: 17px;
     border-radius: 4px;
     text-align: center;
     background: #e7f1ff;
@@ -581,6 +590,7 @@
     .infos {
       .label {
         color: #333;
+        font-size: 12px;
       }
       .val {
         color: #666;
@@ -597,10 +607,10 @@
       }
     }
     .infos {
-      height: 24px;
+      height: 20px;
     }
     .detail {
-      padding: 0 8px 27px 4px;
+      padding: 0 8px 0 4px;
       margin-right: 20px;
       max-height: 125px;
       overflow-y: hidden;
@@ -610,10 +620,12 @@
         width: 60px;
         position: absolute;
         left: 502px;
-        bottom: 4px;
+        bottom: 0;
+        font-size: 12px;
+        background: none;
       }
       li {
-        margin-bottom: 6px;
+        margin-bottom: 2px;
         &:hover {
           background: #f6f6f6;
         }
@@ -624,11 +636,13 @@
         padding-left: 5px;
         line-height: 12px;
         margin-top: 4px;
+        font-size: 12px;
       }
       .val {
         margin-left: 65px;
         .name {
           color: #333;
+          font-size: 12px;
         }
         .desc {
           color: #666;
@@ -648,11 +662,12 @@
       width: 100%;
       border: 1px @bgcBlue solid;
       color: @bgcBlue;
-      height: 30px;
-      line-height: 30px;
+      font-size: 12px;
+      height: 21px;
+      line-height: 21px;
       border-radius: 4px;
       cursor: pointer;
-      background: url("../images/go.png") 94% center no-repeat;
+      background: url("../images/go.png") 92% center no-repeat;
       text-indent: -8px;
       text-decoration: none;
     }
@@ -662,11 +677,9 @@
 .recipe {
   .title {
     width: 124px;
-    margin-top: 9px;
   }
   .content {
     margin-left: 146px;
-    padding-top: 9px;
   }
 }
 
@@ -700,8 +713,7 @@
 
 .knowledge .content p {
   display: inline-block;
-  width: 88px;
-  margin-top: 8px;
+  width: 83px;
   margin-right: 10px;
   text-align: center;
 }
@@ -719,20 +731,25 @@
   font-weight: 500;
 }
 .tcmWarp {
-  padding-bottom: 10px;
   box-sizing: border-box;
   overflow: auto;
 }
 .empty-box{
   text-align: center;
-  margin-top: 22px;
   display: none;
+  padding-top: 8px;
+  .emptyImg{
+    width: 100px;
+  }
+  .emptyTxt{
+    font-size: 12px;
+  }
 }
 .loading{
    position: fixed;
    width: 100%;
    left: 0;
-   top: 82px;
+   top: 44px;
    z-index: 100;
    display: none;
  }
@@ -746,9 +763,25 @@
   -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=50);";
 }
 .loadingImg{
-  width: 40px;
+  width: 30px;
   position: absolute;
   left: 50%;
   top: 50%;
-  margin: -20px 0 0 -20px;
+  margin: -15px 0 0 -15px;
+}
+
+.bodyWrapHorizontal ::-webkit-scrollbar{
+  /*滚动条整体样式*/
+  width: 4px;
+  /*高宽分别对应横竖滚动条的尺寸*/
+  height: 4px;
+  background: #fff;
+  -webkit-box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.2);
+}
+.bodyWrapHorizontal ::-webkit-scrollbar-thumb{
+  /*滚动条里面小方块*/
+  width: 4px;
+  height: 4px;
+  border-radius: 3px;
+  background: #ccc;
 }

+ 11 - 7
src/css/followUpV.less

@@ -3,7 +3,7 @@
 .operaNameBox{
     background: #EFF1F6;
     line-height: 22px;
-    padding: 5px 6px 5px 9px;
+    padding: 3px 6px 3px 9px;
     font-size: 12px;
     color: @txtColor;
     border-radius: 2px;
@@ -26,9 +26,6 @@
     border-radius: 12px;
     cursor: pointer;
 }
-.infoWrap{
-    overflow-y: auto;
-}
 .infoBoxTitle{
     line-height: 32px;
     color: @markFontColor;
@@ -102,11 +99,18 @@
     margin-top: 162px;
     text-align: center;
 }
-.bodyWrapHorizontal .followUpWrap .emptyBox{
-    margin-top: 16px;
+.bodyWrapHorizontal .followUpWrap {
+    .emptyBox{
+        margin-top: 0;
+    }
+    .emptyTxt{
+        font-size: 12px;
+    }
+    .emptyImg {
+        width: 100px;
+    }
 }
 .followUpWrap .emptyImg{
-    position: relative; 
     left: 0; 
     margin-left: 0;
 }

+ 8 - 17
src/html/cdssHorizontal.html

@@ -15,22 +15,8 @@
 
 <body>
   <div class="bodyWrap bodyWrapHorizontal clearfix">
-      <div class="versionWrapper">
-        <span class="versionTop">
-          <span class="pushDisclaimer">智能推送仅供参考 </span>
-          <span class="logoTxt"> &copy;朗通医疗</span>
-        </span>
-        <span class="versionBottom">
-          <span class="versionTxt">版本说明</span>
-          <span ><img class="versionIcon" src="./images/new2.png" alt=""></span>
-        </span>
-       
-      </div>
-      
-      <div class="contentBox">
-        <div class="tabList">
-
-        </div>
+      <div class="tabList"></div>
+      <div class="contentBox clearfix">
         <div class="recommendWrap moduleWrapper clearfix">
           <div class="empty-box empty-right">
             <img class="emptyImg" src="../images/icon_admin.png" alt="空">
@@ -41,7 +27,7 @@
             <p class="emptyTxt">暂无推送内容</p>
           </div>
           <div class="empty-box loading">
-          <div class="loadingMask"></div>
+          <!--<div class="loadingMask"></div>-->
           <img class="loadingImg" src="../images/loading.gif" alt="loading">
           <!-- <p class="loadingTxt">loading~</p> -->
         </div>
@@ -123,6 +109,11 @@
          </div>
         </div>
       </div>
+    <div class="versionWrapper">
+      <span class="versionTop"></span>
+      <span class="versionNew"></span>
+      <span class="versionBottom"></span>
+    </div>
   </div>
 </body>
 

+ 6 - 1
src/html/smartAlert.html

@@ -33,6 +33,11 @@
       height: 60px;
       line-height: 60px;
     }
+    .titleH1 img{
+      vertical-align: middle;
+      margin-right: 4px;
+      margin-bottom: 3px;
+    }
     .content{
       padding:20px 0 0 60px;
     }
@@ -78,7 +83,7 @@
 
 <body>
   <div class="container">
-    <h1 class="titleH1">智能警示</h1>
+    <h1 class="titleH1"><img src="../images/icon_warn1.png" alt="">智能警示</h1>
     <div class="content">
 
     </div>

BIN
src/images/ar.png


BIN
src/images/bg.png


BIN
src/images/copy.png


BIN
src/images/new1.png


BIN
src/images/vs.png


+ 30 - 28
src/js/cdss.js

@@ -53,8 +53,8 @@ let moduleConfig={
     followup: "followUpWrap",
     tcmiss: 'tcmWarp',
 }
-let allInterface = 0
-let hasCompleteTnterface = 0
+let allInterface = 0;  //需要调用的推送接口的个数
+let hasCompleteTnterface = 0;     //已返回的推送接口的个数
 let moduleNum = 0
 let mrId = getUrlArgObject('mrId')
 let isTcm = getUrlArgObject('isTcm')
@@ -241,7 +241,6 @@ function renderPage(pageSet){
   const hasMedical = hasTab("医学知识",setInfo)
   const hasFollowUp = hasTab("随访计划",setInfo)
   const hasTcm = hasTab("中医辅助", setInfo);
-  console.log(hasFollowUp)
   //所有模块都未开启配置,显示功能未开启(无tab)
   if(hasAuxiliary.status===0&&hasMedical.status===0&&hasFollowUp.status===0&&hasTcm.status===0){
     const nullTxt = `<div class="empty-box" style="left: -20px;display: block;">
@@ -304,12 +303,9 @@ function renderPushData(){
       let medicinesPush = result.medicines || []
       let operationsPush = result.operations ||[]
       let treatPush = result.treat&&result.treat[0] ||{}
-        let nursePush = result.nurse || []
+      let nursePush = result.nurse || []
       treatDisName = treatPush&&treatPush["name"]
       let generaTreatPush = treatPush&&treatPush["generaTreat"]
-      // let lisPush =[{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
-      // let pacsPush = [{name:"胸部x射线",hisNameList:null},{name:"心电图",hisNameList:null}]
-      // let checkupPush = [{name:"神志表情",hisNameList:null},{name:"面部表情",hisNameList:null}]
       let lisNum = $(".moduleItem.lis").attr("data-num") || 5
       let scaleNum = $(".moduleItem.evaluation").attr("data-num") || 5
       let pacsNum = $(".moduleItem.pacs").attr("data-num") || 5
@@ -317,7 +313,7 @@ function renderPushData(){
       let symptomNum = $(".moduleItem.symptom").attr("data-num") || 5
       let medicinesNum = $(".moduleItem.medicine").attr("data-num") || 5
       let operationsNum = $(".moduleItem.operation").attr("data-num") || 5
-        let nurseNum = $(".moduleItem.nurse").attr("data-num") || 5
+      let nurseNum = $(".moduleItem.nurse").attr("data-num") || 5
      
 
       renderLis(lisPush,lisNum)
@@ -332,9 +328,9 @@ function renderPushData(){
       renderNurse(nursePush, nurseNum)
       bindOpenInfo()
       moreInfo()
-      bindSlide()
-      empty();  //判断是否显示空状态
+      bindSlide();
     }
+    empty();  //判断是否显示空状态
   })
 }
 function adjustHei(){
@@ -384,14 +380,11 @@ function renderPushWarning(){
       $(".loading").hide();
     hasCompleteTnterface++
     if(res.data.code == '0'){
-      const result = res.data.data
+      const result = res.data.data;
       let billMsgList = result.billMsgList || []  //开单合理性提醒
       let highRiskList = result.highRiskList || []  //高危药品、手术
       let criticalValList = result.criticalValList || []  //危急值提醒
-      let noteList = result.noteList || []  //检查内容注意事项
-      let dubugStr = result.dubugStr || []  //注意调试信息
       let otherList = result.otherList || []  //其他提醒
-        //$('.moduleItem.crivalue').append(titleStr('warning'))
       renderBillingPush(billMsgList,'开单合理性提醒','rationali')
       renderBillingPush(highRiskList,'高风险提示','highrisk')
       renderBillingPush(criticalValList,'危急值提醒','crivalue')
@@ -401,8 +394,8 @@ function renderPushWarning(){
       $(".moduleItem.tips").wrapAll("<div class='tips-cont'></div>");
         updatePopNum();
       $(titleStr('warning')).insertBefore('.tips-cont .moduleItem:first-child')
-      empty();
     }
+    empty();
   })
 }
 function renderWriteStandard(){
@@ -418,7 +411,7 @@ function renderWriteStandard(){
 }
 
 function  renderwriteStandardPage(list,casewritingNum){
-  let arr = Object.keys(list)
+  let arr = Object.keys(list);
   if(arr.length > 0 &&  $(".moduleItem.casewriting").length > 0){
     moduleNum++
     $(".moduleItem.casewriting").append(titleStr("casewritingPush"))
@@ -445,8 +438,8 @@ function  renderwriteStandardPage(list,casewritingNum){
     $('.moduleItem.casewriting').css("display","block")
     updatePopNum();
     bindSlideCaseWriting()
-    empty();
   }
+  empty();
 }
 function renderBillingPush(list,name,code){
   if(list.length === 0){
@@ -689,10 +682,7 @@ function renderModuleWrapper(moduleList){
         moduleStr += `<div class="moduleItem ${moduleList[i].code }"  data-num="${moduleList[i].number}" style="display:none"></div>`
       }
     }
-   
   }
-  //console.log(moduleList,moduleStr)
-
   $(".recommendWrap").append(moduleStr)
 }
 
@@ -785,13 +775,25 @@ function bindGeneralSlide(){
 
 //显示空状态
 function empty(){
-    setTimeout(function(){
-        ifInputParam = hasInputParam();
-        if(!ifInputParam){    //没有输入数据时
-            $(".recommendBox .empty-box").hide();
-            $(".recommendBox .empty").show();
-            return;
-        }
+    ifInputParam = hasInputParam();
+    if(!ifInputParam){    //没有输入数据时
+        $(".recommendBox .empty-box").hide();
+        $(".recommendBox .empty").show();
+        return;
+    }
+    if(hasCompleteTnterface===allInterface){    //需调的推送接口全部返回后
+        setTimeout(function(){
+            const emptyShownBox = $('.recommendWrap .empty-box:visible').length;
+            const configShownBox = $('.recommendWrap .moduleItem:visible').length;
+            if(configShownBox===0&&emptyShownBox===0){       //有配置但没数据
+                $('.empty-box').hide();
+                $('.recommendBox .empty-null').show();
+                return;
+            }
+            $(".empty-box").hide();
+        },200);
+    }
+    /*setTimeout(function(){
         const emptyShownBox = $('.recommendWrap .empty-box:visible').length;
         const configShownBox = $('.recommendWrap .moduleItem:visible').length;
         if(configShownBox===0&&emptyShownBox===0){       //有配置但没数据
@@ -800,7 +802,7 @@ function empty(){
             return;
         }
         $(".empty-box").hide();
-    },200);
+    },200);*/
 }
 
 $(function(){

+ 11 - 13
src/js/cdssHorizontal.js

@@ -124,7 +124,7 @@ function renderPage(pageSet) {
   const planDetail = hasAuxiliary.planDetails;
   const configs = planDetail.filter((it)=>it.status!==0)||[];
   if(!configs[0]){         //没有开启辅助信息各项配置
-      $('.empty-box').hide();
+      $('.empty-box,.leftWrapper').hide();
       $('.recommendWrap .empty-right').show();
       return;
   }
@@ -158,14 +158,13 @@ function renderTab(tabList) {
   for (let i = 0; i < tabList.length; i++) {
     if (tabList[i].status == '1') {
       TabNum++
-      tabStr += `<span class="tab" data-name="${tabList[i].code}" ><span class="tabName">${tabList[i].name}</span><span class="activeLine"></span></span>`
+      tabStr += `<div class="tab" data-name="${tabList[i].code}" ><span class="tabName">${tabList[i].name}</span></div>`
     }
 
   }
   $(".tabList").append(tabStr)
   $(".tabList .tab").eq(0).addClass("activeTab")
   $(".tabList .tab").eq(0).addClass("activeTab")
-  $(".tabList .tab .activeLine").eq(0).css({ display: "block" })
   // $(".tabList .tab").css("height", 1 / TabNum * 100 + '%')
   let showModuleName = $(".tabList .tab").eq(0).attr("data-name")
   getModuleShow(moduleConfig[showModuleName])
@@ -242,9 +241,7 @@ function isNeedwriteStandardPush(list) {
 function bindTabClick() {
   $(".tabList .tab").on("click", function () {
     $(".activeTab").removeClass("activeTab")
-    $(".tabList .tab .activeLine").css({ display: "none" })
     $(this).addClass("activeTab")
-    $(this).find('.activeLine').css({ display: "block" })
     const moduleName = $(this).attr("data-name")
     getModuleShow(moduleConfig[moduleName])
   })
@@ -332,14 +329,15 @@ function renderPushData() {
           $(".leftWrapper").css({"width":'0','padding':'0'});
           $(".rightWrapper").css("width",'100%');
         }
-      } else {
+      } else if($(".leftWrapper .moduleItem:visible").length!==0) {console.log(2)
         $(".empty-box").hide();
         $(".leftWrapper").css({
           borderRight: "0px",
           width: "100%"
         })
       }
-      if ((!$(".moduleItem.medicine") && !$(".moduleItem.operation") && !(".moduleItem.general")) || ($(".moduleItem.general").length === 0 && $(".moduleItem.medicine").length === 0 && $(".moduleItem.operation").length === 0 && $(".moduleItem.nurse").length === 0)) {
+      if ($(".moduleItem.general,.moduleItem.medicine,.moduleItem.operation,.moduleItem.nurse").length === 0&&$(".leftWrapper .moduleItem:visible").length!==0) {
+          console.log(3)
         $(".rightWrapper").css("display", "none")
         $(".empty-box").hide();
         $(".leftWrapper").css({
@@ -362,15 +360,15 @@ function renderPushData() {
   })
 }
 function empty(){   //显示空状态
-  setTimeout(function(){
-      if(!$(".rightWrapper .rightBoxTitle").html()){
+  setTimeout(function(){console.log(!$(".rightWrapper .rightBoxTitle").html(),$(".leftWrapper .moduleItem:visible").length===0)
+      if((!$(".rightWrapper .rightBoxTitle").html())&&$(".leftWrapper .moduleItem:visible").length!==0){console.log(4)
           $(".leftWrapper").css({
               borderRight: "0px",
               width: "100%"
           })
       }
       if($(".tabList .tab:first-child").is(".activeTab")&&$(".empty-right:visible").length===0&&$(".moduleItem:visible").length===0){
-          $(".empty-box").hide();
+          $(".empty-box,.leftWrapper").hide();
           $(".empty-null").show();
       }
   },300);
@@ -472,7 +470,7 @@ function rendergeneraTreatPush(list) {
       }
     })
 
-
+      console.log($(".generalTreatInfo").text())
     $(".moduleItem.general").css("display", "block")
   }
 }
@@ -664,7 +662,7 @@ function bindSlide() {
       longBox.css("display", "block")
     let location = longBox.attr("data-location")
     let scrollTop = getLongTop(location)
-      const n = -10 + Number(scrollTop)>-1?(-10 + Number(scrollTop)):0;
+      const n = Number(scrollTop)-2>-1?Number(scrollTop)-2:0;
       longBox.css("top", n + "px")
   })
   $(".showLess").off("click").on("click", function () {
@@ -751,7 +749,7 @@ function addScrollEvent() {
 
     if ($(".leftWrapper .longStrBox:visible").length) {
         const n = Number(getLongTop("left")) -10>-1?(Number(getLongTop("left")) -10):0;
-      $(".leftWrapper .longStrBox:visible").css("top", Number(getLongTop("left")) -10 + "px")
+      $(".leftWrapper .longStrBox:visible").css("top", Number(getLongTop("left")) -2 + "px")
     }
   }, 100));
   $(`.rightWrapper`).off("scroll").scroll(throttle(function () {

+ 2 - 2
src/js/followUp.js

@@ -56,10 +56,10 @@ function renderDetailHorizontal(data) {
         let pacsStr = ``
         let title = `<p>${getTime(item.examineDate)}(${item.description && (item.description)})</p>`
         for (let i = 0; i < lisArr.length; i++) {
-            lisStr += `<div style="position:relative"><span class="circle"></span>${lisArr[i]}</div>`
+            lisStr += `<div style="position:relative;font-size: 12px"><span class="circle"></span>${lisArr[i]}</div>`
         }
         for (let i = 0; i < pacsArr.length; i++) {
-            pacsStr += `<div style="position:relative"><span class="circle"></span>${pacsArr[i]}</div>`
+            pacsStr += `<div style="position:relative;font-size: 12px"><span class="circle"></span>${pacsArr[i]}</div>`
         }
         str += `<div class="infoBox">
             ${title}

+ 1 - 0
src/js/smartAlert.js

@@ -1,6 +1,7 @@
 const $ = require("jquery");
 const { post,config,getUrlArgObject } = require('./promise.js');
 require('./../images/dot.png').replace(/^undefined/g, '')
+require('./../images/icon_warn1.png').replace(/^undefined/g, '')
 let mrId = getUrlArgObject('mrId')
 let hospitalIdUrl = getUrlArgObject('hospitalId') || ''
 const codes = getUrlArgObject('codes') || ''

+ 4 - 1
src/js/tcmiss.js

@@ -92,7 +92,10 @@ function getTcmData(param, config) {
 function renderTcm(data, num = 3) {
     let str = ``, it;
     $("#goTreat").hide();
-    const n = num < data.length ? num : data.length;
+    let n = num < data.length ? num : data.length;
+    if($(".horizontal-detail").length){
+        n=1;
+    }
     for (let i = 0; i < n; i++) {
         it = data[i];
         str += `<li class="clearfix"><div class="label">处方${i + 1}:</div>