wyq 4 年之前
父节点
当前提交
2d0d4367b9
共有 8 个文件被更改,包括 562 次插入426 次删除
  1. 4 0
      src/css/cdss.less
  2. 4 0
      src/css/cdssHorizontal.less
  3. 63 14
      src/css/staticInfo.less
  4. 40 28
      src/html/staticInfo.html
  5. 1 0
      src/js/cdss.js
  6. 311 311
      src/js/cdssHorizontal.js
  7. 139 71
      src/js/staticInfo.js
  8. 0 2
      webpack.config.js

+ 4 - 0
src/css/cdss.less

@@ -573,4 +573,8 @@ body{
       text-decoration: none;
     }
   }
+}
+.evaluationtitle:hover{
+    text-decoration: underline;
+    color: #0000FF;
 }

+ 4 - 0
src/css/cdssHorizontal.less

@@ -614,4 +614,8 @@
     margin-top: 8px;
     margin-right: 10px;
     text-align: center;
+}
+.evaluationtitle:hover{
+    text-decoration: underline;
+    color: #0000FF;
 }

+ 63 - 14
src/css/staticInfo.less

@@ -49,7 +49,7 @@
     background: #fff;
     padding-right: 6px;
     padding-left: 15px;
-    font-weight: bold;
+    font-weight: 600;
     border-left: 4px solid @staticMainColor;
     /*line-height: 30px;*/
   }
@@ -106,7 +106,7 @@
     position: relative;
     line-height: 24px;
     
-    margin: 0 0 4px;
+    margin: 18px 0 4px;
   }
 
   .line {
@@ -246,31 +246,31 @@
   .tabBox{
     position: relative;
     background: #fff;
-    height: 58px;
     padding: 0 38px;
     margin: 60px 20px 0;
+    border-bottom: 1px solid #E6E6E6;
+    overflow: hidden;
   }
 .tabBox .title{
+  display: block;
   font-size: 20px;
-  color: #333;
-  font-weight: bold;
-  line-height: 58px;
-  margin-right: 23px;
+  font-weight: 500;
+  color: rgba(0, 0, 0, 0.85);
+  line-height: 28px;
+  margin: 26px 0 14px 0;
 }
   .tabList{
     display: inline-block;
   }
   .tab{
     display: inline-block;
-    padding: 0 5px;
+    padding: 5px 14px;
     margin-right: 20px;
-    background: #fff;
-    border-radius:2px;
+    background: #EEEEEE;
     cursor: pointer;
-    font-size: 11px;
-    color: @staticMainColor;
-    border:1px @staticMainColor solid;
-    vertical-align: text-bottom;
+    font-size: 16px;
+    color: #333333;
+    border-radius: 6px 6px 0px 0px;
   }
   .activeTab{
     background: @staticMainColor;
@@ -332,3 +332,52 @@
   background: #f0f2f5;
   opacity: .2;
 }
+.scaletitle{
+  font-size: 20px;
+  font-weight: 500;
+  color: #333333;
+  line-height: 28px;
+  margin: 30px 0 8px 0;
+  text-align: center;
+}
+.scaleBox{
+  border-bottom: none;
+}
+.contentList{
+  max-width: 100%;
+  border-bottom: 1PX solid #F3F3F3;
+  margin-bottom: 6px;
+  .item-list{
+    padding: 0 21px;
+    .item-title{
+      font-size: 14px;
+      font-weight: 400;
+      color: #333333;
+      line-height: 20px;
+      margin-top: 14px;
+    }
+    .item-content{
+      margin: 10px 0;
+      display: flex;
+      flex-flow: wrap;
+      .radio {
+        margin: 5px;
+        margin-right: 25px;
+        label{
+          display: flex;
+          align-items: center;
+          font-weight: 400;
+          color: #666666;
+          line-height: 20px;
+          & input{
+            margin-right: 6px;
+          }
+          .num{
+            margin-left: 10px;
+          }
+        }
+
+      } 
+    }
+  }
+}

文件差异内容过多而无法显示
+ 40 - 28
src/html/staticInfo.html


+ 1 - 0
src/js/cdss.js

@@ -500,6 +500,7 @@ function renderScale(list,showNum,type,hasInfo){
     let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
     $('.moduleItem.evaluation').append(shortStr).append(longStr)
     $('.moduleItem.evaluation').css("display","block")
+    $('.moduleItem.evaluation').children(".shortBox").children(".pushItemBox").children(".pushItemName").addClass("evaluationtitle")
   }
 }
 

+ 311 - 311
src/js/cdssHorizontal.js

@@ -1,11 +1,11 @@
-if(!Promise){
-    var Promise = require("bluebird");
+if (!Promise) {
+  var Promise = require("bluebird");
   // Configure
-    Promise.config({
-      longStackTraces: true,
-      warnings: true // note, run node with --trace-warnings to see full stack traces for warnings
-    })
-  }
+  Promise.config({
+    longStackTraces: true,
+    warnings: true // note, run node with --trace-warnings to see full stack traces for warnings
+  })
+}
 const $ = require("jquery");
 require('./../css/reset.css');
 require('./../css/cdssHorizontal.less');
@@ -17,25 +17,25 @@ require('./../images/dn.png').replace(/^undefined/g, '')
 require('./../images/loading.gif').replace(/^undefined/g, '')
 let emptyImg = require('./../images/empty3.png').replace(/^undefined/g, '')
 require('./../images/new2.png').replace(/^undefined/g, '')
-const { post,config,getUrlArgObject,openNewWin,titleConfigH,throttle, } = require('./promise.js');
+const { post, config, getUrlArgObject, openNewWin, titleConfigH, throttle, } = require('./promise.js');
 let infoImg = require('./../images/icon_info.png').replace(/^undefined/g, '')
 let infoImgOn = require('./../images/icon_info_on.png').replace(/^undefined/g, '')
 let iconArrowUp = require('./../images/icon_arrow_up.png').replace(/^undefined/g, '')
 let iconArrowDown = require('./../images/icon_arrow_down.png').replace(/^undefined/g, '')
 let showImg = require('./../images/show2.png').replace(/^undefined/g, '')
 let collapseImg = require('./../images/collapse2.png').replace(/^undefined/g, '')
-let treatDisName,treatUniqueName
+let treatDisName, treatUniqueName
 let generalTreatInfo
 const { renderFollowUp } = require('./followUp.js');
-const {getTcmMr} = require('./tcmiss.js');
+const { getTcmMr } = require('./tcmiss.js');
 
 setWidth()
-let moduleConfig={
-  auxiliary:"recommendWrap",
-  qc:"qcWrap",
-  medical:"medicalKonwledgeWrap",
-    followup: 'followUpWrap',
-    tcmiss: 'tcmWarp',
+let moduleConfig = {
+  auxiliary: "recommendWrap",
+  qc: "qcWrap",
+  medical: "medicalKonwledgeWrap",
+  followup: 'followUpWrap',
+  tcmiss: 'tcmWarp',
 }
 let allInterface = 0
 let hasCompleteTnterface = 0
@@ -50,203 +50,203 @@ let tipsMsg;
 let caseWriteStandradList;
 
 function getMRInfo() {
-  return post(config.getMr2,{mrId:mrId})
+  return post(config.getMr2, { mrId: mrId })
 }
 function getConf() {
-  var msg = window.msg 
-  return post(config.getPushSet,{hospitalId:hospitalIdUrl||msg.hospitalId||1,planCode: planCode})
+  var msg = window.msg
+  return post(config.getPushSet, { hospitalId: hospitalIdUrl || msg.hospitalId || 1, planCode: planCode })
 }
 function getPushInfo() {
-    return post(config.pushInner, Object.assign({}, msg, {
-        featureType: '1,4,5,6,7,8,9,10,12,13',
-        hospitalId: hospitalIdUrl || msg.hospitalId,
-        ruleType: config.ruleTypeMap['22']
-    }))
-  
-}
-function getPusgWarning(){
-    const indPush = pushMrId ? config.indicationPushCache : config.indicationPush;
-    return post(indPush, Object.assign({}, msg, {ruleType: '1,2,3,4', mrId: pushMrId || mrId}))
-}
-function getWriteStandardPush(){
-  return  post(config.caseWritingPrompt,Object.assign({},msg,{hospitalId:2||msg.hospitalId}))
-}
-
-if(mrId){
-  Promise.all([getConf(),getMRInfo()]).then(([res1,res2])=>{
-    const data = res1.data.data&&res1.data.data[0]
-    msg = res2.data.data ||{}
-    if(!(msg&&msg.diseaseName&&msg.diseaseName.name)){
-      msg.diseaseName={}
+  return post(config.pushInner, Object.assign({}, msg, {
+    featureType: '1,4,5,6,7,8,9,10,12,13',
+    hospitalId: hospitalIdUrl || msg.hospitalId,
+    ruleType: config.ruleTypeMap['22']
+  }))
+
+}
+function getPusgWarning() {
+  const indPush = pushMrId ? config.indicationPushCache : config.indicationPush;
+  return post(indPush, Object.assign({}, msg, { ruleType: '1,2,3,4', mrId: pushMrId || mrId }))
+}
+function getWriteStandardPush() {
+  return post(config.caseWritingPrompt, Object.assign({}, msg, { hospitalId: 2 || msg.hospitalId }))
+}
+
+if (mrId) {
+  Promise.all([getConf(), getMRInfo()]).then(([res1, res2]) => {
+    const data = res1.data.data && res1.data.data[0]
+    msg = res2.data.data || {}
+    if (!(msg && msg.diseaseName && msg.diseaseName.name)) {
+      msg.diseaseName = {}
     }
     window.msg = msg
     renderPage(data)
   })
-} else{
-  getConf().then(res =>{
-    if(res.data.code == '0'){
+} else {
+  getConf().then(res => {
+    if (res.data.code == '0') {
       // const configArr = res.data.data.pushSetList || []
       // getPageInfo(configArr)
-      const data = res.data.data&&res.data.data[0]
+      const data = res.data.data && res.data.data[0]
       renderPage(data)
     }
   })
 }
 
-function renderPage(pageSet){
-  if(!pageSet || !pageSet.sysSetInfo){
+function renderPage(pageSet) {
+  if (!pageSet || !pageSet.sysSetInfo) {
     return
   }
   renderTab(pageSet.sysSetInfo)
   const iframeHei = $(".bodyWrap").height()
   const tabHei = $(".tabList").height()
-  $(".contentWrapper").css("height",iframeHei-tabHei-10-20-30+'px')
-  const hasAuxiliary = hasTab("辅助信息",pageSet.sysSetInfo)
-  const hasMedical = hasTab("医学知识",pageSet.sysSetInfo)
-  const hasFollowUp = hasTab("随访计划",pageSet.sysSetInfo)
-    const hasTcm = hasTab("中医辅助", pageSet.sysSetInfo)
-
-    if (hasTcm) {
-        getTcmMr(mrId, hasTcm);
-    }
-  if(hasAuxiliary){
+  $(".contentWrapper").css("height", iframeHei - tabHei - 10 - 20 - 30 + 'px')
+  const hasAuxiliary = hasTab("辅助信息", pageSet.sysSetInfo)
+  const hasMedical = hasTab("医学知识", pageSet.sysSetInfo)
+  const hasFollowUp = hasTab("随访计划", pageSet.sysSetInfo)
+  const hasTcm = hasTab("中医辅助", pageSet.sysSetInfo)
+
+  if (hasTcm) {
+    getTcmMr(mrId, hasTcm);
+  }
+  if (hasAuxiliary) {
     renderModuleWrapper(hasAuxiliary.planDetails)
     let needPush = isNeedPush(hasAuxiliary.planDetails)
     let needPushWarning = isNeedPushWarning(hasAuxiliary.planDetails)
     let needWriteStandardPush = isNeedwriteStandardPush(hasAuxiliary.planDetails)
-    if(needPush || needPushWarning){
+    if (needPush || needPushWarning) {
       renderPushData()
       allInterface++
     }
-    if(needPushWarning){
+    if (needPushWarning) {
       renderPushWarning()
       allInterface++
     }
-    if(needWriteStandardPush){
+    if (needWriteStandardPush) {
       renderCaseWrite()
       allInterface++
     }
-      if (hasFollowUp) {
-          renderFollowUp(msg, 1)
-      }
+    if (hasFollowUp) {
+      renderFollowUp(msg, 1)
+    }
+  }
+}
+function renderTab(tabList) {
+  if (!tabList) {
+    return
   }
- }
- function renderTab(tabList){
-   if(!tabList){
-     return
-   }
   let tabStr = ''
   let TabNum = 0
-  for(let i = 0; i < tabList.length; i++){
-    if(tabList[i].status == '1'){
+  for (let i = 0; i < tabList.length; i++) {
+    if (tabList[i].status == '1') {
       TabNum++
-      tabStr += `<span class="tab" style="border-bottom:${tabList.length==i+1?'0':'1px solid #3B9ED0'}" data-name="${tabList[i].code}" ><span class="tabName">${tabList[i].name}</span><span class="activeLine"></span></span>`
+      tabStr += `<span class="tab" style="border-bottom:${tabList.length == i + 1 ? '0' : '1px solid #3B9ED0'}" data-name="${tabList[i].code}" ><span class="tabName">${tabList[i].name}</span><span class="activeLine"></span></span>`
     }
-    
+
   }
   $(".tabList").append(tabStr)
   $(".tabList .tab").eq(0).addClass("activeTab")
-  $(".tabList .tab").css("height", 1/TabNum * 100 + '%')
-  let showModuleName =  $(".tabList .tab").eq(0).attr("data-name")
+  $(".tabList .tab").css("height", 1 / TabNum * 100 + '%')
+  let showModuleName = $(".tabList .tab").eq(0).attr("data-name")
   getModuleShow(moduleConfig[showModuleName])
   bindTabClick()
   setTabNameTop()
 }
-function hasTab(tabName,tabList){
-  for(let i = 0; i < tabList.length; i++){
-    if(tabList[i].name == tabName){
+function hasTab(tabName, tabList) {
+  for (let i = 0; i < tabList.length; i++) {
+    if (tabList[i].name == tabName) {
       return tabList[i]
     }
   }
   return false
 }
 
-function renderModuleWrapper(moduleList){
-  if(!moduleList){
+function renderModuleWrapper(moduleList) {
+  if (!moduleList) {
     return
   }
-  let moduleStr = '',treatStr=""
-  for(let i = 0; i < moduleList.length; i++){
-    if(moduleList[i].status !='0'){
-        if (moduleList[i].code == 'general' || moduleList[i].code == 'medicine' || moduleList[i].code == 'operation' || moduleList[i].code == 'nurse') {
-        treatStr += `<div class="moduleItem ${moduleList[i].code }"  data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
-      }else if(moduleList[i].code == 'critical'){
+  let moduleStr = '', treatStr = ""
+  for (let i = 0; i < moduleList.length; i++) {
+    if (moduleList[i].status != '0') {
+      if (moduleList[i].code == 'general' || moduleList[i].code == 'medicine' || moduleList[i].code == 'operation' || moduleList[i].code == 'nurse') {
+        treatStr += `<div class="moduleItem ${moduleList[i].code}"  data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
+      } else if (moduleList[i].code == 'critical') {
         moduleStr += `<div class="moduleItem warning"  data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
         // moduleStr += `<div class="moduleItem tips"  data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
-      }else{
-        moduleStr += `<div class="moduleItem ${moduleList[i].code }"  data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
+      } else {
+        moduleStr += `<div class="moduleItem ${moduleList[i].code}"  data-num="${moduleList[i].number}" style="display:none"><span class="moduleItemTitBox"></span></div>`
       }
     }
-   
+
   }
   $(".recommendWrap .leftBox").append(moduleStr)
   $(".recommendWrap .rightBox").append(treatStr)
 }
-function isNeedPush(list){
-  let pushCode = ["diag","lis","pacs","symptom","vital"]
-  for(let i = 0; i < list.length; i++){
-    if(pushCode.indexOf(list[i].code)>-1){
-      if(list[i].status == "1"){
+function isNeedPush(list) {
+  let pushCode = ["diag", "lis", "pacs", "symptom", "vital"]
+  for (let i = 0; i < list.length; i++) {
+    if (pushCode.indexOf(list[i].code) > -1) {
+      if (list[i].status == "1") {
         return true
       }
     }
   }
   return false
- }
- function isNeedPushWarning(list){
-     let pushCode = ["crivalue", "rationali", "highrisk", "otherremind"]
-  for(let i = 0; i < list.length; i++){
-    if(pushCode.indexOf(list[i].code)>-1){
-      if(list[i].status == "1"){
+}
+function isNeedPushWarning(list) {
+  let pushCode = ["crivalue", "rationali", "highrisk", "otherremind"]
+  for (let i = 0; i < list.length; i++) {
+    if (pushCode.indexOf(list[i].code) > -1) {
+      if (list[i].status == "1") {
         return true
       }
     }
   }
   return false
- }
- function isNeedwriteStandardPush(list){
+}
+function isNeedwriteStandardPush(list) {
   let pushCode = ["casewriting"]
-  for(let i = 0; i < list.length; i++){
-    if(pushCode.indexOf(list[i].code)>-1){
-      if(list[i].status == "1"){
+  for (let i = 0; i < list.length; i++) {
+    if (pushCode.indexOf(list[i].code) > -1) {
+      if (list[i].status == "1") {
         return true
       }
     }
   }
   return false
 }
- function bindTabClick(){
-  $(".tabList .tab").on("click", function(){
+function bindTabClick() {
+  $(".tabList .tab").on("click", function () {
     $(".activeTab").removeClass("activeTab")
     $(this).addClass("activeTab")
     const moduleName = $(this).attr("data-name")
     getModuleShow(moduleConfig[moduleName])
   })
 }
- function getModuleShow(moduleClassName){
-  if( $(`.${moduleClassName}`).css("display") =="none"){
-    $(".moduleWrapper").css("display","none")
-    $(`.${moduleClassName}`).css("display","block")
+function getModuleShow(moduleClassName) {
+  if ($(`.${moduleClassName}`).css("display") == "none") {
+    $(".moduleWrapper").css("display", "none")
+    $(`.${moduleClassName}`).css("display", "block")
   }
 }
- function setTabNameTop(){
-   tabNameList = $(".tabList .tab .tabName")
-   for(let i = 0; i < tabNameList.length; i++){
+function setTabNameTop() {
+  tabNameList = $(".tabList .tab .tabName")
+  for (let i = 0; i < tabNameList.length; i++) {
     let tabNameHei = $(".tabList .tab .tabName").eq(i).height()
-    $(".tabList .tab .tabName").eq(i).css("marginTop",-tabNameHei/2+"px")
-   }
- }
-function renderCaseWrite(){
-  getWriteStandardPush().then(res =>{
+    $(".tabList .tab .tabName").eq(i).css("marginTop", -tabNameHei / 2 + "px")
+  }
+}
+function renderCaseWrite() {
+  getWriteStandardPush().then(res => {
     hasCompleteTnterface++
-    if(res.data.code == '0'){
+    if (res.data.code == '0') {
       const caseWriteList = res.data.data || {}
       let caseWritePush = Object.keys(caseWriteList) || []
-     
+
       renderwriteStandardPage(caseWritePush)
-      if($(".moduleItem.casewriting")){
+      if ($(".moduleItem.casewriting")) {
         let casewritingHei = $(".moduleItem.casewriting")[0].scrollHeight
-        if(casewritingHei > 81){
+        if (casewritingHei > 81) {
           $(".casewriting").append(`<span class="showMoreCaseWrite">更多</span>`)
           caseWriteStandradList = caseWritePush
           showMoreCaseWrite()
@@ -255,24 +255,24 @@ function renderCaseWrite(){
     }
   })
 }
-function renderPushData(){
-  return getPushInfo().then(res =>{
+function renderPushData() {
+  return getPushInfo().then(res => {
     hasCompleteTnterface++
-    if(res.data.code == "0"){
+    if (res.data.code == "0") {
       const result = res.data.data
-      let diagPush = result.dis ||{}
+      let diagPush = result.dis || {}
       let lisPush = result.lis || []
       let scalePush = result.scale || []
       let pacsPush = result.pacs || []
-      let symptomPush = result.symptom ||[]
-      let checkupPush = result.vital ||[]
+      let symptomPush = result.symptom || []
+      let checkupPush = result.vital || []
       let medicinesPush = result.medicines || []
-      let operationsPush = result.operations ||[]
-        let nursePush = result.nurse || []
-      let treatPush = result.treat&&result.treat[0] ||{}
-      treatDisName = treatPush&&treatPush["name"]
-      treatUniqueName = treatPush&&treatPush["uniqueName"]
-      let generaTreatPush = treatPush&&treatPush["generaTreat"]
+      let operationsPush = result.operations || []
+      let nursePush = result.nurse || []
+      let treatPush = result.treat && result.treat[0] || {}
+      treatDisName = treatPush && treatPush["name"]
+      treatUniqueName = treatPush && treatPush["uniqueName"]
+      let generaTreatPush = treatPush && treatPush["generaTreat"]
       generalTreatInfo = generaTreatPush
       // 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}]
@@ -284,28 +284,28 @@ 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,3,true)
-      renderScale(scalePush,scaleNum,8,true)
-      renderPacs(pacsPush,pacsNum,5,true)
-      renderCheckup(checkupPush,checkupNum,null,true)
-      renderSymptomPush(symptomPush,symptomNum,null,true)
+      renderLis(lisPush, lisNum, 3, true)
+      renderScale(scalePush, scaleNum, 8, true)
+      renderPacs(pacsPush, pacsNum, 5, true)
+      renderCheckup(checkupPush, checkupNum, null, true)
+      renderSymptomPush(symptomPush, symptomNum, null, true)
       renderDiag(diagPush)
-        if (medicinesPush.length > 0 || operationsPush.length > 0 || generaTreatPush || nursePush.length > 0) {
+      if (medicinesPush.length > 0 || operationsPush.length > 0 || generaTreatPush || nursePush.length > 0) {
         let str = `<img class="treatIcon" src = ${titleConfigH["treat"].icon} /><span>${titleConfigH["treat"].name}</span>`
         $(".rightBoxTitle").append(str)
         renderDisName()
-        $(".rightWrapper").css("display","inline-block")
-        $(".leftWrapper").css("borderRight","1px solid #E6E6E6")
-      }else{
+        $(".rightWrapper").css("display", "inline-block")
+        $(".leftWrapper").css("borderRight", "1px solid #E6E6E6")
+      } else {
         $(".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)){
-        $(".rightWrapper").css("display","none")
+      if ((!$(".moduleItem.medicine") && !$(".moduleItem.operation") && !(".moduleItem.general")) || ($(".moduleItem.general").length === 0 && $(".moduleItem.medicine").length === 0 && $(".moduleItem.operation").length === 0)) {
+        $(".rightWrapper").css("display", "none")
         $(".leftWrapper").css({
           borderRight: "0px",
           width: "100%"
@@ -313,9 +313,9 @@ function renderPushData(){
       }
 
       rendergeneraTreatPush(generaTreatPush)
-      renderMedicinesPush(medicinesPush,medicinesNum,2,true)
-      renderOperationPush(operationsPush,operationsNum,6,true)
-        renderNurse(nursePush, nurseNum, 9, true)
+      renderMedicinesPush(medicinesPush, medicinesNum, 2, true)
+      renderOperationPush(operationsPush, operationsNum, 6, true)
+      renderNurse(nursePush, nurseNum, 9, true)
       // if(hasCompleteTnterface === allInterface){
       //   $('.loading').css("display","none")
       //   if(moduleNum === 0){ 
@@ -329,216 +329,217 @@ function renderPushData(){
   })
 }
 
-function renderLis(list,showNum,type,hasInfo){
-  if(list.length > 0 &&  $(".moduleItem.lis").length > 0){
+function renderLis(list, showNum, type, hasInfo) {
+  if (list.length > 0 && $(".moduleItem.lis").length > 0) {
     moduleNum++
     $('.moduleItem.lis .moduleItemTitBox').append(titleStr("lisPush"))
-    let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
     $('.moduleItem.lis').append(shortStr)
-    $('.moduleItem.lis').append(renderLongStr(titleConfigH["lisPush"].name,longStr,titleConfigH["lisPush"].location))
-    $('.moduleItem.lis').css("display","block")
+    $('.moduleItem.lis').append(renderLongStr(titleConfigH["lisPush"].name, longStr, titleConfigH["lisPush"].location))
+    $('.moduleItem.lis').css("display", "block")
   }
 }
-function renderScale(list,showNum,type,hasInfo){
-  if(list.length > 0 &&  $(".moduleItem.evaluation").length > 0){
+function renderScale(list, showNum, type, hasInfo) {
+  if (list.length > 0 && $(".moduleItem.evaluation").length > 0) {
     moduleNum++
     $('.moduleItem.evaluation .moduleItemTitBox').append(titleStr("scalePush"))
-    let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
     $('.moduleItem.evaluation').append(shortStr)
-    $('.moduleItem.evaluation').append(renderLongStr(titleConfigH["scalePush"].name,longStr,titleConfigH["scalePush"].location))
-    $('.moduleItem.evaluation').css("display","block")
+    $('.moduleItem.evaluation').append(renderLongStr(titleConfigH["scalePush"].name, longStr, titleConfigH["scalePush"].location))
+    $('.moduleItem.evaluation').css("display", "block")
+    $('.moduleItem.evaluation').children(".shortBox").children(".pushItemBox").children(".pushItemName").addClass("evaluationtitle")
   }
 }
 
 function renderNurse(list, showNum, type, hasInfo) {
-    if (list.length > 0 && $(".moduleItem.nurse").length > 0) {
-        moduleNum++
-        $('.moduleItem.nurse .moduleItemTitBox').append(titleStr("nursePush"))
-        let {shortStr, longStr} = renderItemWrapper(list, showNum, type, hasInfo)
-        $(".moduleItem.nurse").append(shortStr)
-        $(".moduleItem.nurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
-        $(".moduleItem.nurse").css("display", "block")
-    }
+  if (list.length > 0 && $(".moduleItem.nurse").length > 0) {
+    moduleNum++
+    $('.moduleItem.nurse .moduleItemTitBox').append(titleStr("nursePush"))
+    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
+    $(".moduleItem.nurse").append(shortStr)
+    $(".moduleItem.nurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
+    $(".moduleItem.nurse").css("display", "block")
+  }
 }
-function renderPacs(list,showNum,type,hasInfo){
-  if(list.length > 0 &&  $(".moduleItem.pacs").length > 0){
+function renderPacs(list, showNum, type, hasInfo) {
+  if (list.length > 0 && $(".moduleItem.pacs").length > 0) {
     moduleNum++
     $('.moduleItem.pacs .moduleItemTitBox').append(titleStr("pacsPush"))
-    let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
     $(".moduleItem.pacs").append(shortStr)
-    $(".moduleItem.pacs").append(renderLongStr(titleConfigH["pacsPush"].name,longStr,titleConfigH["pacsPush"].location))
-    $('.moduleItem.pacs').css("display","block")
+    $(".moduleItem.pacs").append(renderLongStr(titleConfigH["pacsPush"].name, longStr, titleConfigH["pacsPush"].location))
+    $('.moduleItem.pacs').css("display", "block")
   }
- 
+
 }
-function renderSymptomPush(list,showNum,type,hasInfo){
-  if(list.length > 0 &&  $(".moduleItem.symptom").length > 0){
+function renderSymptomPush(list, showNum, type, hasInfo) {
+  if (list.length > 0 && $(".moduleItem.symptom").length > 0) {
     moduleNum++
     $('.moduleItem.symptom .moduleItemTitBox').append(titleStr("symptomPush"))
-    let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
     $(".moduleItem.symptom").append(shortStr)
-    $(".moduleItem.symptom").append(renderLongStr(titleConfigH["symptomPush"].name,longStr,titleConfigH["symptomPush"].location))
-    $('.moduleItem.symptom').css("display","block")
+    $(".moduleItem.symptom").append(renderLongStr(titleConfigH["symptomPush"].name, longStr, titleConfigH["symptomPush"].location))
+    $('.moduleItem.symptom').css("display", "block")
   }
- 
+
 }
-function renderMedicinesPush(list,showNum,type,hasInfo){
+function renderMedicinesPush(list, showNum, type, hasInfo) {
 
-  if(list.length > 0 &&  $(".moduleItem.medicine").length > 0){
+  if (list.length > 0 && $(".moduleItem.medicine").length > 0) {
     moduleNum++
     $('.moduleItem.medicine .moduleItemTitBox').append(titleStr("drugPush"))
-    let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
     $(".moduleItem.medicine").append(shortStr)
-    $(".moduleItem.medicine").append(renderLongStr(titleConfigH["drugPush"].name,longStr,titleConfigH["drugPush"].location))
-    $(".moduleItem.medicine").css("display","block")
+    $(".moduleItem.medicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
+    $(".moduleItem.medicine").css("display", "block")
   }
- 
+
 }
-function renderOperationPush(list,showNum,type,hasInfo){
-  if(list.length > 0 &&  $(".moduleItem.operation").length > 0){
+function renderOperationPush(list, showNum, type, hasInfo) {
+  if (list.length > 0 && $(".moduleItem.operation").length > 0) {
     moduleNum++
     $('.moduleItem.operation .moduleItemTitBox').append(titleStr("operationPush"))
-    let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
     $(".moduleItem.operation").append(shortStr)
-    $(".moduleItem.operation").append(renderLongStr(titleConfigH["operationPush"].name,longStr,titleConfigH["operationPush"].location))
-    $(".moduleItem.operation").css("display","block")
+    $(".moduleItem.operation").append(renderLongStr(titleConfigH["operationPush"].name, longStr, titleConfigH["operationPush"].location))
+    $(".moduleItem.operation").css("display", "block")
   }
- 
+
 }
-function renderDisName(){
-  $(".disName").append(`${treatDisName||''}`)
+function renderDisName() {
+  $(".disName").append(`${treatDisName || ''}`)
 }
-function rendergeneraTreatPush(list){
-  if(list&&list.length > 0 &&  $(".moduleItem.general").length > 0){
+function rendergeneraTreatPush(list) {
+  if (list && list.length > 0 && $(".moduleItem.general").length > 0) {
     moduleNum++
- 
+
     $('.moduleItem.general .moduleItemTitBox').append(titleStr("generaTreatPush"))
     let str = `<div class="generalTreatInfo clearfix isOverFlow">${list}</div>`
     $(".moduleItem.general").append(str)
-    
-    setTimeout(function(){
+
+    setTimeout(function () {
       let generaTreatHei = $(".moduleItem .generalTreatInfo")[0].scrollHeight
-      if(generaTreatHei >81){
+      if (generaTreatHei > 81) {
         $(".moduleItem .generalTreatInfo").append(`<span class="showMoreGeneralTreat">更多</span>`)
         bindGeneralSlide()
       }
     })
-  
-   
-    $(".moduleItem.general").css("display","block")
+
+
+    $(".moduleItem.general").css("display", "block")
   }
 }
-function renderCheckup(list,showNum,type,hasInfo){
-  if(list.length > 0 &&  $(".moduleItem.vital").length > 0){
+function renderCheckup(list, showNum, type, hasInfo) {
+  if (list.length > 0 && $(".moduleItem.vital").length > 0) {
     moduleNum++
     $(".moduleItem.vital .moduleItemTitBox").append(titleStr("checkupPush"))
-    let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum, type, hasInfo)
     $(".moduleItem.vital").append(shortStr)
-    $(".moduleItem.vital").append(renderLongStr(titleConfigH["checkupPush"].name,longStr,titleConfigH["checkupPush"].location))
-    $('.moduleItem.vital').css("display","block")
+    $(".moduleItem.vital").append(renderLongStr(titleConfigH["checkupPush"].name, longStr, titleConfigH["checkupPush"].location))
+    $('.moduleItem.vital').css("display", "block")
   }
 }
-function renderDiag(diagPush){
+function renderDiag(diagPush) {
   let possibleDiagPush = diagPush["可能诊断"] || []
   let firstDiagPush = diagPush["初步诊断"] || []
   let identifyDiagPush = diagPush["鉴别诊断"] || []
   let warningDiagPush = diagPush["警惕"] || []
-  let number =  $('.moduleItem.diag').attr("data-num") || 5
-  let warnNumber =  $('.moduleItem.warning').attr("data-num") || 5
-  
+  let number = $('.moduleItem.diag').attr("data-num") || 5
+  let warnNumber = $('.moduleItem.warning').attr("data-num") || 5
+
   $('.moduleItem.diag .moduleItemTitBox').append(titleStr("diagPush"))
   // let warningDiagPush = [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
   // let firstDiagPush =  [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
   // let identifyDiagPush = diagPush["鉴别诊断"] ||  [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
-  renderDiagItem(possibleDiagPush,"可能诊断",number)
-  renderDiagItem(firstDiagPush,"初步诊断",number)
-  renderDiagItem(identifyDiagPush,"鉴别诊断",number)
-  renderWarningDiag(warningDiagPush,"警惕",1000)
+  renderDiagItem(possibleDiagPush, "可能诊断", number)
+  renderDiagItem(firstDiagPush, "初步诊断", number)
+  renderDiagItem(identifyDiagPush, "鉴别诊断", number)
+  renderWarningDiag(warningDiagPush, "警惕", 1000)
   moreInfo()
 }
-function renderDiagItem(list,name,number){
-  if(list.length === 0){
+function renderDiagItem(list, name, number) {
+  if (list.length === 0) {
     return
   }
   let titleStr = `<span class="moduleBoxName">${name}</span>`
-  let {shortStr, longStr} = renderItemWrapper(list,number,1,true)
+  let { shortStr, longStr } = renderItemWrapper(list, number, 1, true)
   let boxStr = `<div class="moduleBox">
         ${titleStr}
         ${shortStr}
       </div>`
   $(".diag").append(boxStr)
-  $(".diag").append(renderLongStr(name,longStr,"left"))
-  $('.moduleItem.diag').css("display","block")
+  $(".diag").append(renderLongStr(name, longStr, "left"))
+  $('.moduleItem.diag').css("display", "block")
 }
-function renderWarningDiag(list,name,showNum){
-  if(list.length > 0 &&  $(".moduleItem.warning").length > 0){
+function renderWarningDiag(list, name, showNum) {
+  if (list.length > 0 && $(".moduleItem.warning").length > 0) {
     moduleNum++
     $('.moduleItem.warning .moduleItemTitBox').append(titleStr("vigilancePush"))
-    let {shortStr, longStr} = renderItemWrapper(list,showNum,1,true)
+    let { shortStr, longStr } = renderItemWrapper(list, showNum, 1, true)
     $('.moduleItem.warning').append(shortStr)
-    $('.moduleItem.warning').css("display","block")
+    $('.moduleItem.warning').css("display", "block")
   }
 }
-function renderwriteStandardPage(list){
-  if(list.length > 0 &&  $(".moduleItem.casewriting").length > 0){
+function renderwriteStandardPage(list) {
+  if (list.length > 0 && $(".moduleItem.casewriting").length > 0) {
     moduleNum++
     $(".moduleItem.casewriting .moduleItemTitBox").append(titleStr("casewritingPush"))
     let str = ``
-    for(let i = 0; i < list.length; i++){
-       str += `<p>${list[i]}</p>`
+    for (let i = 0; i < list.length; i++) {
+      str += `<p>${list[i]}</p>`
     }
     $(".moduleItem.casewriting").append(str)
-    $('.moduleItem.casewriting').css("display","block")
+    $('.moduleItem.casewriting').css("display", "block")
   }
 }
-function renderPushWarning(){
-  return getPusgWarning().then(res =>{
+function renderPushWarning() {
+  return getPusgWarning().then(res => {
     hasCompleteTnterface++
-    if(res.data.code == '0'){
-        const result = res.data.data;
+    if (res.data.code == '0') {
+      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 || []  //其他提醒
-      renderBillingPush(billMsgList,'开单合理性','rationali')
-      renderBillingPush(highRiskList,'高风险提示','highrisk')
-      renderBillingPush(criticalValList,'危急值提醒','crivalue')
-      renderBillingPush(noteList,'检查注意事项')
-      renderBillingPush(otherList,'其他提醒','otherremind')
-      const codes = ($(".rationali.tips").length?'rationali,':"")+($(".highrisk.tips").length?'highrisk,':"")+($(".crivalue.tips").length?'crivalue,':"")+($(".otherremind.tips").length?'otherremind':"");
-      $(".moduleItem.tips").wrapAll("<div class='tips-cont' codes="+codes+"></div>");
+      renderBillingPush(billMsgList, '开单合理性', 'rationali')
+      renderBillingPush(highRiskList, '高风险提示', 'highrisk')
+      renderBillingPush(criticalValList, '危急值提醒', 'crivalue')
+      renderBillingPush(noteList, '检查注意事项')
+      renderBillingPush(otherList, '其他提醒', 'otherremind')
+      const codes = ($(".rationali.tips").length ? 'rationali,' : "") + ($(".highrisk.tips").length ? 'highrisk,' : "") + ($(".crivalue.tips").length ? 'crivalue,' : "") + ($(".otherremind.tips").length ? 'otherremind' : "");
+      $(".moduleItem.tips").wrapAll("<div class='tips-cont' codes=" + codes + "></div>");
       $('.tips-cont').append(titleStr('warning'))
       moreInfo()
       const hasTipsNum = $(".moduleItem.tips").length;
-      if(hasTipsNum){
+      if (hasTipsNum) {
         let tipsHei = $(".tips-cont")[0].scrollHeight;
-        if(tipsHei > 81){
+        if (tipsHei > 81) {
           $(".tips-cont").append(`<span class="showMoreNewPage">更多</span>`)
           tipsMsg = result
           showMoreNewPage()
         }
       }
- 
+
       // renderBillingPush(dubugStr,'注意调试信息')
-     
+
     }
-    if(hasCompleteTnterface === allInterface){
-      $('.loading').css("display","none")
-      if(moduleNum === 0){//console.log(999)
+    if (hasCompleteTnterface === allInterface) {
+      $('.loading').css("display", "none")
+      if (moduleNum === 0) {//console.log(999)
         // empty()
       }
     }
-    
+
   })
 }
-function renderBillingPush(list,name,code){
-  if(list.length === 0){
+function renderBillingPush(list, name, code) {
+  if (list.length === 0) {
     return
   }
   let str = ``
-  for(let i = 0; i < list.length; i++){
+  for (let i = 0; i < list.length; i++) {
     str += `<div class="billingPushItem">${list[i].msg}</div>`
   }
   let titleStr = `<span class="moduleBoxName">${name}</span>`
@@ -546,11 +547,11 @@ function renderBillingPush(list,name,code){
         ${titleStr}
         ${str}
       </div>`
-  $("."+code).append(boxStr)
-  $('.moduleItem.'+code).addClass("tips").attr("code",code).css("display","block")
+  $("." + code).append(boxStr)
+  $('.moduleItem.' + code).addClass("tips").attr("code", code).css("display", "block")
 }
-function renderLongStr(name,longStr,location){
-  if(!longStr){
+function renderLongStr(name, longStr, location) {
+  if (!longStr) {
     return
   }
   let str = `
@@ -563,94 +564,93 @@ function renderLongStr(name,longStr,location){
 }
 
 
-function renderItemWrapper(list,showNum,type,hasInfo){
+function renderItemWrapper(list, showNum, type, hasInfo) {
   let showNum1 = showNum || 5
   let shortStr = '', longStr = ''
-
-  for(let i = 0; i < list.length; i++){
-    if(i <= showNum1-1){
-      shortStr += renderPushItem(list[i],type)
+  for (let i = 0; i < list.length; i++) {
+    if (i <= showNum1 - 1) {
+      shortStr += renderPushItem(list[i], type)
     }
-    longStr += renderPushItem(list[i],type)
+    longStr += renderPushItem(list[i], type)
   }
 
-  if(showNum1 >= list.length){
+  if (showNum1 >= list.length) {
     return {
-      shortStr:`<div class="shortBox">${shortStr}</div>`,
-      longStr:''
+      shortStr: `<div class="shortBox">${shortStr}</div>`,
+      longStr: ''
     }
-  }else{
+  } else {
     shortStr += `<span class="showMore"> <img class="iconArrowImg" src="${showImg}"></span>`
     longStr += `<span class="showLess"><img class="iconArrowImg"  src="${collapseImg}"></span>`
     return {
-      shortStr:`<div class="shortBox clearfix">${shortStr}</div>`,
-      longStr:`<div class="longBox clearfix">${longStr}</div>`
+      shortStr: `<div class="shortBox clearfix">${shortStr}</div>`,
+      longStr: `<div class="longBox clearfix">${longStr}</div>`
     }
   }
 }
-function renderPushItem(item,type){
-  str= `<span class="pushItemBox" data-name="${item.name}" data-type="${type}"><span class="pushItemName">${type==8?('【'+item.name+'】'):item.name}</span>${item.hasInfo=="1"?`<img class="infoImg" src="${infoImg}">`:""}</span>`
-return str
+function renderPushItem(item, type) {
+  str = `<span class="pushItemBox" data-name="${item.name}" data-type="${type}"><span class="pushItemName">${type == 8 ? ('【' + item.name + '】') : item.name}</span>${item.hasInfo == "1" ? `<img class="infoImg" src="${infoImg}">` : ""}</span>`
+  return str
 }
-function bindOpenInfo(){
-  $(".infoImg").on("mouseenter", function(){
+function bindOpenInfo() {
+  $(".infoImg").on("mouseenter", function () {
     $(this).attr("src", infoImgOn)
-  }).on("mouseleave", function(){
+  }).on("mouseleave", function () {
     $(this).attr("src", infoImg)
   })
 }
 
 
-function titleStr(type){
+function titleStr(type) {
   let titleStr = ''
   titleStr += `<div class="moduleTitle"><img class="titleIcon" src=${titleConfigH[type].icon}>${titleConfigH[type].name}:</div>`
   return titleStr
 }
-function bindSlide(){
-  $(".showMore").on("click", function(){
-    $(".longStrBox").css("display","none")
-    $(this).parents(".moduleItem ").find(".longStrBox").css("display","block")
+function bindSlide() {
+  $(".showMore").on("click", function () {
+    $(".longStrBox").css("display", "none")
+    $(this).parents(".moduleItem ").find(".longStrBox").css("display", "block")
     let location = $(this).parents(".moduleItem ").find(".longStrBox").attr("data-location")
     let scrollTop = getLongTop(location)
-    $(this).parents(".moduleItem ").find(".longStrBox").css("top", 5 +Number(scrollTop)+ "px")
+    $(this).parents(".moduleItem ").find(".longStrBox").css("top", 5 + Number(scrollTop) + "px")
   })
-  $(".showLess").on("click", function(){
-    $(this).parent().parent().css("display","none")
+  $(".showLess").on("click", function () {
+    $(this).parent().parent().css("display", "none")
   })
   addScrollEvent()
 }
-function showMoreNewPage(){
-    const codes = $(".tips-cont").attr("codes");
-  $(".showMoreNewPage").on("click", function(){
+function showMoreNewPage() {
+  const codes = $(".tips-cont").attr("codes");
+  $(".showMoreNewPage").on("click", function () {
     // openNewWin(`smartAlert.html?billMsgList=${encodeURIComponent(billMsgList)}&highRiskList=${encodeURIComponent(highRiskList)}&criticalValList=${encodeURIComponent(criticalValList)}&noteList=${encodeURIComponent(noteList)}`)
-    openNewWin(`smartAlert.html?mrId=${mrId}&hospitalId=${hospitalIdUrl}&codes=`+codes);
+    openNewWin(`smartAlert.html?mrId=${mrId}&hospitalId=${hospitalIdUrl}&codes=` + codes);
   })
 }
-function showMoreCaseWrite(){
-  $(".showMoreCaseWrite").on("click", function(){
+function showMoreCaseWrite() {
+  $(".showMoreCaseWrite").on("click", function () {
     // openNewWin(`smartAlert.html?billMsgList=${encodeURIComponent(billMsgList)}&highRiskList=${encodeURIComponent(highRiskList)}&criticalValList=${encodeURIComponent(criticalValList)}&noteList=${encodeURIComponent(noteList)}`)
     openNewWin(`caseWriteStandard.html?caseWriteStandradList=${encodeURIComponent(JSON.stringify(caseWriteStandradList))}`)
   })
 }
-function bindGeneralSlide(){
-  $(".showMoreGeneralTreat").on("click",function(){
+function bindGeneralSlide() {
+  $(".showMoreGeneralTreat").on("click", function () {
     openNewWin(`generalTreat.html?disName=${treatDisName}&name=${treatUniqueName}`)
   })
 }
-function setWidth(){
+function setWidth() {
   let winWidth = $(".bodyWrap").css("width")
-  $(".contentBox").css("width",winWidth)
+  $(".contentBox").css("width", winWidth)
 }
 
 //医学知识搜索
 searchMedical()
-function searchMedical(){
-  $(".medicalKonwledgeWrap .search").on("click", function(){
+function searchMedical() {
+  $(".medicalKonwledgeWrap .search").on("click", function () {
     openNewWin(`homeStatic.html?mrId=${mrId}&hospitalId=${hospitalIdUrl}&planCode=${planCode}`)
   })
 }
 function moreInfo() {
-  $('.infoImg').off("click").click(function(){
+  $('.infoImg').off("click").click(function () {
     const name = $(this).parent().attr('data-name')
     const type = $(this).parent().attr('data-type')
     openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
@@ -661,48 +661,48 @@ function getVersion() {
     const data = res.data.data;
     const ver = localStorage.getItem('versionTime');
     const time = data.refreshTime;
-    if(!ver||ver===time+"=new"||time!==ver.replace("=new","")){       //判断版本是否更新
+    if (!ver || ver === time + "=new" || time !== ver.replace("=new", "")) {       //判断版本是否更新
       $(".versionBottom").addClass('new-icon');
-      localStorage.setItem('versionTime',time+"=new");     //保存版本更新时间
-    }else{
+      localStorage.setItem('versionTime', time + "=new");     //保存版本更新时间
+    } else {
       $(".versionBottom").removeClass("new-icon");
     }
   })
 }
-function getLongTop(type){
+function getLongTop(type) {
   let scrollTop = 0
-  if(type === "left"){
+  if (type === "left") {
     scrollTop = $(".leftWrapper").scrollTop() || 0
-  }else if(type === "right"){
+  } else if (type === "right") {
     scrollTop = $(".rightWrapper").scrollTop() || 0
   }
   return scrollTop
 }
-function addScrollEvent(){
-  $(`.leftWrapper`).off("scroll").scroll(throttle(function(){
+function addScrollEvent() {
+  $(`.leftWrapper`).off("scroll").scroll(throttle(function () {
 
-    if($(".leftWrapper .longStrBox:visible").length){
-        $(".leftWrapper .longStrBox:visible").css("top",Number(getLongTop("left"))+5+"px")
+    if ($(".leftWrapper .longStrBox:visible").length) {
+      $(".leftWrapper .longStrBox:visible").css("top", Number(getLongTop("left")) + 5 + "px")
     }
   }, 100));
-  $(`.rightWrapper`).off("scroll").scroll(throttle(function(){
-      if ($(".rightWrapper .longStrBox:visible").css("display") === "block") {
-          $(".rightWrapper .longStrBox:visible").css("top", Number(getLongTop("right")) + 5 + "px")
+  $(`.rightWrapper`).off("scroll").scroll(throttle(function () {
+    if ($(".rightWrapper .longStrBox:visible").css("display") === "block") {
+      $(".rightWrapper .longStrBox:visible").css("top", Number(getLongTop("right")) + 5 + "px")
     }
   }, 100));
 }
-$(function(){
+$(function () {
   getVersion()
-  $(window).on("resize",function(){
+  $(window).on("resize", function () {
     setWidth()
   })
-  $(".versionTop").on("click", function(){
+  $(".versionTop").on("click", function () {
     openNewWin("disclaimer.html")
   });
-  $(".versionBottom").on("click", function(){
+  $(".versionBottom").on("click", function () {
     const ver = localStorage.getItem('versionTime');
     $(".versionBottom").removeClass('new-icon');
-    localStorage.setItem('versionTime',ver.replace("=new",""));
+    localStorage.setItem('versionTime', ver.replace("=new", ""));
     openNewWin("version.html");
   });
 })

+ 139 - 71
src/js/staticInfo.js

@@ -1,6 +1,6 @@
-if(!Promise){
+if (!Promise) {
   var Promise = require("bluebird");
-// Configure
+  // Configure
   Promise.config({
     longStackTraces: true,
     warnings: true // note, run node with --trace-warnings to see full stack traces for warnings
@@ -16,14 +16,14 @@ const {
   openNewWin
 } = require('./promise.js');
 const $ = require("jquery");
-let showName,noticeName,clinicalPathwayName
+let showName, noticeName, clinicalPathwayName
 
 function getInfomation() {
   var param = {
     "type": getUrlArgObject('type'),
     "name": getUrlArgObject('name'),
     "position": getUrlArgObject('position'),
-    "contentTypes":[1,2,3]
+    "contentTypes": [1, 2, 3]
   };
   showName = param.name
   $(".tabBox .title").html(showName);
@@ -33,72 +33,136 @@ function getInfomation() {
     document.title = showName
     var str = '';
     var anchors = '';
-  
+
     if (!data) {
       $(".title").html("暂时没有数据");
       $(".anchors").css("display", "none");
       return;
     }
     var detailList = data.details
+    var scale = data.scale
     var staticKnowList = detailList['静态知识']
     var noticeInfo = detailList['注意事项']
     var clinicalPathwayInfo = detailList['临床路径']
+    var scaleInfo = scale ? scale.scaleDetails : ''
+    var name = data.name
     noticeName = data.noticeName || "注意事项"
     clinicalPathwayName = data.clinicalPathwayName || "临床路径"
-
-    renderTab(detailList)
-    staticKnowList&&renderContent(staticKnowList,'staticKnowledge')
-    noticeInfo&&renderContent(noticeInfo,'notice')
-    clinicalPathwayInfo&&renderContent(clinicalPathwayInfo,'clinicalPathway')
-
-    $('.content img').bind('contextmenu', function(){
+    console.log(clinicalPathwayName)
+    renderTab(detailList, scale)
+    staticKnowList && renderContent(staticKnowList, 'staticKnowledge')
+    noticeInfo && renderContent(noticeInfo, 'notice')
+    clinicalPathwayInfo && renderContent(clinicalPathwayInfo, 'clinicalPathway')
+    scaleInfo && renderContentscale(scaleInfo, 'scale', name)
+
+    $('.content img').bind('contextmenu', function () {
       return false
     })
-   
+
   })
 }
 getInfomation();
 
 
-function renderContent(list, contentWrapClassName){
+function renderContent(list, contentWrapClassName) {
+
+  for (var i = 0; i < list.length; i++) {
+    var item = list[i];
+    item.content = item.content && item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
+    anchors = '<li><i></i><a href="#' + contentWrapClassName + i +
+      '">' + item.title + '</a></li><li class="anchor-line"></li>';
+    str = '<div class="infoBox"><div class="title"> <h2 class="titleH2" id="' + contentWrapClassName + i +
+      '">'
+    /*if (getUrlArgObject('type') == 8) {
+      str += '【' + item.title + '】'
+    } else {*/
+    str += item.title
+    /*}*/
+    str += '</h2></div>' +
+      '<div class="contentWrapper"><pre>' + item.content + '</pre><div></div>';
+    str = `<div class="infoWrapper">${str}</div>`
+    $(`.${contentWrapClassName} .infos`).append(str);
+    $(`.${contentWrapClassName} .anchors ul`).append(anchors);
+  }
+
+  function addScrollEvent() {
+    var scrollTop = $(`.${contentWrapClassName} .infos`).scrollTop()
+
+    var divHeight = 0;
     for (var i = 0; i < list.length; i++) {
-        var item = list[i];
-        item.content = item.content&&item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
-        anchors = '<li><i></i><a href="#' + contentWrapClassName+i +
-          '">' + item.title + '</a></li><li class="anchor-line"></li>';
-        str = '<div class="infoBox"><div class="title"> <h2 class="titleH2" id="' + contentWrapClassName+i +
-          '">'
-        /*if (getUrlArgObject('type') == 8) {
-          str += '【' + item.title + '】'
-        } else {*/
-          str += item.title
-        /*}*/
-        str += '</h2></div>' +
-          '<div class="contentWrapper"><pre>' + item.content + '</pre><div></div>';
-          str = `<div class="infoWrapper">${str}</div>`
-        $(`.${contentWrapClassName} .infos`).append(str);
-        $(`.${contentWrapClassName} .anchors ul`).append(anchors);
+      divHeight = divHeight + parseInt($('#' + contentWrapClassName + i).css('height')) + parseInt($('#' + contentWrapClassName + i).parent().next().css('height')) + 20
+      if (divHeight > scrollTop) {
+        var anchor = 2 * i;
+        $(`.${contentWrapClassName} .anchors ul`).children().eq(anchor).addClass('active').siblings().removeClass('active');
+        return;
+      }
     }
+  }
+  $(`.${contentWrapClassName} .infos`).scroll(throttle(addScrollEvent, 200));
+  addLinkClickEvent(contentWrapClassName);
+  adjustHeight();
+  adjustWidth()
+}
 
-    function addScrollEvent() {
-      var scrollTop = $(`.${contentWrapClassName} .infos`).scrollTop()
-
-      var divHeight = 0;
-      for (var i = 0; i < list.length; i++) {
-        divHeight = divHeight + parseInt($('#'+contentWrapClassName+i).css('height')) + parseInt($('#'+contentWrapClassName+i).parent().next().css('height')) + 20
-        if (divHeight > scrollTop) {
-          var anchor = 2 * i;
-          $(`.${contentWrapClassName} .anchors ul`).children().eq(anchor).addClass('active').siblings().removeClass('active');
-          return;
+function renderContentscale(list, contentWrapClassName, name) {
+  anchors = '<li><i></i><a href="#' + contentWrapClassName +
+    '">' + name + '</a></li><li class="anchor-line"></li>';
+  str = '<p class="scaletitle">' + name + '</p>'
+  $(`.${contentWrapClassName} .infos`).append(str);
+  $(`.${contentWrapClassName} .anchors ul`).append(anchors);
+  for (var i = 0; i < list[0].detailList.length; i++) {
+    var item = list[0].detailList[i];
+    item.content = item.content && item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
+    str = '<div class="infoBox scaleBox"><div class="title"> <h2 class="titleH2" id="' + contentWrapClassName + i +
+      '">'
+    str += item.content
+    str += '</h2></div>'
+    str = `<div class="infoWrapper">${str}</div>`
+    $(`.${contentWrapClassName} .infos`).append(str);
+    for (var j = 0; j < item.subList.length; j++) {
+      var items = item.subList[j];
+      for (var k = 0; k < items.detailList.length; k++) {
+        var it = items.detailList[k];
+        it.content = it.content && it.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
+        str = '<div class="contentList"><div class="item-list">';
+        str += '<p class="item-title">' + it.content + '</p>'
+        str += '<div class="item-content" data-id="' + it.id + '">'
+        str += '</div></div></div>'
+        $(`.${contentWrapClassName} .infos .infoWrapper .infoBox`).append(str);
+        for (var l = 0; l < it.subList[0].detailList.length; l++) {
+          var its = it.subList[0].detailList[l];
+          its.content = its.content && its.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
+          str = '<div class="radio">';
+          str += '<label><input class="radio_type" name="scale' + its.parentId + '" type="radio" value="" />'
+          str += its.content
+          str += '<span class="num">' + '(' + its.score + ')' + '</span>'
+          str += '</label>'
+          str += '</div>'
+          $(".scale .infos .infoWrapper .infoBox .contentList .item-content[data-id=" + its.parentId + "]").append(str);
         }
       }
     }
-    $(`.${contentWrapClassName} .infos`).scroll(throttle(addScrollEvent, 200));
-    addLinkClickEvent(contentWrapClassName);
-    adjustHeight();
-    adjustWidth()
-}
+  }
+
+
+  function addScrollEvent() {
+    var scrollTop = $(`.${contentWrapClassName} .infos`).scrollTop()
 
+    var divHeight = 0;
+    for (var i = 0; i < list.length; i++) {
+      divHeight = divHeight + parseInt($('#' + contentWrapClassName + i).css('height')) + parseInt($('#' + contentWrapClassName + i).parent().next().css('height')) + 20
+      if (divHeight > scrollTop) {
+        var anchor = 2 * i;
+        $(`.${contentWrapClassName} .anchors ul`).children().eq(anchor).addClass('active').siblings().removeClass('active');
+        return;
+      }
+    }
+  }
+  $(`.${contentWrapClassName} .infos`).scroll(throttle(addScrollEvent, 200));
+  addLinkClickEvent(contentWrapClassName);
+  adjustHeight();
+  adjustWidth()
+}
 
 
 function addLinkClickEvent(contentWrapClassName) {
@@ -106,68 +170,72 @@ function addLinkClickEvent(contentWrapClassName) {
   $(`.${contentWrapClassName}  .anchors li>a`).on("click", function () {
 
     const that = this
-    setTimeout(function(){
+    setTimeout(function () {
       $(`.${contentWrapClassName} .anchors .active`).removeClass('active');
       $(that).parent().addClass("active");
-    },20)
+    }, 20)
 
   });
 }
 
-function renderTab(detailList){
-  if(detailList['静态知识']){
-    $(".tabList").append(`<span class="tab" data-module="staticKnowledge" data-title="`+showName+`">静态知识</span>`)
+function renderTab(detailList, scale) {
+  if (detailList['静态知识']) {
+    $(".tabList").append(`<span class="tab" data-module="staticKnowledge" data-title="` + showName + `">静态知识</span>`)
   }
-  if(detailList['临床路径']){
-    $(".tabList").append(`<span class="tab" data-module="clinicalPathway" data-title="`+clinicalPathwayName+`">临床路径</span>`)
+  if (detailList['临床路径']) {
+    $(".tabList").append(`<span class="tab" data-module="clinicalPathway" data-title="` + clinicalPathwayName + `">临床路径</span>`)
     //$(".tabBox .title").html(clinicalPathwayName);
   }
-  if(detailList['注意事项']){
-    $(".tabList").append(`<span class="tab" data-module="notice" data-title="`+noticeName+`">注意事项</span>`)
+  if (detailList['注意事项']) {
+    $(".tabList").append(`<span class="tab" data-module="notice" data-title="` + noticeName + `">注意事项</span>`)
+    //$(".tabBox .title").html(noticeName);
+  }
+  if (scale) {
+    $(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
     //$(".tabBox .title").html(noticeName);
   }
   $(".tabList .tab").eq(0).addClass("activeTab")
   let defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
-  $(`.${defaultModuleName}`).css("display","block")
+  $(`.${defaultModuleName}`).css("display", "block")
   bindTabClick()
 }
 
-function bindTabClick(){
-  $(".tabList .tab").on("click", function(){
+function bindTabClick() {
+  $(".tabList .tab").on("click", function () {
     const moduleName = $(this).attr("data-module")
     const display = $(`.${moduleName}`).css("display")
     $(".tabBox .title").html($(this).attr('data-title'));
-    if(display == "none"){
+    if (display == "none") {
       $(".activeTab").removeClass("activeTab")
       $(this).addClass("activeTab")
-      $(".container").css("display","none")
-  
-      $(`.${moduleName}`).css("display","block")
+      $(".container").css("display", "none")
+
+      $(`.${moduleName}`).css("display", "block")
       $(`.${moduleName} .infos`).scrollTop(0)
     }
   })
-  $("#openWin").on("click",function(){
-    const type= getUrlArgObject('type');
-    const name= getUrlArgObject('name');
-    const position= getUrlArgObject('position');
-    openNewWin("staticInfo.html?name="+encodeURIComponent(name)+"&position="+encodeURIComponent(position)+"&type="+encodeURIComponent(type));
+  $("#openWin").on("click", function () {
+    const type = getUrlArgObject('type');
+    const name = getUrlArgObject('name');
+    const position = getUrlArgObject('position');
+    openNewWin("staticInfo.html?name=" + encodeURIComponent(name) + "&position=" + encodeURIComponent(position) + "&type=" + encodeURIComponent(type));
   })
 }
 function adjustHeight() {
   var ht = window.innerHeight || document.documentElement.clientHeight;
-  $(".content,.content .infos").height(ht - 132 + "px");
+  $(".content,.content .infos").height(ht - 162 + "px");
 }
 function adjustWidth() {
   var wt = window.innerWidth || document.documentElement.clientWidth;
-  $(".titleH2").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
-    //$("pre").width(wt- 0.2*wt - 240 + 'px')
+  $(".titleH2").width(wt - 0.2 * wt - 33 - 200 - 17 - 40 - 15 + 'px')
+  //$("pre").width(wt- 0.2*wt - 240 + 'px')
 }
-$(window).on('resize', function(){
+$(window).on('resize', function () {
   adjustHeight()
   adjustWidth()
 })
 
 //如果是子窗口,隐藏网页查看按钮
-if(window.opener){
+if (window.opener) {
   $("#openWin").hide();
 }

+ 0 - 2
webpack.config.js

@@ -32,7 +32,6 @@ module.exports = {
     searchStaticList:path.resolve(__dirname, 'src/js', 'searchStaticList.js'),
     staticInfo:path.resolve(__dirname, 'src/js', 'staticInfo.js'),
     staticInfoOut:path.resolve(__dirname, 'src/js', 'staticInfoOut.js'),
-      tcmiss: path.resolve(__dirname, 'src/js', 'tcmiss.js'),
     vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
   },
   output: {
@@ -475,7 +474,6 @@ module.exports = {
   devServer: {
     contentBase: "./dist", //静态文件根目录
     proxy: {
-        '/lantone': 'http://114.55.109.16:81',
       '*': proxyHost
     },
     hot: true,