|
@@ -11,8 +11,6 @@ let labAndPacsImg = require('./../images/inspect.png')
|
|
|
let conditTipsImg = require('./../images/tips.png')
|
|
|
let treatImg = require('./../images/zhiliao.png')
|
|
|
|
|
|
-
|
|
|
-
|
|
|
const $ = require("jquery");
|
|
|
const { post,config,getUrlArgObject,openNewWin, isIe8 } = require('./promise.js');
|
|
|
const { transConf } = require('./util.js');
|
|
@@ -93,69 +91,14 @@ function getConf() {
|
|
|
function getPushInfo() {
|
|
|
return post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22'},msg)).then((res)=>{
|
|
|
var data = res.data
|
|
|
- window.pushInfo = data
|
|
|
- // if(data.code == 0){
|
|
|
- // var result = data.data;
|
|
|
- // renderRecommendConditTips(conditTipsImg, 'conditTips','病情提示', [])
|
|
|
- // // if(result.medicalIndications && result.medicalIndications.length>0){//病情提示
|
|
|
- // // window.pushMessage = result.medicalIndications;//计算的需要的相关数据
|
|
|
- // // renderRecommendConditTips(conditTipsImg, 'conditTips','病情提示', result.medicalIndications)
|
|
|
- // // }
|
|
|
- // if(result.dis){
|
|
|
- // // const diagPossible = result.dis['可能诊断'] || []//可能
|
|
|
- // // const diagDoubt = result.dis['疑似诊断'] || [] // 疑似
|
|
|
- // // const diagDeter = result.dis['确诊'] || []//确诊
|
|
|
- // // const diagWaring = result.dis['警惕'] || [] // 推荐警惕诊断
|
|
|
- // // const symptomRecommend = result.symptom || [] //推荐问诊症状
|
|
|
- // // const physiExamRecommend = result.vital || [] //推荐体格检查
|
|
|
- // // const diagRecommend = diagPossible.concat(diagDoubt, diagDeter) //推荐诊断
|
|
|
- // // const labRecommend = result.lab || []
|
|
|
- // // const pacsRecommend = result.pacs || []
|
|
|
- // // const labAndPacsRecommend = [
|
|
|
- // // {
|
|
|
- // // title: '化验',
|
|
|
- // // className: 'labRecommend',
|
|
|
- // // data: labRecommend
|
|
|
- // // },
|
|
|
- // // {
|
|
|
- // // title: '辅检',
|
|
|
- // // className: 'pacsRecommend',
|
|
|
- // // data: pacsRecommend
|
|
|
- // // }
|
|
|
- // // ]
|
|
|
-
|
|
|
- // const diagPossible =[]//可能
|
|
|
- // const diagDoubt = [] // 疑似
|
|
|
- // const diagDeter = []//确诊
|
|
|
- // const diagWaring = [] // 推荐警惕诊断
|
|
|
- // const symptomRecommend = [] //推荐问诊症状
|
|
|
- // const physiExamRecommend = [] //推荐体格检查
|
|
|
- // const diagRecommend = diagPossible.concat(diagDoubt, diagDeter) //推荐诊断
|
|
|
- // const labRecommend = []
|
|
|
- // const pacsRecommend = []
|
|
|
- // const labAndPacsRecommend = [
|
|
|
- // {
|
|
|
- // title: '化验',
|
|
|
- // className: 'labRecommend',
|
|
|
- // data: labRecommend
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: '辅检',
|
|
|
- // className: 'pacsRecommend',
|
|
|
- // data: pacsRecommend
|
|
|
- // }
|
|
|
- // ]
|
|
|
-
|
|
|
- // renderRecommendInfo(warningImg, 'warning', '警惕诊断', diagWaring, true,7,2)
|
|
|
- // renderRecommendInfo(diagImg, 'diagRecommend', '推荐诊断', diagRecommend, true,7,2)
|
|
|
- // renderRecommendInfo(symptomImg, 'symptomRecommend', '问诊症状', symptomRecommend, false)
|
|
|
- // renderRecommendInfo(physiExamImg, 'physiExamRecommend', '体格检查', physiExamRecommend, false)
|
|
|
- // renderMultRecommendInfo(labAndPacsImg,'labAndPacsRecommend', '检验检查', labAndPacsRecommend, false)
|
|
|
- // }
|
|
|
+ if(data.code == 0){
|
|
|
+ window.pushInfo = data
|
|
|
+ } else {
|
|
|
+ window.pushInfo = {}
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
- // }
|
|
|
}).catch(function (err) {
|
|
|
console.log(err);
|
|
|
})
|
|
@@ -166,6 +109,8 @@ function getTreatment() {
|
|
|
var data = res.data
|
|
|
if(data.code == 0){
|
|
|
window.treatInfo = data
|
|
|
+ } else {
|
|
|
+ window.treatInfo = {}
|
|
|
}
|
|
|
// if(data.code == 0){
|
|
|
// var result = data.data;
|
|
@@ -196,7 +141,9 @@ function getTipsInfo() {
|
|
|
var data = res.data
|
|
|
if(data.code == 0) {
|
|
|
window.tipsInfo = data
|
|
|
- }
|
|
|
+ }else {
|
|
|
+ window.tipsInfo = {}
|
|
|
+ }
|
|
|
}).catch(function (err) {
|
|
|
console.log(err);
|
|
|
})
|
|
@@ -219,8 +166,6 @@ function getPageInfo() {
|
|
|
} else {
|
|
|
tipsResult = {}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
const diagPossible = pushResult.dis&&pushResult.dis['可能诊断'] || []//可能
|
|
|
const diagDoubt = pushResult.dis&&pushResult.dis['疑似诊断'] || [] // 疑似
|
|
|
const diagDeter = pushResult.dis&&pushResult.dis['确诊'] || []//确诊
|