1178232204@qq.com %!s(int64=3) %!d(string=hai) anos
pai
achega
5860961f8e
Modificáronse 7 ficheiros con 790 adicións e 694 borrados
  1. 422 378
      src/css/cdss.less
  2. 134 119
      src/html/cdss.html
  3. BIN=BIN
      src/images/choice.png
  4. 0 1
      src/js/cdss.js
  5. 113 111
      src/js/promise.js
  6. 120 84
      src/js/staticSearch.js
  7. 1 1
      webpack.config.js

+ 422 - 378
src/css/cdss.less

@@ -1,353 +1,355 @@
-@import './common.less';
-body{
-    overflow: hidden;
-    position: relative;
-    background: #fff;
+@import "./common.less";
+body {
+  overflow: hidden;
+  position: relative;
+  background: #fff;
 }
-.bodyWrap{
+.bodyWrap {
   position: fixed;
   width: 100%;
   height: 100%;
   /*background: @bgcBlue;*/
 }
 .iframeWrap {
-
 }
-.contentWrapper{
+.contentWrapper {
   margin-left: 40px;
-  padding:10px 12px 0;
+  padding: 10px 12px 0;
   overflow-y: auto;
 }
 .responsibility {
-    text-align: center;
-    font-size: 12px;
-    color: #aaa;
-    padding-bottom: 5px;
-    position: fixed;
-    left: 40px;
-    width: 100%;
-    bottom: 40px;
-    background-color: #fff;
-    z-index: 1;
+  text-align: center;
+  font-size: 12px;
+  color: #aaa;
+  padding-bottom: 5px;
+  position: fixed;
+  left: 40px;
+  width: 100%;
+  bottom: 40px;
+  background-color: #fff;
+  z-index: 1;
   text-indent: -40px;
 }
 .disclaimer {
-    height: 24px;
-    width: 100%;
-    line-height: 24px;
-    position: absolute;
-    bottom: 0;
-    background-color: #EFF1F6;
-    left: 40px;
-    z-index: 98;
-    .version-tip{
-        margin-left: 20px;
-        display: inline-block;
-        font-size: 12px;
-        line-height: 12px;
-        //padding-right: 34px;
-        cursor: pointer;
-        &.new-icon{
-            // background: url(../images/new.png) 100% 0px no-repeat;
-            // background-size: 27px;
-        }
-    }
-    .version-txt i,.disclaimerInfoTxt{
-        font-size: 12px;
-        color: #777;
-        border-bottom: 1px solid #777;
-    }
-    .logo {
-        // float: left;
-        font-size: 12px;
-        //margin-left: 15px;
-        color:#333;
-    }
-    .disclaimerInfo {
-        float: right;
-        font-size: 12px;
-        margin-right: 60px;
+  height: 24px;
+  width: 100%;
+  line-height: 24px;
+  position: absolute;
+  bottom: 0;
+  background-color: #eff1f6;
+  left: 40px;
+  z-index: 98;
+  .version-tip {
+    margin-left: 20px;
+    display: inline-block;
+    font-size: 12px;
+    line-height: 12px;
+    //padding-right: 34px;
+    cursor: pointer;
+    &.new-icon {
+      // background: url(../images/new.png) 100% 0px no-repeat;
+      // background-size: 27px;
     }
+  }
+  .version-txt i,
+  .disclaimerInfoTxt {
+    font-size: 12px;
+    color: #777;
+    border-bottom: 1px solid #777;
+  }
+  .logo {
+    // float: left;
+    font-size: 12px;
+    //margin-left: 15px;
+    color: #333;
+  }
+  .disclaimerInfo {
+    float: right;
+    font-size: 12px;
+    margin-right: 60px;
+  }
 }
 
-
-
 .disclaimerInfo {
-    cursor: pointer;
-    font-size: 12px;
+  cursor: pointer;
+  font-size: 12px;
 }
-.disclaimerInfoTxt:hover{
-    border-bottom: 1px solid #000;
-    font-size: 12px;
+.disclaimerInfoTxt:hover {
+  border-bottom: 1px solid #000;
+  font-size: 12px;
 }
 .moreInfo {
-    display: inline-block;
-    width:42px;
-    height:20px;
-    border-radius:4px;
-    border:1px solid #267FD7;
-    line-height:20px;
-    color: #267FD7;
-    text-align: center;
-    margin-left: 20px;
-    cursor: pointer;
+  display: inline-block;
+  width: 42px;
+  height: 20px;
+  border-radius: 4px;
+  border: 1px solid #267fd7;
+  line-height: 20px;
+  color: #267fd7;
+  text-align: center;
+  margin-left: 20px;
+  cursor: pointer;
 }
 
-
 .staticWin {
-    color: #040428;
-    text-decoration: underline;
-    cursor: pointer;
+  color: #040428;
+  text-decoration: underline;
+  cursor: pointer;
 }
 .line {
-    width: 100%;
-    height: 1px;
-    background: #D1D1D1;
+  width: 100%;
+  height: 1px;
+  background: #d1d1d1;
 }
 
-.empty-box{
-    position: relative;
-    top: 172px;
-    display: none;
+.empty-box {
+  position: relative;
+  top: 172px;
+  display: none;
 }
-.empty{
+.empty {
   display: block;
 }
-.emptyImg{
-    width: 185px;
-    position: relative;
-    left: 50%;
-    margin-left: -93px;
-    &.small{
-      width: 90px;
-      margin-left: -45px;
-    }
+.emptyImg {
+  width: 185px;
+  position: relative;
+  left: 50%;
+  margin-left: -93px;
+  &.small {
+    width: 90px;
+    margin-left: -45px;
+  }
 }
-.emptyTxt{
-    text-align: center;
-    color: #999;
-    font-size: 14px;
+.emptyTxt {
+  text-align: center;
+  color: #999;
+  font-size: 14px;
 }
-.loading{
-    position: fixed;
-    width: 100%;
-    height: 100%;
-    left: 0;
-    top: 0;
-    z-index: 100;
-    display: none;
+.loading {
+  position: fixed;
+  width: 100%;
+  height: 100%;
+  left: 0;
+  top: 0;
+  z-index: 100;
+  display: none;
 }
-.loadingMask{
-    position: absolute;
-    width: 100%;
-    height: 100%;
-    background-color: #fff;
-    opacity: 0.5;
-    filter:alpha(opacity=50);
-    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=50);";
+.loadingMask {
+  position: absolute;
+  width: 100%;
+  height: 100%;
+  background-color: #fff;
+  opacity: 0.5;
+  filter: alpha(opacity=50);
+  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=50);";
+}
+.loadingImg {
+  width: 40px;
+  position: absolute;
+  left: 50%;
+  top: 50%;
+  margin: -20px 0 0 -20px;
 }
-.loadingImg{
+.emergency {
+  position: fixed;
+  right: 20px;
+  top: 0;
+  .disPub {
     width: 40px;
+    height: 40px;
+    line-height: 40px;
     position: absolute;
-    left: 50%;
-    top: 50%;
-    margin: -20px 0 0 -20px;
-}
-.emergency {
+    left: 0;
+    text-align: center;
+    border-radius: 50%;
+    color: #fff;
+    background-color: #f93333;
+  }
+  .singleDis {
+    left: -25px;
+    display: none;
+  }
+  .allDis {
+    display: none;
+    z-index: 10;
+    moz-user-select: -moz-none;
+    -moz-user-select: none;
+    -o-user-select: none;
+    -webkit-user-select: none;
+    -ms-user-select: none;
+    user-select: none;
     position: fixed;
-    right: 20px;
     top: 0;
-    .disPub {
-        width: 40px;
-        height: 40px;
-        line-height: 40px;
-        position: absolute;
-        left: 0;
-        text-align: center;
-        border-radius: 50%;
-        color: #fff;
-        background-color: #f93333;
-    }
-    .singleDis {
-        left: -25px;
-        display: none;
-    }
-    .allDis {
-        display: none;
-        z-index: 10;
-        moz-user-select: -moz-none;
-        -moz-user-select: none;
-        -o-user-select: none;
-        -webkit-user-select: none;
-        -ms-user-select: none;
-        user-select: none;
-        position: fixed;
-        top: 0;
-        right: 5px;
-        width: auto;
-        height: 40px;
-        line-height: 40px;
-        border-radius: 22px;
-        border: 2px solid #f93333;
-        background-color: #fff;
-        padding-left: 50px;
-        padding-right: 30px;
-        cursor: pointer;
-        .right {
-            position: absolute;
-            right: 5px;
-            top: 9px;
-        }
+    right: 5px;
+    width: auto;
+    height: 40px;
+    line-height: 40px;
+    border-radius: 22px;
+    border: 2px solid #f93333;
+    background-color: #fff;
+    padding-left: 50px;
+    padding-right: 30px;
+    cursor: pointer;
+    .right {
+      position: absolute;
+      right: 5px;
+      top: 9px;
     }
+  }
 }
 
-
 // CDSS6.0
-.diag{
-    .longBox,.shortBox{
-        padding: 0 10px 8px;
-    }
+.diag {
+  .longBox,
+  .shortBox {
+    padding: 0 10px 8px;
+  }
 }
-.longBox{
-    display: none;
+.longBox {
+  display: none;
 }
-.pushItemBox{
-    position: relative;
-    cursor: pointer;
-    /*display: inline-block;*/
+.pushItemBox {
+  position: relative;
+  cursor: pointer;
+  /*display: inline-block;*/
 }
-.warning .pushItemName .item-name{
-  opacity: .8;
-  filter:alpha(opacity=80);
+.warning .pushItemName .item-name {
+  opacity: 0.8;
+  filter: alpha(opacity=80);
 }
-.pushItemName{
-    position: relative;
-    /*display: inline;*/
-    line-height: 21px;
-    padding-right: 3px;
-    cursor: pointer;
-    &.noInfo{
-      margin-right: 12px;
-      &.evaluationtitle{
-        margin-right: 3px;
-      }
-      .hidden-i{
-        visibility: hidden;
-      }
+.pushItemName {
+  position: relative;
+  /*display: inline;*/
+  line-height: 21px;
+  padding-right: 3px;
+  cursor: pointer;
+  &.noInfo {
+    margin-right: 12px;
+    &.evaluationtitle {
+      margin-right: 3px;
     }
-    &:hover{
-      .infoImg+.hidden-i{
-        visibility: hidden;
-      }
-      .infoImg{
-        visibility: visible;
-      }
+    .hidden-i {
+      visibility: hidden;
     }
-    .infoImg:hover{
+  }
+  &:hover {
+    .infoImg + .hidden-i {
+      visibility: hidden;
+    }
+    .infoImg {
       visibility: visible;
     }
+  }
+  .infoImg:hover {
+    visibility: visible;
+  }
 }
 .pushItemBox:hover {
   .infoImg {
     visibility: visible;
   }
 }
-.infoImg,.hidden-i{
-    width: 12px;
-    /*position: absolute;
+.infoImg,
+.hidden-i {
+  width: 12px;
+  /*position: absolute;
     top: 5px;
     right: 3px;*/
-    cursor: pointer;
-    visibility: hidden;
-    vertical-align: middle;
+  cursor: pointer;
+  visibility: hidden;
+  vertical-align: middle;
 }
-.hidden-i{
+.hidden-i {
   display: inline-block;
   width: 12px;
 }
-.showMore,.showLess{
-    display: inline-block;
-    cursor: pointer;
-    color: #3B9ED0;
-    position: absolute;
-    right: 14px;
-    bottom: 5px;
-}
-.moduleTitle{
-    height: 35px;
-    line-height: 35px;
-    font-size: 16px;
-    color: @fontClr;
-    font-weight: 600;
-    border-radius: 8px 8px 0 0;
-    margin-bottom: 10px;
-    .titleIcon{
-        width: 24px;
-        position: relative;
-        top: 5px;
-        margin: 0 5px 0 14px;
-    }
-}
-.casewriting .titleIcon{
-    width:14px;
+.showMore,
+.showLess {
+  display: inline-block;
+  cursor: pointer;
+  color: #3b9ed0;
+  position: absolute;
+  right: 14px;
+  bottom: 5px;
+}
+.moduleTitle {
+  height: 35px;
+  line-height: 35px;
+  font-size: 16px;
+  color: @fontClr;
+  font-weight: 600;
+  border-radius: 8px 8px 0 0;
+  margin-bottom: 10px;
+  .titleIcon {
+    width: 24px;
+    position: relative;
+    top: 5px;
+    margin: 0 5px 0 14px;
+  }
 }
-.iconArrowImg{
-    width: 10px;
-    // position: relative;
-    // top: 2px;
+.casewriting .titleIcon {
+  width: 14px;
 }
-.moduleBox{
-  padding:0;
-  .longBox,.shortBox{
-    border-bottom: 1px #E6E6E6 dashed;
+.iconArrowImg {
+  width: 10px;
+  // position: relative;
+  // top: 2px;
+}
+.moduleBox {
+  padding: 0;
+  .longBox,
+  .shortBox {
+    border-bottom: 1px #e6e6e6 dashed;
   }
-  &:last-child .longBox,&:last-child  .shortBox{
+  &:last-child .longBox,
+  &:last-child .shortBox {
     border-bottom: none;
   }
 }
-.moduleBoxTitle{
+.moduleBoxTitle {
   color: @fontClr;
   line-height: 17px;
   font-weight: 600;
   padding-left: 3px;
   margin: 6px 0 6px 14px;
-  border-left:4px solid @suggerColor;
+  border-left: 4px solid @suggerColor;
 }
-.iconMark{
-    width: 17px;
-    position: absolute;
-    left: 10px;
-    top: 2px;
+.iconMark {
+  width: 17px;
+  position: absolute;
+  left: 10px;
+  top: 2px;
 }
-.billingPushItem{
-    padding: 0 10px 0 24px;
-    position: relative;
-    word-wrap: break-word;
-    word-break: normal;
+.billingPushItem {
+  padding: 0 10px 0 24px;
+  position: relative;
+  word-wrap: break-word;
+  word-break: normal;
 }
-.moduleItem{
-    position: relative;
-    border-radius: 8px;
-    box-shadow: 0px 5px 5px 0px @shadowColor;
-    margin-bottom: 10px;
-    padding-bottom: 10px;
-    border: 1px #D8D8D8 solid;
-  .longBox,.shortBox{
+.moduleItem {
+  position: relative;
+  border-radius: 8px;
+  box-shadow: 0px 5px 5px 0px @shadowColor;
+  margin-bottom: 10px;
+  padding-bottom: 10px;
+  border: 1px #d8d8d8 solid;
+  .longBox,
+  .shortBox {
     padding: 4px 14px;
-    position: relative;   /****bug8454***/
+    position: relative; /****bug8454***/
   }
 }
-.tabList{
+.tabList {
   margin-bottom: 8px;
   position: relative;
   height: 100%;
   background: @bgcBlue;
-  .numPop{
+  .numPop {
     display: none;
     position: absolute;
-    top:0;
+    top: 0;
     left: 2px;
-    border-radius:8px;
+    border-radius: 8px;
     width: 17px;
     height: 17px;
     background: url("../images/tip-bg.png") no-repeat;
@@ -356,145 +358,144 @@ body{
     color: #fff;
   }
 }
-.tab{
+.tab {
   width: 10px;
-  padding:8px 10px;
-  font-size:14px;
+  padding: 8px 10px;
+  font-size: 14px;
   cursor: pointer;
   color: @tabColor;
   margin-left: 10px;
   background: @tabBgColor;
   border-radius: 8px 0px 0px 8px;
-  span{
+  span {
   }
- }
-.activeTab{
-  color:@fontClr;
+}
+.activeTab {
+  color: @fontClr;
   font-weight: 600;
-  font-size:14px;
+  font-size: 14px;
   background: @mainBg;
 }
-.moduleWrapper{
-    display: none;
-}
-.recommendWrap{
-
-}
-.staticSearchB ul{
-    position: absolute;
-    height: 480px;
-    // width: 100%;
-    /* right: 30px; */
-    left: 40px;
-    overflow: auto;
-}
-.moduleItem.warning{
-    background: @dangerColor;
-    color: #fff;
-    padding: 10px 40px;
-    box-shadow: 0 2px 4px 0 #F9BC9F;
-}
-.warningTitImg{
-    width: 20px;
-    position: absolute;
-    left: -28px;
-    top: -2px;
+.moduleWrapper {
+  display: none;
 }
-.warningTitle{
-    position: relative;
-    margin-right: 15px;
+.recommendWrap {
+}
+.staticSearchB ul {
+  position: absolute;
+  height: 480px;
+  // width: 100%;
+  /* right: 30px; */
+  left: 40px;
+  overflow: auto;
+}
+.moduleItem.warning {
+  background: @dangerColor;
+  color: #fff;
+  padding: 10px 40px;
+  box-shadow: 0 2px 4px 0 #f9bc9f;
+}
+.warningTitImg {
+  width: 20px;
+  position: absolute;
+  left: -28px;
+  top: -2px;
+}
+.warningTitle {
+  position: relative;
+  margin-right: 15px;
   font-weight: bold;
 }
-.medicalKonwledgeWrap{
-
+.medicalKonwledgeWrap {
 }
-.newIcon{
-    width: 27px;
-    position: relative;
-    top: 2px;
-    //left: 15px;
-    visibility: hidden;
+.newIcon {
+  width: 27px;
+  position: relative;
+  top: 2px;
+  //left: 15px;
+  visibility: hidden;
 }
-.new-icon .newIcon{
-    visibility: visible;
+.new-icon .newIcon {
+  visibility: visible;
 }
 
-.generalTreatInfo{
-    padding: 0px 24px 0 10px;
-    box-sizing: border-box;
-    position: relative;
-    margin-top: 4px;
-    margin-bottom: 4px;
-    ol li {
-        list-style: decimal;
-        list-style-position:inside;
-    }
-    ul {
-        padding-left: 15px;
-        li {
-            list-style: inside;
-            list-style-position:inside;
-        }
+.generalTreatInfo {
+  padding: 0px 24px 0 10px;
+  box-sizing: border-box;
+  position: relative;
+  margin-top: 4px;
+  margin-bottom: 4px;
+  ol li {
+    list-style: decimal;
+    list-style-position: inside;
+  }
+  ul {
+    padding-left: 15px;
+    li {
+      list-style: inside;
+      list-style-position: inside;
     }
+  }
 }
-.isOverFlow{
-    overflow: hidden;
-    max-height: 38px;
-    p {
-        // height: 20px;
-        // line-height: 20px;
-    }
+.isOverFlow {
+  overflow: hidden;
+  max-height: 38px;
+  p {
+    // height: 20px;
+    // line-height: 20px;
+  }
 }
-.showMoreGeneralTreat{
+.showMoreGeneralTreat {
+  position: absolute;
+  cursor: pointer;
+  color: #3b9ed0;
+  right: 10px;
+  bottom: -1px;
+  background: #fff;
+  width: 10px;
+  height: 10px;
+  box-sizing: border-box;
+  img.more {
     position: absolute;
-    cursor: pointer;
-    color: #3B9ED0;
-    right: 10px;
-    bottom: -1px;
-    background: #fff;
-    width: 10px;
-    height: 10px;
-    box-sizing: border-box;
-    img.more {
-        position: absolute;
-        top: 2px;
-        right: 3px;
-    }
+    top: 2px;
+    right: 3px;
+  }
 }
-.showLessGeneralTreat{
-    display: inline-block;
-    cursor: pointer;
-    float: right;
-    color: #3B9ED0;
+.showLessGeneralTreat {
+  display: inline-block;
+  cursor: pointer;
+  float: right;
+  color: #3b9ed0;
 }
-.tips-cont{
+.tips-cont {
   border-radius: 8px;
   box-shadow: 0px 5px 5px 0px @shadowColor;
-  border: 1px #D8D8D8 solid;
+  border: 1px #d8d8d8 solid;
   margin-bottom: 10px;
-  .moduleBoxTitle{
-    border-color: #FF8042;
+  .moduleBoxTitle {
+    border-color: #ff8042;
   }
-  .moduleItem{
+  .moduleItem {
     box-shadow: none;
-    border:none;
-    border-bottom:1px #E6E6E6 dashed;
-    &:last-child{
+    border: none;
+    border-bottom: 1px #e6e6e6 dashed;
+    &:last-child {
       border-bottom: none;
     }
   }
 }
-.longStrBox{
-    display: none;
+.longStrBox {
+  display: none;
 }
-.showMoreCaseWriting,.showLessCaseWriting{
-    display: inline-block;
-    cursor: pointer;
-    float: right;
-    color: #3B9ED0;
-    img{
-        margin-left: 4px;
-    }
+.showMoreCaseWriting,
+.showLessCaseWriting {
+  display: inline-block;
+  cursor: pointer;
+  float: right;
+  color: #3b9ed0;
+  img {
+    margin-left: 4px;
+  }
 }
 
 /*******中医********/
@@ -507,10 +508,10 @@ body{
 .tcm-item {
   display: none;
   margin: 0 0 10px;
-  border: 1px #EEF5FD solid;
+  border: 1px #eef5fd solid;
   border-radius: 8px;
-  box-shadow: 0px 5px 5px 0px #D3D8D9;
-  &.go-push .title{
+  box-shadow: 0px 5px 5px 0px #d3d8d9;
+  &.go-push .title {
     border-radius: 8px;
   }
   .title {
@@ -562,7 +563,7 @@ body{
   }
   .detail {
     margin: 0 10px;
-    border-top: 1px #E6E6E6 dashed;
+    border-top: 1px #e6e6e6 dashed;
     padding-top: 5px;
     /*max-height: 134px;*/
     overflow-y: hidden;
@@ -571,7 +572,7 @@ body{
     }
     .label {
       float: left;
-      border-left: 4px solid #267FD7;
+      border-left: 4px solid #267fd7;
       padding-left: 5px;
       line-height: 14px;
       margin-top: 3px;
@@ -597,7 +598,6 @@ body{
         width: 100%;
         text-overflow: ellipsis;
       }
-
     }
   }
   &.recipe {
@@ -627,12 +627,56 @@ body{
     }
   }
 }
-.evaluation{
-  .evaluationtitle{
+.evaluation {
+  .evaluationtitle {
     color: @linkColor;
     cursor: pointer;
   }
-  .infoImg,.hidden-i{
+  .infoImg,
+  .hidden-i {
     margin-left: -10px;
   }
-}
+}
+.staticSearchT {
+  padding-top: 0;
+}
+.container .staticSearchT button {
+  top: 0;
+}
+.container .staticSearchT i {
+  top: 10px;
+}
+.header-tab {
+  overflow: hidden;
+  & li {
+    width: 106px;
+    height: 26px;
+    float: left;
+    text-align: center;
+    line-height: 26px;
+    cursor: pointer;
+  }
+  .choice {
+    width: 106px;
+    height: 26px;
+    background: url("../images/choice.png") no-repeat;
+    background-size: 106px 26px;
+    color: #fff;
+  }
+}
+.radio-list {
+  display: none;
+  .check-box {
+    font-size: 14px;
+    font-weight: 400;
+    color: rgba(51, 51, 51, 0.9);
+    margin-bottom: 5px;
+    cursor: pointer;
+    & input{
+      width: 17px;
+      height: 17px;
+      margin-right: 5px;
+      vertical-align: middle;
+    }
+  }
+}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 134 - 119
src/html/cdss.html


BIN=BIN
src/images/choice.png


+ 0 - 1
src/js/cdss.js

@@ -35,7 +35,6 @@ let iconMark = require('./../images/icon_mark.png').replace(/^undefined/g, '')
 let warnImg = require('./../images/icon_warning.png').replace(/^undefined/g, '')
 let warnImgWhite = require('./../images/icon_waring_white.png').replace(/^undefined/g, '')
 
-
 const $ = require("jquery");
 const { post, config, getUrlArgObject, openNewWin, titleConfig } = require('./promise.js');
 const { renderFollowUp, followEmpty } = require('./followUp.js');

+ 113 - 111
src/js/promise.js

@@ -60,12 +60,12 @@ window.console = window.console || (function () {
 
 const config = {
   pushInner: '/sys/push/push',
-  indicationPush:'/sys/push/indicationPush',
-    indicationPushCache: '/sys/mr/getIndicationMr',
+  indicationPush: '/sys/push/indicationPush',
+  indicationPushCache: '/sys/mr/getIndicationMr',
   calculate: '/api/data/calc/calculate',
   disclaimer: '/sys/disclaimerInfo/getDisclaimerInfo',
   information: '/kl/conceptInfo/getStaticKnowledge',
-  getStaticKnowledgeForHIS:'/kl/conceptInfo/getStaticKnowledgeForHIS', //对接一对多
+  getStaticKnowledgeForHIS: '/kl/conceptInfo/getStaticKnowledgeForHIS', //对接一对多
   informationMore: '/api/data/conceptDetail/getConceptDetails',
   pushScale: '/api/data/push/pushScale',
   getSysSetInfoDatas: '/sys/plan/getSysPlanInfoDatas',
@@ -75,20 +75,22 @@ const config = {
   getStaticKnowledge: '/kl/conceptInfo/staticKnowledgeIndex',//静态知识检索
   getStaticScale: '/api/data/search/getScale',
   dictionaryInfo: '/sys/dictionaryInfo/getList', //字典信息
-  getPushSet:'/sys/plan/getSysPlanInfoDatas', //获取推送配置
-  analyse:'/api/data/mrqc/analyse',
-  getHosptDeptUsal:'/api/data/concept/getHosptDeptUsal', //获取科室常用标签
-  caseWritingPrompt:'/sys/mrqc/caseWritingPrompt',//病历书写规范提示
-  followUp:'/sys/push/pushPlan', //随访计划
-  ruleTypeMap:{     //大数据推送参数featureType对应
-    '22':'1,2',
-    '11':'3',
-    '8':'4,5'
+  getPushSet: '/sys/plan/getSysPlanInfoDatas', //获取推送配置
+  analyse: '/api/data/mrqc/analyse',
+  getHosptDeptUsal: '/api/data/concept/getHosptDeptUsal', //获取科室常用标签
+  caseWritingPrompt: '/sys/mrqc/caseWritingPrompt',//病历书写规范提示
+  followUp: '/sys/push/pushPlan', //随访计划
+  ruleTypeMap: {     //大数据推送参数featureType对应
+    '22': '1,2',
+    '11': '3',
+    '8': '4,5'
   },
-  staticSearch:'/kl/conceptInfo/staticIndexPage', //检索静态知识
+  staticSearch: '/kl/conceptInfo/staticIndexPage', //检索静态知识
+  diseaseIndex: '/demo/retrieval/diseaseIndex', //通过编码查询疾病
+
 }
-const isLocal = window.location.hostname.indexOf('localhost') !=-1;
-const imageUrlPrefix = isLocal ?'http://172.17.14.242:82':'http://192.168.2.121:82';//'http://223.93.170.82:12282';
+const isLocal = window.location.hostname.indexOf('localhost') != -1;
+const imageUrlPrefix = isLocal ? 'http://172.17.14.242:82' : 'http://192.168.2.121:82';//'http://223.93.170.82:12282';
 // const getUrlArgObject = function(parm) {  
 //   var query = decodeURI(window.location.search);
 //   var args = qs.parse(qs.parse(query.substr(1)));
@@ -110,24 +112,24 @@ const getUrlArgObject = function getQueryString(name) {
 }
 
 const get = function (url, data) {
-    return new Promise((resolve, reject) => {
-        $.ajax({
-            method: 'get',
-            url: url,
-            //data: data,
-            contentType: "application/json; charset=UTF-8",
-            beforeSend: function (xmlHttp) {
-                xmlHttp.setRequestHeader("If-Modified-Since", "0");
-                xmlHttp.setRequestHeader("Cache-Control", "no-cache");
-            },
-            success: function (res) {
-                resolve({data: res});
-            },
-            error: function (error) {
-                reject(error);
-            },
-        });
+  return new Promise((resolve, reject) => {
+    $.ajax({
+      method: 'get',
+      url: url,
+      //data: data,
+      contentType: "application/json; charset=UTF-8",
+      beforeSend: function (xmlHttp) {
+        xmlHttp.setRequestHeader("If-Modified-Since", "0");
+        xmlHttp.setRequestHeader("Cache-Control", "no-cache");
+      },
+      success: function (res) {
+        resolve({ data: res });
+      },
+      error: function (error) {
+        reject(error);
+      },
     });
+  });
 }
 const post = function (url, data) {
   return new Promise((resolve, reject) => {
@@ -197,171 +199,171 @@ const throttle = function (fn, threshhold) {
     }
   }
 }
-const colorMap={
-  warnColor:'#FFE8DD', //智能警示等tab颜色
-  suggerColor:'#E3F0FF', //推荐提示tab颜色
-  treatColor:'#E3FEFE',  //治疗等tab颜色
+const colorMap = {
+  warnColor: '#FFE8DD', //智能警示等tab颜色
+  suggerColor: '#E3F0FF', //推荐提示tab颜色
+  treatColor: '#E3FEFE',  //治疗等tab颜色
 }
 const titleConfig = {
-  warning:{
+  warning: {
     background: colorMap.warnColor,
     icon: iconWarning1,
-    name:"智能警示"
+    name: "智能警示"
   },
-  symptomPush:{
+  symptomPush: {
     background: colorMap.suggerColor,
     icon: iconSymptomPush,
-    name:"推荐症状"
+    name: "推荐症状"
   },
-  diagPush:{
+  diagPush: {
     background: colorMap.suggerColor,
     icon: iconDiagPush2,
-    name:"智能诊断"
+    name: "智能诊断"
   },
-  checkupPush:{
+  checkupPush: {
     background: colorMap.suggerColor,
     icon: iconCheckupPush,
-    name:"推荐体格检查"
+    name: "推荐体格检查"
   },
-  scalePush:{
+  scalePush: {
     background: colorMap.suggerColor,
     icon: iconScalePush,
-    name:"推荐量表"
+    name: "推荐量表"
   },
-  lisPush:{
+  lisPush: {
     background: colorMap.suggerColor,
     icon: iconLisPush,
-    name:"推荐检验"
+    name: "推荐检验"
   },
-  pacsPush:{
+  pacsPush: {
     background: colorMap.suggerColor,
     icon: iconPacsPush,
-    name:"推荐检查"
+    name: "推荐检查"
   },
-  drugPush:{
+  drugPush: {
     background: colorMap.treatColor,
     icon: iconDrugPush,
-    name:"推荐用药"
+    name: "推荐用药"
   },
   nursePush: {
     background: colorMap.treatColor,
     icon: iconNursePush,
     name: "推荐护理"
   },
-  operationPush:{
+  operationPush: {
     background: colorMap.treatColor,
     icon: iconOperationPush,
-    name:"推荐手术及操作"
+    name: "推荐手术及操作"
   },
-  generaTreatPush:{
+  generaTreatPush: {
     background: colorMap.treatColor,
     icon: iconTreat,
-    name:"一般治疗"
+    name: "一般治疗"
   },
-  casewritingPush:{
+  casewritingPush: {
     background: colorMap.warnColor,
     icon: iconCaseWrite,
-    name:"病历书写规范提示"
+    name: "病历书写规范提示"
   }
 }
 const titleConfigH = {
-  warning:{
+  warning: {
     background: "#FFE8DD",
     icon: iconWarning1,
-    name:"智能警示",
-    location:"left"
+    name: "智能警示",
+    location: "left"
   },
-  symptomPush:{
+  symptomPush: {
     background: "#EEF5FD",
     icon: iconSymptomPush,
-    name:"推荐症状",
-    location:"left"
+    name: "推荐症状",
+    location: "left"
   },
-  diagPush:{
+  diagPush: {
     background: "#FAECED",
     icon: intelligentDiagnosis,
-    name:"智能诊断",
-    location:"left"
+    name: "智能诊断",
+    location: "left"
   },
-  checkupPush:{
+  checkupPush: {
     background: "#EEF5FD",
     icon: iconCheckupPush,
-    name:"体格检查",
-    location:"left"
+    name: "体格检查",
+    location: "left"
   },
-  scalePush:{
+  scalePush: {
     background: "#EEF5FD",
     icon: iconScalePush,
-    name:"推荐量表",
-    location:"left"
+    name: "推荐量表",
+    location: "left"
   },
-  lisPush:{
+  lisPush: {
     background: "#ECF4FC",
     icon: iconLisPush,
-    name:"推荐检验",
-    location:"left"
+    name: "推荐检验",
+    location: "left"
   },
-  pacsPush:{
+  pacsPush: {
     background: "#ECF4FC",
     icon: iconPacsPush,
-    name:"推荐检查",
-    location:"left"
+    name: "推荐检查",
+    location: "left"
   },
-  generaTreatPush:{
+  generaTreatPush: {
     background: "#E3FEFE",
     icon: iconTreat,
-    name:"一般治疗",
-    location:"right"
+    name: "一般治疗",
+    location: "right"
   },
-  drugPush:{
+  drugPush: {
     background: "#E3FEFE",
     icon: iconDrugPush,
-    name:"推荐用药",
-    location:"right"
+    name: "推荐用药",
+    location: "right"
   },
-  operationPush:{
+  operationPush: {
     background: "#E3FEFE",
     icon: iconOperationPush,
-    name:"手术/操作",
-    location:"right"
+    name: "手术/操作",
+    location: "right"
   },
-    nursePush: {
-        background: "#E3FEFE",
-        icon: iconNursePush,
-        name: "推荐护理",
-        location: "right"
-    },
-  vigilancePush:{
+  nursePush: {
+    background: "#E3FEFE",
+    icon: iconNursePush,
+    name: "推荐护理",
+    location: "right"
+  },
+  vigilancePush: {
     background: "#FFE8DD",
     icon: iconWarning,
-    name:"警惕",
-    location:"left"
+    name: "警惕",
+    location: "left"
   },
-  treat:{
+  treat: {
     background: "#FFE8DD",
     icon: therapeuticSchedule,
-    name:"治疗方案"
+    name: "治疗方案"
   },
-  casewritingPush:{
+  casewritingPush: {
     background: "#FFE8DD",
     icon: writingNorms,
-    name:"病历书写规范提示",
-    location:"left"
+    name: "病历书写规范提示",
+    location: "left"
   }
 }
-const Toast = function (msg, duration,type) {
+const Toast = function (msg, duration, type) {
   duration = isNaN(duration) ? 3000 : duration;
   var m = document.createElement('div');
-  if(type == 'warn'){
-    m.innerHTML = '<div style="margin:auto"><img class="warn" style="margin-right:14px;float:left" src="./../images/icon-warning.png" /><span>'+msg+'</span></div>'
+  if (type == 'warn') {
+    m.innerHTML = '<div style="margin:auto"><img class="warn" style="margin-right:14px;float:left" src="./../images/icon-warning.png" /><span>' + msg + '</span></div>'
     m.style.cssText = "margin:auto;width:250px;vertical-align:middle;padding:25px 14px;height: 30px;color: #fff;line-height: 30px;text-align: center;border-radius: 8px;position: absolute;top: 0;left: 0;right:0;bottom:0;z-index: 999999;background: #333;font-size: 16px;";
-  }else if(type == 'success'){
-    m.innerHTML = '<div style="margin:auto;width:120px"><img class="warn" style="width:32px;margin-right:14px;float:left" src="./../images/icon-success.png" /><span>' + msg +'</span></div>'
+  } else if (type == 'success') {
+    m.innerHTML = '<div style="margin:auto;width:120px"><img class="warn" style="width:32px;margin-right:14px;float:left" src="./../images/icon-success.png" /><span>' + msg + '</span></div>'
     m.style.cssText = "margin:auto;width:120px;vertical-align:middle;padding:25px 14px;height: 30px;color: #fff;line-height: 30px;text-align: center;border-radius: 8px;position: absolute;top: 0;left: 0;right:0;bottom:0;z-index: 999999;background: #333;font-size: 16px;";
   }
-  
-  
-  $('.warn').css('margin-top','10px')
+
+
+  $('.warn').css('margin-top', '10px')
   document.body.appendChild(m);
   setTimeout(function () {
     var d = 0.5;
@@ -372,7 +374,7 @@ const Toast = function (msg, duration,type) {
 }
 module.exports = {
   config,
-    get,
+  get,
   post,
   getUrlArgObject,
   imageUrlPrefix,

+ 120 - 84
src/js/staticSearch.js

@@ -1,67 +1,87 @@
 require('../css/staticSearch.less');
 require('./../images/del_nor.png')
 var $ = require("jquery");
-var { post,config,getUrlArgObject,openNewWin,isIe8 } = require('./promise.js');
+var { post, config, getUrlArgObject, openNewWin, isIe8 } = require('./promise.js');
 let checkOffImg = require('./../images/check_off.png')
 let checkOnImg = require('./../images/check_on.png')
-require('./../images/empty3.png').replace( /undefined/g, '')
-require('./../images/icon_search.png').replace( /undefined/g, '')
-require('./../images/icon_arrow_down.png').replace( /undefined/g, '')
-require('./../images/icon_arrow_up.png').replace( /undefined/g, '')
+require('./../images/empty3.png').replace(/undefined/g, '')
+require('./../images/icon_search.png').replace(/undefined/g, '')
+require('./../images/icon_arrow_down.png').replace(/undefined/g, '')
+require('./../images/icon_arrow_up.png').replace(/undefined/g, '')
 
 let searchType = getUrlArgObject("searchType") || ""
 
 
 let medicalTypesList = []
 let first = true
+let tabid = 1, type = 1
 const is8Ie = isIe8() //判断是否为IE8
-if(is8Ie) {
-  let reg = /undefined/g
-  checkOffImg = checkOffImg.replace(reg, '')
-  checkOnImg = checkOnImg.replace(reg, '')
+if (is8Ie) {
+    let reg = /undefined/g
+    checkOffImg = checkOffImg.replace(reg, '')
+    checkOnImg = checkOnImg.replace(reg, '')
 }
-if(searchType == '1'){
+if (searchType == '1') {
     $(".staticSearchB>ul").css({
         padding: "0px",
-        left:"0px"
+        left: "0px"
     })
     document.title = "医学知识搜索"
 }
-$(".staticSearchT input").keyup(function(e) {
-    const ev = e||window.event;
+
+
+$(".header-tab li").click(function () {
+    // 修改tab标签样式
+    tabid = $(this).attr("tabid");
+    $(this).attr("class", "choice")
+    $(this).siblings().attr("class", "")
+    // 获取tab ID
+    if(tabid == 1){
+        $(".radio-list").css('display','none')
+    }else{
+        $(".radio-list").css('display','block')
+    }
+})
+$(".check-box").click(function () {
+    type = $(this).find('input[name=ICD10]').val()
+    $(this).siblings().find('input[name=ICD10]').prop("checked", false)
+    $(this).find('input[name=ICD10]').prop("checked", true)
+})
+$(".staticSearchT input").keyup(function (e) {
+    const ev = e || window.event;
     const val = $(this).val();
-    $(this).parents(".staticSearchT").find("i").css({display:val==""?"none":"inline-block"})
-    if(val == ''){
-        $(".searchKnowledge .staticSearchB .empty").css({display:'none'})
-        $(".searchKnowledge .staticSearchB .tip").css({display:'none'})
+    $(this).parents(".staticSearchT").find("i").css({ display: val == "" ? "none" : "inline-block" })
+    if (val == '') {
+        $(".searchKnowledge .staticSearchB .empty").css({ display: 'none' })
+        $(".searchKnowledge .staticSearchB .tip").css({ display: 'none' })
         $(".searchKnowledge .staticSearchB ul").html('')
-        $(".searchKnowledge .staticSearchB .inputWarning").css("display","block")
-       
-    }else{
-        $(".searchKnowledge .staticSearchB .inputWarning").css("display","none")
-        
+        $(".searchKnowledge .staticSearchB .inputWarning").css("display", "block")
+
+    } else {
+        $(".searchKnowledge .staticSearchB .inputWarning").css("display", "none")
+
     }
-    val!=''&&ev.keyCode == 13&&getKnowledgeData(val);
+    val != '' && ev.keyCode == 13 && getKnowledgeData(val);
 })
 // document.title = "医学知识搜索"
-$(".searchScale").css({display:'none'})
-$(".searchKnowledge").css({display:'block'})
-$(".searchKnowledge .staticSearchT").on('click','button',function() {
+$(".searchScale").css({ display: 'none' })
+$(".searchKnowledge").css({ display: 'block' })
+$(".searchKnowledge .staticSearchT").on('click', 'button', function () {
     var val = $(this).parents(".staticSearchT").find("input").val()
-    if(val.trim() == ''){
+    if (val.trim() == '') {
         $(".searchKnowledge .staticSearchB ul").html("");
         $(".searchKnowledge .staticSearchB .tip").hide();
-        $(".searchKnowledge .staticSearchB .inputWarning").css("display","block")
-    }else{
+        $(".searchKnowledge .staticSearchB .inputWarning").css("display", "block")
+    } else {
         getKnowledgeData(val)
     }
 })
 
 
 function getMedicalTypes() {
-    post(config.dictionaryInfo,{}).then((res) =>{
+    post(config.dictionaryInfo, {}).then((res) => {
         const data = res.data
-        if(data.code == 0) {
+        if (data.code == 0) {
             medicalTypesList = res.data.data[7]
             medicalTypesList[0].checked = true
             renderMedicalType(medicalTypesList)
@@ -72,27 +92,27 @@ function getMedicalTypes() {
 }
 function renderMedicalType(medicalTypesList) {
     let str = ''
-    for(let i = 0; i < medicalTypesList.length; i++) {
-        str += `<span class='medicalTypeItem' data-index=${i}><img src = ${medicalTypesList[i].checked? checkOnImg:checkOffImg}>${medicalTypesList[i].name}</span>`
+    for (let i = 0; i < medicalTypesList.length; i++) {
+        str += `<span class='medicalTypeItem' data-index=${i}><img src = ${medicalTypesList[i].checked ? checkOnImg : checkOffImg}>${medicalTypesList[i].name}</span>`
     }
     $('.searchTypeBox').html(str)
     bindMedicalTypeClick();
 }
 function bindMedicalTypeClick() {
-    $('.searchTypeBox .medicalTypeItem').on("click", function(){
+    $('.searchTypeBox .medicalTypeItem').on("click", function () {
         const index = $(this).attr('data-index')
-        if(index == 0) {
-            if(medicalTypesList[0].checked) {
+        if (index == 0) {
+            if (medicalTypesList[0].checked) {
                 medicalTypesList[0].checked = false
-            }else {
-                for(let i = 0; i < medicalTypesList.length; i++) {
+            } else {
+                for (let i = 0; i < medicalTypesList.length; i++) {
                     medicalTypesList[i].checked = false
                 }
                 medicalTypesList[0].checked = true
             }
             renderMedicalType(medicalTypesList)
         } else {
-            if(medicalTypesList[0].checked) {
+            if (medicalTypesList[0].checked) {
                 medicalTypesList[0].checked = false
             }
             medicalTypesList[index].checked = !medicalTypesList[index].checked
@@ -102,33 +122,47 @@ function bindMedicalTypeClick() {
 }
 getMedicalTypes()
 function getKnowledgeData(value) {
-    $(".searchKnowledge .staticSearchB .inputWarning").css("display","none")
-    $(".searchKnowledge .staticSearchB .empty").css({display:'none'})
+    $(".searchKnowledge .staticSearchB .inputWarning").css("display", "none")
+    $(".searchKnowledge .staticSearchB .empty").css({ display: 'none' })
     $(".searchKnowledge .staticSearchB ul").html('')
-    if(first) {
+    if (first) {
         adjustHeight()
-        first =false
+        first = false
     }
-    let medicalTypes = []
-    for(let i = 0; i < medicalTypesList.length; i++) {
-        if(medicalTypesList[i].checked) {
-            medicalTypes.push(medicalTypesList[i].val)
+    let url, param
+    if (tabid == 1) {
+        let medicalTypes = []
+        for (let i = 0; i < medicalTypesList.length; i++) {
+            if (medicalTypesList[i].checked) {
+                medicalTypes.push(medicalTypesList[i].val)
+            }
+        }
+        url = config.getStaticKnowledge
+        param = {
+            inputStr: value.replace(/\\/g, '\\\\').replace(/%/g, '\\%').replace(/\_/g, '\\_').trim(),
+            types: medicalTypes
+        }
+    } else {
+        url = config.diseaseIndex
+        param = {
+            current: 0,
+            size: 100,
+            inputStr: value.replace(/\\/g, '\\\\').replace(/%/g, '\\%').replace(/\_/g, '\\_').trim(),
+            type: type
         }
     }
-    $(".searchKnowledge .staticSearchB .searching").css("display","block")
-    post(config.getStaticKnowledge,{
-        inputStr: value.replace(/\\/g,'\\\\').replace(/%/g,'\\%').replace(/\_/g,'\\_').trim(),
-        types:medicalTypes
-        }).then((res) => {
-            $(".searchKnowledge .staticSearchB .searching").css("display","none")
+
+    $(".searchKnowledge .staticSearchB .searching").css("display", "block")
+    post(url, param).then((res) => {
+        $(".searchKnowledge .staticSearchB .searching").css("display", "none")
         const data = res.data
-        if(data.code == 0) {
+        if (data.code == 0) {
             var knowledgeLis = data.data;
             var lisStr = ''
-            if(knowledgeLis&&knowledgeLis.length>0){
-                for(var i = 0;i<knowledgeLis.length;i++){
+            if (knowledgeLis && knowledgeLis.length > 0) {
+                for (var i = 0; i < knowledgeLis.length; i++) {
                     var tmpPart = knowledgeLis[i];
-				    var ynameDom = tmpPart.code?`<tr>
+                    var ynameDom = tmpPart.code ? `<tr>
                                                     <td rowspan="2" width="65"><span class="type-icon">医保版</span></td>
                                                       <td><span title="${tmpPart.name}">${tmpPart.name}</span></td>
                                                   </tr>
@@ -136,8 +170,8 @@ function getKnowledgeData(value) {
                                                     <td>
                                                     <span title="${tmpPart.code}" class="type-code">${tmpPart.code}</span>
                                                     </td>
-                                                 </tr>`:'';
-				  var gnameDom = tmpPart.guoname||tmpPart.guocode?`<tr>
+                                                 </tr>`: '';
+                    var gnameDom = tmpPart.guoname || tmpPart.guocode ? `<tr>
                                                     <td rowspan="2"><span class="type-icon type-l">国临版</span></td>
                                                       <td><span title="${tmpPart.guoname}">${tmpPart.guoname}</span></td>
                                                   </tr>
@@ -145,51 +179,53 @@ function getKnowledgeData(value) {
                                                     <td>
                                                     <span title="${tmpPart.guocode}" class="type-code">${tmpPart.guocode}</span>
                                                     </td>
-                                                 </tr>`:'';
-				  var codeDom = ynameDom+gnameDom?`<div class="codeDiv"><table width="100%"><tbody>${ynameDom}${gnameDom}</tbody></table></div>`:"";
-				  var codeIcon = ynameDom+gnameDom?`<span class="code-slide"></span>`:"";
-				  var tmpLi = `<li class="hide-codes" data-name='${tmpPart.name}' data-uname='${tmpPart.uniqueName}' data-type='${tmpPart.libTypeId}' data-sign='${tmpPart.type}'>
-                        <p><span class="diag-name">${tmpPart.name}<i>${tmpPart.typeName?(' ( '+tmpPart.typeName+' )'):''}</i></span>
+                                                 </tr>`: '';
+                    var codeDom = ynameDom + gnameDom ? `<div class="codeDiv"><table width="100%"><tbody>${ynameDom}${gnameDom}</tbody></table></div>` : "";
+                    var codeIcon = ynameDom + gnameDom ? `<span class="code-slide"></span>` : "";
+                    var tmpLi = `<li class="hide-codes" data-name='${tmpPart.name}' data-uname='${tmpPart.uniqueName}' data-type='${tmpPart.libTypeId}' data-sign='${tmpPart.type}'>
+                        <p><span class="diag-name">${tmpPart.name}<i>${tmpPart.typeName ? (' ( ' + tmpPart.typeName + ' )') : ''}</i></span>
                           ${codeIcon}
                         </p>
-                        ${tmpPart.retrievalName?('<span>• '+tmpPart.retrievalName+'</span>'):''}
+                        ${tmpPart.retrievalName ? ('<span>• ' + tmpPart.retrievalName + '</span>') : ''}
                         ${codeDom}
                     </li>`
                     lisStr += tmpLi
                 }
-                $(".searchKnowledge .staticSearchB .empty").css({display:'none'})
-                $(".searchKnowledge .staticSearchB .tip").css({display:'block'})
+                $(".searchKnowledge .staticSearchB .empty").css({ display: 'none' })
+                $(".searchKnowledge .staticSearchB .tip").css({ display: 'block' })
                 $(".searchKnowledge .staticSearchB ul").html(lisStr)
-            }else{
-                $(".searchKnowledge .staticSearchB .empty").css({display:'block'})
-                $(".searchKnowledge .staticSearchB .tip").css({display:'none'})
+            } else {
+                $(".searchKnowledge .staticSearchB .empty").css({ display: 'block' })
+                $(".searchKnowledge .staticSearchB .tip").css({ display: 'none' })
                 $(".searchKnowledge .staticSearchB ul").html('')
             }
-        }else{
+        } else {
             console.log(res)
         }
     })
 }
+function getDiseaseIndex() {
 
+}
 function adjustHeight() {
     var ht = window.innerHeight;
     var containerHt = $(".medicalKonwledgeWrap .container").height()
     var ht2 = $(".searchTypeBox").outerHeight(true)
-    $(".staticSearchB ul").height(ht - 120-10-40 +20- ht2 + "px");
+    $(".staticSearchB ul").height(ht - 120 - 10 - 40 + 20 - ht2 + "px");
 }
-$(window).on('resize', function(){
+$(window).on('resize', function () {
     adjustHeight()
 })
 
-$(".staticSearchB ul").on("click","li .diag-name",function(){
+$(".staticSearchB ul").on("click", "li .diag-name", function () {
     const infoMsgName = $(this).parents("li").attr('data-name')
     const infoMsgUName = $(this).parents("li").attr('data-uname')
     const type = $(this).parents("li").attr('data-type')
     const sign = $(this).parents("li").attr('data-sign')
-    if(type != 48){
+    if (type != 48) {
         openNewWin(`staticInfo.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}`)
         // openNewWin(`information.html?type=${encodeURIComponent(sign)}&position=0&name=${encodeURIComponent(infoMsgName)}&uname=${encodeURIComponent(infoMsgUName)}`)
-    }else{
+    } else {
         let msg = JSON.parse(getUrlArgObject("msg"));
         const msg1 = JSON.parse(JSON.stringify(msg))
         // console.log('scaleName', msg,infoMsgName)
@@ -198,18 +234,18 @@ $(".staticSearchB ul").on("click","li .diag-name",function(){
         openNewWin(`scale.html?msg=${encodeURIComponent(JSON.stringify(msg1))}`)
     }
 })
-$(".staticSearchB ul").on("click","li .code-slide",function(){
-  $(this).parents("li").toggleClass("hide-codes");
+$(".staticSearchB ul").on("click", "li .code-slide", function () {
+    $(this).parents("li").toggleClass("hide-codes");
 });
-  
-$(".staticSearchT").on('click','#clearKnowledge',function() {
+
+$(".staticSearchT").on('click', '#clearKnowledge', function () {
     $(".staticSearchT input").val("")
     $(".searchKnowledge .staticSearchB ul").html('')
-    $(".searchKnowledge .staticSearchB .tip").css({display:'none'})
-    $(".searchKnowledge .staticSearchB .empty").css({display:'none'})
+    $(".searchKnowledge .staticSearchB .tip").css({ display: 'none' })
+    $(".searchKnowledge .staticSearchB .empty").css({ display: 'none' })
     $(this).prev('.ipt').find('input').focus()
-    $(this).css({display:"none"})
+    $(this).css({ display: "none" })
 })
-$(function(){
+$(function () {
     $(".staticSearchT .ipt").find("input").focus()
 })

+ 1 - 1
webpack.config.js

@@ -4,7 +4,7 @@ const CleanWebpackPlugin = require('clean-webpack-plugin') // 清空打包目录
 const MiniCssExtractPlugin = require('mini-css-extract-plugin');
 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 const webpack = require('webpack');
-const proxyHost = "http://192.168.2.241:6060";
+const proxyHost = "http://192.168.2.236:6060";
 module.exports = {
   entry: {
     //index: path.resolve(__dirname, 'src/js', 'index.js'),