|
@@ -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,23 +110,24 @@ 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;
|
|
|
selectedTab = 0;
|
|
|
showName = showLis[idx].name + "(" + showLis[idx].hisName + ")";
|
|
|
// showInfo(showLis[idx])
|
|
|
- renderTitleShow();
|
|
|
+
|
|
|
$('.content .infos').scrollTop(0)
|
|
|
$(".showWhich ul").css("display", "none")
|
|
|
$(".showWhichSelect").html(name).attr("title", name)
|
|
|
+ renderTitleShow();
|
|
|
})
|
|
|
$(".showWhichSelect").click(function (e) {
|
|
|
e.stopPropagation()
|
|
@@ -136,9 +137,9 @@ function showInfoSelect() {
|
|
|
$(".showWhich ul").css("display", "none")
|
|
|
})
|
|
|
}
|
|
|
-function renderTitleShow() {
|
|
|
+function renderTitleShow(name) {
|
|
|
document.title = showName;
|
|
|
- $(".titleCont .title").html($(".tabList .tab:eq(" + selectedTab + ")").attr("data-title"));
|
|
|
+ $(".titleCont .title").html($(".showWhich .showWhichSelect").attr("title"));
|
|
|
}
|
|
|
function renderContent(list, contentWrapClassName) {
|
|
|
$(`.${contentWrapClassName} .infos`).html('');
|
|
@@ -542,18 +543,18 @@ 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 () {
|
|
@@ -566,6 +567,7 @@ function bindTabClick() {
|
|
|
})
|
|
|
}
|
|
|
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");
|
|
@@ -576,11 +578,7 @@ function adjustWidth() {
|
|
|
$(".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()
|
|
|
})
|