|
@@ -60,7 +60,6 @@ function initMenu(data){
|
|
|
$(".sub-menu,.copy-right").show().animate({"width":"220px"},function(){
|
|
|
});
|
|
|
$(".tab-container").animate({"margin-left":"220px"});
|
|
|
-
|
|
|
});
|
|
|
//右侧内容切换
|
|
|
$(".page").on("click",function(){
|
|
@@ -82,27 +81,7 @@ function initMenu(data){
|
|
|
}else{
|
|
|
$(".flaw-table").hide();
|
|
|
}
|
|
|
- if(title === '医嘱信息'){
|
|
|
- $("#pacsIframeIn,#assistIframeIn,#pacsDetailIframeIn").css("display","none")
|
|
|
- $("#contentIframeIn").css({display:'block'}).contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
- $(window).resize(function(){
|
|
|
- $("#contentIframeIn").contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
- });
|
|
|
- }else if(title === '检验信息'){
|
|
|
- $("#contentIframeIn,#assistIframeIn,#pacsDetailIframeIn").css("display","none")
|
|
|
- $("#pacsIframeIn").css({display:'block'}).contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
- $(window).resize(function(){
|
|
|
- $("#pacsIframeIn").contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
- });
|
|
|
- }else if(title === '检查信息'){
|
|
|
- $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn").css("display","none")
|
|
|
- $("#assistIframeIn").css({display:'block'}).contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
- $(window).resize(function(){
|
|
|
- $("#assistIframeIn").contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
- });
|
|
|
- }else{
|
|
|
- $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn,#assistIframeIn").css({display:'none'})
|
|
|
- }
|
|
|
+ iframeShow(title)
|
|
|
//选中样式
|
|
|
$(".sub-menu .active,.menu-mini .active").removeClass('active');
|
|
|
const mItems = $(".sub-menu .page[code="+title+"],.menu-mini .page[code="+title+"]");
|
|
@@ -119,6 +98,29 @@ function initMenu(data){
|
|
|
});
|
|
|
// initScroll("subMenu","Y",2)
|
|
|
}
|
|
|
+function iframeShow(title){
|
|
|
+ if(title === '医嘱信息'){
|
|
|
+ $("#pacsIframeIn,#assistIframeIn,#pacsDetailIframeIn").css("display","none")
|
|
|
+ $("#contentIframeIn").css({display:'block'}).contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
+ $(window).resize(function(){
|
|
|
+ $("#contentIframeIn").contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
+ });
|
|
|
+ }else if(title === '检验信息'){
|
|
|
+ $("#contentIframeIn,#assistIframeIn,#pacsDetailIframeIn").css("display","none")
|
|
|
+ $("#pacsIframeIn").css({display:'block'}).contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
+ $(window).resize(function(){
|
|
|
+ $("#pacsIframeIn").contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
+ });
|
|
|
+ }else if(title === '检查信息'){
|
|
|
+ $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn").css("display","none")
|
|
|
+ $("#assistIframeIn").css({display:'block'}).contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
+ $(window).resize(function(){
|
|
|
+ $("#assistIframeIn").contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn,#assistIframeIn").css({display:'none'})
|
|
|
+ }
|
|
|
+}
|
|
|
//判断有无某一权限
|
|
|
function hasData(data){
|
|
|
let trdObj = JSON.parse(getCookie("trdObj"))
|