|
@@ -33,8 +33,7 @@ function getInfomation() {
|
|
|
"hisDetailName": getUrlArgObject('hisDetailName'),
|
|
|
"contentTypes":[1,2,3]
|
|
|
};
|
|
|
- const uname = getUrlArgObject('uname')
|
|
|
- // showName = param.name
|
|
|
+ showName = param.hisName;
|
|
|
// if (param.type == 5 || param.type == 51) {
|
|
|
// param.type = 12;
|
|
|
// param.name = uname;
|
|
@@ -49,6 +48,7 @@ function getInfomation() {
|
|
|
showEmpty();
|
|
|
return;
|
|
|
}
|
|
|
+ $(".titleCont .title").html(showName);
|
|
|
showLis=data
|
|
|
for(let i = 0;i < showLis.length;i++){
|
|
|
let tmp = showLis[i]
|
|
@@ -72,6 +72,7 @@ getInfomation();
|
|
|
function showEmpty(){
|
|
|
const str=`<div class="empty"><img src="../images/empty3.png" alt=""><p>暂无静态知识</p></div>`;
|
|
|
$(".tabBox").html(str).css("border-bottom","none");
|
|
|
+ $("body").css('background','#fff');
|
|
|
}
|
|
|
function showInfo(data){
|
|
|
var detailList = data.details
|
|
@@ -168,16 +169,16 @@ function addLinkClickEvent(contentWrapClassName) {
|
|
|
function renderTab(detailList){
|
|
|
$(".tabList").html('')
|
|
|
if(detailList['静态知识']){
|
|
|
- $(".tabList").append(`<span class="tab" data-module="staticKnowledge">静态知识</span>`)
|
|
|
- $(".titleCont .title").html(showName);
|
|
|
+ $(".tabList").append(`<span class="tab" data-module="staticKnowledge" data-title="`+showName+`">静态知识</span>`)
|
|
|
+ //$(".titleCont .title").html(showName);
|
|
|
}
|
|
|
if(detailList['临床路径']){
|
|
|
- $(".tabList").append(`<span class="tab" data-module="clinicalPathway">临床路径</span>`)
|
|
|
- $(".titleCont .title").html(clinicalPathwayName);
|
|
|
+ $(".tabList").append(`<span class="tab" data-module="clinicalPathway" data-title="`+clinicalPathwayName+`">临床路径</span>`)
|
|
|
+ //$(".titleCont .title").html(clinicalPathwayName);
|
|
|
}
|
|
|
if(detailList['注意事项']){
|
|
|
- $(".tabList").append(`<span class="tab" data-module="notice">注意事项</span>`)
|
|
|
- $(".titleCont .title").html(noticeName);
|
|
|
+ $(".tabList").append(`<span class="tab" data-module="notice" data-title="`+noticeName+`">注意事项</span>`)
|
|
|
+ //$(".titleCont .title").html(noticeName);
|
|
|
}
|
|
|
$(".tabList .tab").eq(0).addClass("activeTab")
|
|
|
let defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
|
|
@@ -188,6 +189,7 @@ function bindTabClick(){
|
|
|
$(".tabList .tab").on("click", function(){
|
|
|
const moduleName = $(this).attr("data-module")
|
|
|
const display = $(`.${moduleName}`).css("display")
|
|
|
+ $(".titleCont .title").html($(this).attr('data-title'));
|
|
|
if(display == "none"){
|
|
|
$(".activeTab").removeClass("activeTab")
|
|
|
$(this).addClass("activeTab")
|
|
@@ -202,12 +204,12 @@ function bindTabClick(){
|
|
|
const hospitalId= getUrlArgObject('hospitalId');
|
|
|
const hisName= getUrlArgObject('hisName');
|
|
|
const hisDetailName= getUrlArgObject('hisDetailName');
|
|
|
- openNewWin("staticInfoOut.html?hospitalId="+encodeURIComponent(hospitalId)+"&hisName="+encodeURIComponent(hisName)+"&hisDetailName="+encodeURIComponent(hisDetailName)+"&type="+encodeURIComponent(type));
|
|
|
+ openNewWin("staticInfoOut.html?hospitalId="+encodeURIComponent(hospitalId)+"&hisName="+encodeURIComponent(hisName)+"&hisDetailName="+encodeURIComponent(hisDetailName||'')+"&type="+encodeURIComponent(type));
|
|
|
})
|
|
|
}
|
|
|
function adjustHeight() {
|
|
|
var ht = window.innerHeight || document.documentElement.clientHeight;
|
|
|
- $(".content").height(ht - 220 + "px");
|
|
|
+ $(".content").height(ht - 250 + "px");
|
|
|
}
|
|
|
function adjustWidth() {
|
|
|
var wt = window.innerWidth || document.documentElement.clientWidth;
|