|
@@ -52,12 +52,13 @@ 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', //对接一对多
|
|
|
+ caseInformation: '/kl/conceptInfo/getClassicCaseInfo',//经典病历信息
|
|
|
+ getStaticKnowledgeForHIS: '/kl/conceptInfo/getStaticKnowledgeForHIS', //对接一对多
|
|
|
informationMore: '/api/data/conceptDetail/getConceptDetails',
|
|
|
pushScale: '/api/data/push/pushScale',
|
|
|
getSysSetInfoDatas: '/sys/plan/getSysPlanInfoDatas',
|
|
@@ -67,20 +68,20 @@ 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', //检索静态知识
|
|
|
}
|
|
|
-const isLocal = window.location.hostname.indexOf('localhost') !=-1;
|
|
|
-const imageUrlPrefix = isLocal ?'http://172.17.14.242: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://223.93.170.82:12282';
|
|
|
// const getUrlArgObject = function(parm) {
|
|
|
// var query = decodeURI(window.location.search);
|
|
|
// var args = qs.parse(qs.parse(query.substr(1)));
|
|
@@ -102,24 +103,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) => {
|
|
@@ -133,9 +134,11 @@ const post = function (url, data) {
|
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache");
|
|
|
},
|
|
|
success: function (res) {
|
|
|
+ console.log('success');
|
|
|
resolve({ data: res });
|
|
|
},
|
|
|
error: function (error) {
|
|
|
+ console.log(error.status);
|
|
|
reject(error);
|
|
|
},
|
|
|
});
|
|
@@ -189,171 +192,182 @@ 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: "推荐用药"
|
|
|
+ },
|
|
|
+ classicPush: {
|
|
|
+ background: colorMap.treatColor,
|
|
|
+ icon: iconOperationPush,
|
|
|
+ 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"
|
|
|
+ },
|
|
|
+ classicPush: {
|
|
|
+ background: "#E3FEFE",
|
|
|
+ icon: iconOperationPush,
|
|
|
+ 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;
|
|
@@ -364,7 +378,7 @@ const Toast = function (msg, duration,type) {
|
|
|
}
|
|
|
module.exports = {
|
|
|
config,
|
|
|
- get,
|
|
|
+ get,
|
|
|
post,
|
|
|
getUrlArgObject,
|
|
|
imageUrlPrefix,
|