|
@@ -27,6 +27,7 @@ let iconArrowUp = require('./../images/icon_arrow_up.png').replace(/^undefined/g
|
|
|
let iconArrowDown = require('./../images/icon_arrow_down.png').replace(/^undefined/g, '')
|
|
|
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");
|
|
@@ -54,7 +55,8 @@ let moduleConfig={
|
|
|
let allInterface = 0
|
|
|
let hasCompleteTnterface = 0
|
|
|
let moduleNum = 0
|
|
|
-let mrId = getUrlArgObject('mrId')
|
|
|
+let mrId = getUrlArgObject('mrId')
|
|
|
+let pushMrId = getUrlArgObject('pushMrId')
|
|
|
const tipsMode = getUrlArgObject('tipsMode') || 1
|
|
|
let planCode = getUrlArgObject('planCode') || 'all'
|
|
|
let hospitalIdUrl = getUrlArgObject('hospitalId') || ''
|
|
@@ -109,7 +111,8 @@ function getPushInfo() {
|
|
|
|
|
|
}
|
|
|
function getPusgWarning(){
|
|
|
- return post(config.indicationPush,Object.assign({},msg,{ruleType: '1,2,3,4',hospitalId:hospitalIdUrl||msg.hospitalId}))
|
|
|
+ const indPush = pushMrId ? config.indicationPushCache : config.indicationPush;
|
|
|
+ return post(indPush, Object.assign({}, msg, {mrId: pushMrId || mrId}))
|
|
|
}
|
|
|
|
|
|
function getWriteStandardPush(){
|
|
@@ -461,7 +464,7 @@ function renderWarningDiag(list,name,number){
|
|
|
if(list.length > 0 && $(".moduleItem.warning").length > 0){
|
|
|
moduleNum++
|
|
|
$('.moduleItem.warning').append()
|
|
|
- let str = `<span class="warningTitle"><img class="warningTitImg" src=${warnImg}>警惕</span>`
|
|
|
+ let str = `<span class="warningTitle"><img class="warningTitImg" src=${warnImgWhite}>警惕</span>`
|
|
|
for(let i = 0; i < list.length; i++){
|
|
|
str+= renderPushItem(list[i],1)
|
|
|
}
|
|
@@ -519,7 +522,6 @@ function rendergeneraTreatPush(list){
|
|
|
$(".moduleItem.general").append(str)
|
|
|
$(".moduleItem.general").css("display","block")
|
|
|
let generaTreatHei = $(".moduleItem .generalTreatInfo")[0].scrollHeight
|
|
|
- console.log(generaTreatHei,78787)
|
|
|
if(generaTreatHei > 50){
|
|
|
$(".moduleItem .generalTreatInfo").append(`<span class="showMoreGeneralTreat">更多<img class="iconArrowImg more" src="${iconArrowDown}"></span>`)
|
|
|
$(".moduleItem .generalTreatInfo").append(`<span class="showLessGeneralTreat">收起<img class="iconArrowImg" src="${iconArrowUp}"></span>`)
|
|
@@ -610,15 +612,17 @@ function renderModuleWrapper(moduleList){
|
|
|
let moduleStr = ''
|
|
|
for(let i = 0; i < moduleList.length; i++){
|
|
|
if(moduleList[i].status !='0'){
|
|
|
- if(moduleList[i].code == 'tips'){
|
|
|
+ if(moduleList[i].code == 'critical'){
|
|
|
moduleStr += `<div class="moduleItem warning" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
- moduleStr += `<div class="moduleItem tips" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
+ // moduleStr += `<div class="moduleItem tips" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
}else{
|
|
|
moduleStr += `<div class="moduleItem ${moduleList[i].code }" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ // console.log(moduleList,moduleStr)
|
|
|
+
|
|
|
$(".recommendWrap").append(moduleStr)
|
|
|
}
|
|
|
|