Ver código fonte

控制台详情页数据联动

luolei 5 anos atrás
pai
commit
df6cf2474b

+ 1 - 1
src/css/dayDetail.less

@@ -39,7 +39,7 @@
     }
     .main-body{
         margin: 20px 0;
-        padding: 0 35px 50px 35px;
+        padding: 0 35px;
         min-width: 1090px;
         /*width: 100%;*/
     }

+ 1 - 1
src/css/deptScoreDetail.less

@@ -38,7 +38,7 @@
     }
     .main-body{
         margin: 20px 0;
-        padding: 0 35px 50px 35px;
+        padding: 0 35px;
         min-width: 1090px;
         /*width: 100%;*/
     }

+ 1 - 1
src/css/deptScoreDetailControl.less

@@ -37,7 +37,7 @@
         letter-spacing: 1px;
     }
     .main-body{
-        padding: 20px 35px 50px 35px;
+        padding: 20px 35px 0 35px;
         min-width: 1090px;
         box-sizing: border-box;
         /*width: 100%;*/

+ 1 - 1
src/css/itemManager.less

@@ -16,7 +16,7 @@
     }
     .main-body{
         margin: 10px 40px;
-        padding-bottom: 50px;
+        padding-bottom: 0px !important;
     }
     table{
         width: 100%;

+ 1 - 1
src/css/jiaji.less

@@ -41,7 +41,7 @@
     }
     .main-body{
         margin: 20px 0;
-        padding: 0 35px 50px 35px;
+        padding: 0 35px;
         min-width: 1090px;
         /*width: 100%;*/
     }

+ 1 - 1
src/css/partDetail.less

@@ -41,7 +41,7 @@
     }
     .main-body{
         margin: 20px 0;
-        padding: 0 35px 50px 35px;
+        padding: 0 35px;
         min-width: 1090px;
         /*width: 100%;*/
     }

+ 1 - 1
src/css/partDetailControl.less

@@ -41,7 +41,7 @@
     }
     .main-body{
         margin: 20px 0;
-        padding: 0 35px 50px 35px;
+        padding: 0 35px;
         min-width: 1090px;
         /*width: 100%;*/
     }

+ 1 - 1
src/css/payDetail.less

@@ -42,7 +42,7 @@
     }
     .main-body{
         margin: 20px 0;
-        padding: 0 35px 50px 35px;
+        padding: 0 35px;
         min-width: 1090px;
         /*width: 100%;*/
     }

+ 1 - 1
src/css/qcList.less

@@ -13,7 +13,7 @@ h2{
 .main-body{
     margin: 10px 0;
     min-width: 1090px;
-    padding: 0 35px 50px 35px;
+    padding: 0 35px;
     // overflow: auto;
 }
 table{

+ 1 - 1
src/css/qcListDept.less

@@ -12,7 +12,7 @@ h2{
 }
 .main-body{
     margin: 10px 0;    
-    padding: 0 35px 50px 35px;
+    padding: 0 35px;
     min-width: 1090px;
     /*width: 100%;*/
 }

+ 1 - 2
src/css/qcListPerson.less

@@ -12,7 +12,7 @@ h2{
 }
 .main-body{
     margin: 10px 0;
-    padding: 0 35px 50px 35px;
+    padding: 0 35px;
     min-width: 1090px;
     /*width: 100%;*/
 }
@@ -23,7 +23,6 @@ table{
     border-collapse: collapse;
     thead th{
         background: #EFF0F9;
-       
     }
     th,td{
         box-sizing: border-box;

+ 1 - 1
src/css/quexianDetail.less

@@ -91,7 +91,7 @@
     }
     .main-body{
         margin: 20px 40px;
-        padding-bottom: 50px;
+        padding-bottom: 0px !important;
     }
     table{
         width: 100%;

+ 1 - 1
src/css/quexianDetailControl.less

@@ -91,7 +91,7 @@
     }
     .main-body{
         margin: 20px 40px;
-        padding-bottom: 50px;
+        padding-bottom: 0px !important;
     }
     table{
         width: 100%;

+ 1 - 1
src/css/tiaomu.less

@@ -91,7 +91,7 @@
     }
     .main-body{
         margin: 20px 40px;
-        padding-bottom: 50px;
+        padding-bottom: 0px !important;
     }
     table{
         width: 100%;

+ 0 - 1
src/js/dayDetail.js

@@ -21,7 +21,6 @@ let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",beho
   nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
   data_desc=[],data_asc=[];
 $(".abnormalClear").click(function(){
-    // window.location.reload()
         behospitalCode = ""
         $(".patientNumInp").val("")
         getTabData(1)

+ 7 - 3
src/js/deptConsole.js

@@ -51,9 +51,11 @@ function tiaomu(){
     });
     $(".homePage .title").click(function(){
         focusMenuItem("YH-KSZR-BASYHGLZB_XQ")
+        $(parent.document).find("#contentIframe").attr("src","partDetail.html?from=2&deptName="+curDept+"&dateType="+dateType)
     });
     $(".part02 .bingli,.part02 .bingliLis").click(function(){
         focusMenuItem("YH-KSZR-KSQXZB_XQ");
+        $(parent.document).find("#contentIframe").attr("src","deptScoreDetail.html?from=2&deptName="+curDept+"&dateType="+dateType)
     });
 }
 //判断有无某一权限
@@ -144,7 +146,7 @@ function getOwnDept(){
                 let result = data.data
                 renderDeptLis(result)//科室tab渲染
                 curDept = result[0].deptName
-                $(".partTitle p i,.toggleSlide p span").html(curDept).attr("title",curDept)
+                $(".partTitle p i,.toggleSlide p span").html(curDept).attr({"title":curDept,'data-dept':curDept})
                 getBarData(2)//图标数据获取
             }else {
                 $(".partTitle p i,.toggleSlide p span").html('--')
@@ -165,8 +167,8 @@ function renderDeptLis(data){
     $(".toggleSlide ul li").click(function(){
         let name = $(this).attr("data-dept")
         curDept = name
-        $(this).parent().slideToggle().prev().find("span").html(name).attr("title",name)
-        $(".partTitle p i").html(name).attr("title",name)
+        $(this).parent().slideToggle().prev().find("span").html(name).attr({"title":name,'data-dept':curDept})
+        $(".partTitle p i").html(name).attr({"title":name,'data-dept':curDept})
         personNum(datafst[name]||[])
         setNumDetail(datasec[name]||[])
         queList(datatrd[name]||[])
@@ -486,7 +488,9 @@ function part02pan(data,dom){
 }
 //柱状图住院日期
 function emptyCircleB(data){
+    if(!document.getElementById('emptyCircleB'))return
     var myChart = echarts.init(document.getElementById('emptyCircleB'));
+    return
     $(window).resize(function(){
         myChart.resize()
     });

+ 0 - 1
src/js/jiaji.js

@@ -25,7 +25,6 @@ $(".abnormalClear").click(function(){
     $(".patientNumInp").val("")
     getTabData(1)
 })
-
 $(".partTitle a").click(function(){
     //初始菜单选中
     $(".menu .page",parent.document).removeClass("active").eq(0).addClass("active");

+ 1 - 1
src/js/moduleManager.js

@@ -10,7 +10,7 @@ const {post,getCookie} = require('./utils.js')
 function setTbaleInfoHei(){
  
     $(".tableInfo").css({
-        height:$(window).height()-180+'px'
+        height:$(window).height()-140+'px'
     })
 }
 setTbaleInfoHei()

+ 28 - 3
src/js/mukuai.js

@@ -21,11 +21,36 @@ let deptList = JSON.parse(getCookie("deptList"))||[]
 $(function(){
     dateChange()
     let srcUrl = $("#contentIframe",parent.document).attr("src")
-    isReject = 2||getUrlArgObjectNew("dateType",srcUrl)
-    // deptName = getUrlArgObjectNew("deptName",srcUrl)||""
+    isReject = getUrlArgObjectNew("dateType",srcUrl)||2
+    deptId = deptIdTemp = getUrlArgObjectNew("deptName",srcUrl)||""
     from = getUrlArgObjectNew("from",srcUrl)||""
     getTabData(1)//条目缺陷
-    
+    if(isReject == 1){
+        $(".monthYear .mon").css({
+            backgroundColor:'#00A1FF',
+            color:'#fff'
+        }).siblings().css({
+            color:'#00A1FF',
+            backgroundColor:'#fff'
+        })
+    }else{
+        $(".monthYear .year").css({
+            backgroundColor:'#00A1FF',
+            color:'#fff'
+        }).siblings().css({
+            color:'#00A1FF',
+            backgroundColor:'#fff'
+        })
+    }
+    if(deptId){
+        $(".selectDept").html(deptId).attr({
+            "data-id":deptId,
+            "title":deptId
+        }).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+        getDeptList()
+    }else{
+        getDeptList(1)
+    }
     $(".partTitle a").click(function(){
         //初始菜单选中
         focusMenuItem('YH-KZTKS')

+ 40 - 8
src/js/partDetail.js

@@ -2,7 +2,7 @@ const $ = require('jquery');
 require("../css/partDetail.less");
 require('./modal.js');
 const {api} = require('./api.js')
-const {post,getCookie} = require('./utils.js')
+const {post,getCookie,getUrlArgObjectNew} = require('./utils.js')
 require('./../resource/jquery-ui/jquery-ui.min.js');
 require('./../resource/jquery-ui/jquery-ui.min.css');
 const iconCheck= require("./../images/icon_check.png")
@@ -21,8 +21,39 @@ let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",beho
   nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
   data_desc=[],data_asc=[];
 let deptList = JSON.parse(getCookie("deptList"))||[]
+$(function(){
+    let srcUrl = $("#contentIframe",parent.document).attr("src")
+    statisticsType = getUrlArgObjectNew("dateType",srcUrl)||2
+    deptId = deptIdTemp = getUrlArgObjectNew("deptName",srcUrl)||""
+    if(statisticsType == 1){
+        $(".monthYear .mon").css({
+            backgroundColor:'#00A1FF',
+            color:'#fff'
+        }).siblings().css({
+            color:'#00A1FF',
+            backgroundColor:'#fff'
+        })
+    }else{
+        $(".monthYear .year").css({
+            backgroundColor:'#00A1FF',
+            color:'#fff'
+        }).siblings().css({
+            color:'#00A1FF',
+            backgroundColor:'#fff'
+        })
+    }
+    if(deptId){
+        $(".selectDept").html(deptId).attr({
+            "data-id":deptId,
+            "title":deptId
+        }).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
+        getDeptList()
+    }else{
+        getDeptList(1)
+    }
+})
+
 $(".abnormalClear").click(function(){
-    // window.location.reload()
     deptId = deptList[0].deptName
     behospitalCode = ""
     $(".patientNumInp").val("")
@@ -60,18 +91,20 @@ $('.iconCalen').on("click", function(e){
 $('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
 
 //科室处理
-getDeptList()
-function getDeptList(){
+function getDeptList(flg){
+    console.log(flg)
     let str = ``
     if(deptList.length<=0)return
-    $(".partDetail .selectDept ").attr("data-id",deptList[0].deptName).find("i").html(deptList[0].deptName)
-    deptIdTemp = deptList[0].deptName
-    deptId = deptList[0].deptName
+    if(flg){
+        $(".partDetail .selectDept ").attr("data-id",deptList[0].deptName).find("i").html(deptList[0].deptName)
+        deptId = deptIdTemp = deptList[0].deptName
+    }
     for(let i = 0;i < deptList.length;i++){
         let tmp = deptList[i]
         str += `<li class="deptItem ellipsis" title="${tmp.deptName}" data-id="${tmp.deptName}" data-name="${tmp.deptName}">${tmp.deptName}</li>`
     }
     $(".partDetail .filterDropList").html(str)
+    getTabData(1)
 }
 
 dateChange()
@@ -142,7 +175,6 @@ function getTabData(activePage){
     })
 }
 
-getTabData(1)
 
 $(".filter").on("click", function(e){
     name = nameTemp