|
@@ -13,7 +13,8 @@ const {
|
|
|
imageUrlPrefix,
|
|
|
config,
|
|
|
getUrlArgObject,
|
|
|
- openNewWin
|
|
|
+ openNewWin,
|
|
|
+ Toast
|
|
|
} = require('./promise.js');
|
|
|
const $ = require("jquery");
|
|
|
require("./jquery-migrate");
|
|
@@ -114,7 +115,7 @@ function showInfoSelect() {
|
|
|
selectedDrop = idx;
|
|
|
selectedTab = 0;
|
|
|
showName = showLis[idx].name + "(" + showLis[idx].hisName + ")";
|
|
|
- showInfo(showLis[idx])
|
|
|
+ // showInfo(showLis[idx])
|
|
|
renderTitleShow();
|
|
|
$('.content .infos').scrollTop(0)
|
|
|
$(".showWhich ul").css("display", "none")
|
|
@@ -487,25 +488,29 @@ function addLinkClickEvent(contentWrapClassName) {
|
|
|
}
|
|
|
|
|
|
function renderTab(detailList, scale) {
|
|
|
- $(".tabList").html('')
|
|
|
if (detailList['静态知识']) {
|
|
|
$(".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" data-title="` + clinicalPathwayName + `">临床路径</span>`)
|
|
|
- //$(".titleCont .title").html(clinicalPathwayName);
|
|
|
+ //$(".tabBox .title").html(clinicalPathwayName);
|
|
|
}
|
|
|
if (detailList['注意事项']) {
|
|
|
$(".tabList").append(`<span class="tab" data-module="notice" data-title="` + noticeName + `">注意事项</span>`)
|
|
|
- //$(".titleCont .title").html(noticeName);
|
|
|
+ //$(".tabBox .title").html(noticeName);
|
|
|
}
|
|
|
if (scale) {
|
|
|
$(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
|
|
|
//$(".tabBox .title").html(noticeName);
|
|
|
}
|
|
|
- $(".tabList .tab").eq(selectedTab).addClass("activeTab")
|
|
|
- let defaultModuleName = $(".tabList .tab").eq(selectedTab).attr("data-module")
|
|
|
+ let defaultModuleName
|
|
|
+ if ((getUrlArgObject('page') && getUrlArgObject('page') == 1 && scale)) {
|
|
|
+ $(".tabList .tab").eq(1).addClass("activeTab")
|
|
|
+ defaultModuleName = $(".tabList .tab").eq(1).attr("data-module")
|
|
|
+ } else {
|
|
|
+ $(".tabList .tab").eq(0).addClass("activeTab")
|
|
|
+ defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
|
|
|
+ }
|
|
|
$(`.${defaultModuleName}`).css("display", "block")
|
|
|
bindTabClick()
|
|
|
}
|