|
@@ -50,7 +50,7 @@ function getInfomation() {
|
|
|
"hospitalId": getUrlArgObject('hospitalId'),
|
|
|
"hisName": getUrlArgObject('hisName'),
|
|
|
"hisDetailName": getUrlArgObject('hisDetailName'),
|
|
|
- "contentTypes": [1, 2, 3]
|
|
|
+ "contentTypes":[1,2,3]
|
|
|
};
|
|
|
//showName = param.hisName;
|
|
|
// if (param.type == 5 || param.type == 51) {
|
|
@@ -59,12 +59,12 @@ function getInfomation() {
|
|
|
// }
|
|
|
|
|
|
post(config.getStaticKnowledgeForHIS, param).then((res) => {
|
|
|
- if (res.data.code === '0') {
|
|
|
+ if(res.data.code==='0'){
|
|
|
const data = res.data.data
|
|
|
var str = '';
|
|
|
var anchors = '';
|
|
|
- let sName = '';
|
|
|
- if (!data || data.length === 0) {
|
|
|
+ let sName ='';
|
|
|
+ if (!data||data.length===0) {
|
|
|
showEmpty();
|
|
|
return;
|
|
|
}
|
|
@@ -110,13 +110,13 @@ function showInfo(data) {
|
|
|
// "padding": "0px 60px 50px 0px"
|
|
|
// });
|
|
|
renderTab(detailList, scale)
|
|
|
- staticKnowList && renderContent(staticKnowList, 'staticKnowledge')
|
|
|
- noticeInfo && renderContent(noticeInfo, 'notice')
|
|
|
- clinicalPathwayInfo && renderContent(clinicalPathwayInfo, 'clinicalPathway')
|
|
|
+ staticKnowList&&renderContent(staticKnowList,'staticKnowledge')
|
|
|
+ noticeInfo&&renderContent(noticeInfo,'notice')
|
|
|
+ clinicalPathwayInfo&&renderContent(clinicalPathwayInfo,'clinicalPathway')
|
|
|
scaleInfo && renderContentscale(scaleInfo, 'scale', name)
|
|
|
}
|
|
|
-function showInfoSelect() {
|
|
|
- $('.showWhich li').click(function () {
|
|
|
+function showInfoSelect(){
|
|
|
+ $('.showWhich li').click(function(){
|
|
|
let idx = $(this).attr('data-idx')
|
|
|
let name = $(this).html(), str = ''
|
|
|
selectedDrop = idx;
|
|
@@ -523,44 +523,41 @@ function renderTab(detailList, scale) {
|
|
|
$(`.${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")
|
|
|
- selectedTab = $('.tabList .tab').index(this);
|
|
|
- $(".titleCont .title").html($(this).attr('data-title'));
|
|
|
+ selectedTab=$('.tabList .tab').index(this);
|
|
|
+ $(".titleCont .title").html($(this).attr('data-title'));
|
|
|
//if(display == "none"){
|
|
|
- $(".activeTab").removeClass("activeTab")
|
|
|
- $(this).addClass("activeTab")
|
|
|
- $(".container").css("display", "none")
|
|
|
- $(`.${moduleName}`).css("display", "block")
|
|
|
- $(`.${moduleName} .infos`).scrollTop(0)
|
|
|
+ $(".activeTab").removeClass("activeTab")
|
|
|
+ $(this).addClass("activeTab")
|
|
|
+ $(".container").css("display","none")
|
|
|
+ $(`.${moduleName}`).css("display","block")
|
|
|
+ $(`.${moduleName} .infos`).scrollTop(0)
|
|
|
//}
|
|
|
})
|
|
|
- $("#openWin").on("click", function () {
|
|
|
- const type = getUrlArgObject('type');
|
|
|
- const hospitalId = getUrlArgObject('hospitalId');
|
|
|
- const hisName = getUrlArgObject('hisName');
|
|
|
- const hisDetailName = getUrlArgObject('hisDetailName');
|
|
|
- openNewWin("informationOut.html?hospitalId=" + encodeURIComponent(hospitalId) + "&hisName=" + encodeURIComponent(hisName) + "&hisDetailName=" + encodeURIComponent(hisDetailName || '') + "&type=" + encodeURIComponent(type) + "&d=" + selectedDrop + "&t=" + selectedTab & + "&gauge=gauge");
|
|
|
+ $("#openWin").on("click",function(){
|
|
|
+ const type= getUrlArgObject('type');
|
|
|
+ const hospitalId= getUrlArgObject('hospitalId');
|
|
|
+ const hisName= getUrlArgObject('hisName');
|
|
|
+ const hisDetailName= getUrlArgObject('hisDetailName');
|
|
|
+ openNewWin("informationOut.html?hospitalId="+encodeURIComponent(hospitalId)+"&hisName="+encodeURIComponent(hisName)+"&hisDetailName="+encodeURIComponent(hisDetailName||'')+"&type="+encodeURIComponent(type)+"&d="+selectedDrop+"&t="+selectedTab);
|
|
|
})
|
|
|
}
|
|
|
function adjustHeight() {
|
|
|
+ const extHt = window.opener?60:0;
|
|
|
var ht = window.innerHeight || document.documentElement.clientHeight;
|
|
|
- $(".content").height(ht - 160 + "px");
|
|
|
- $(".content .infos").height(ht - 170 + "px");
|
|
|
- $(".content .anchors").height(ht - 217 + "px");
|
|
|
+ $(".content").height(ht - 160 + extHt + "px");
|
|
|
+ $(".content .infos").height(ht - 170 + extHt + "px");
|
|
|
+ $(".content .anchors").height(ht - 217 + extHt + "px");
|
|
|
}
|
|
|
function adjustWidth() {
|
|
|
var wt = window.innerWidth || document.documentElement.clientWidth;
|
|
|
$(".titleH2").width(wt - 0.2 * wt - 33 - 200 - 17 - 40 - 15 + 'px')
|
|
|
$(".content .infos").width(wt - 243 + 'px');
|
|
|
}
|
|
|
-$(window).on('resize', function () {
|
|
|
- adjustHeight()
|
|
|
- adjustWidth()
|
|
|
-})
|
|
|
-$(window).on('resize', function () {
|
|
|
+$(window).on('resize', function(){
|
|
|
adjustHeight()
|
|
|
adjustWidth()
|
|
|
})
|