Selaa lähdekoodia

各科室缺陷占比内页联动

zhangxc 5 vuotta sitten
vanhempi
commit
94837a1819
3 muutettua tiedostoa jossa 12 lisäystä ja 5 poistoa
  1. 2 2
      src/html/deptScoreDetailControl.html
  2. 2 2
      src/js/console.js
  3. 8 1
      src/js/deptScoreDetailControl.js

+ 2 - 2
src/html/deptScoreDetailControl.html

@@ -12,10 +12,10 @@
     <div class="container deptScoreDetailControl">
         <div class="partTitle">
           <p><a href="console.html">控制台 / </a>各科室缺陷占比</p>
-          <div class="monthYear">
+          <!-- <div class="monthYear">
             <span class="mon">本月</span>
             <span class="year">本年</span>
-          </div> 
+          </div>  -->
           <div class="dateDetail fr">
             
           </div>

+ 2 - 2
src/js/console.js

@@ -122,11 +122,11 @@ $(function(){
 function getDetails(){
     $(".pubEchartB.paymoney .title").click(function(){
       focusMenuItem("YH-ZKK-GKSQXZB_XQ");
-      $(parent.document).find("#contentIframe").attr("src","./deptScoreDetailControl.html?from=1&dateType="+dateType+"&deptType="+deptType)
+      $(parent.document).find("#contentIframe").attr("src","./deptScoreDetailControl.html?from=1&dateType="+dateType+"&deptType="+deptType+"&startDateParam="+behosDateStart+"&endDateParam="+behosDateEnd)
     })
     $(".part02 .bingliLis").click(function(){
       focusMenuItem("YH-ZKK-GKSQXZB_XQ");
-      $(parent.document).find("#contentIframe").attr("src","./deptScoreDetailControl.html?from=1&dateType="+dateType)
+      $(parent.document).find("#contentIframe").attr("src","./deptScoreDetailControl.html?from=1&dateType="+dateType+"&startDateParam="+behosDateStart+"&endDateParam="+behosDateEnd)
     })
     $(".part03 .circle .title").click(function(){
       focusMenuItem("YH-ZKK-TMQXZB_XQ");

+ 8 - 1
src/js/deptScoreDetailControl.js

@@ -21,6 +21,8 @@ let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",beho
   let srcUrl = $("#contentIframe",parent.document).attr("src")
   statisticsType = getUrlArgObjectNew("dateType",srcUrl)||"2"
   deptType = getUrlArgObjectNew("deptType",srcUrl)||""
+  let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
+  let endDateParam = getUrlArgObjectNew("endDateParam",srcUrl)||""
   if(hospital == '台州市立'){
     $(".deptListWrap").css("display","inline-block")
     $(".deptListWrap .selectDept").html(deptType?(deptType+'系统'):"全部").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
@@ -37,7 +39,7 @@ let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",beho
           backgroundColor:'#fff'
       })
       setDatePicker($("#datepicker"),$("#datepicker2"),1)
-  }else{
+  }else if(statisticsType == 2){
       $(".monthYear .year").css({
           backgroundColor:'#00A1FF',
           color:'#fff'
@@ -46,6 +48,11 @@ let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",beho
           backgroundColor:'#fff'
       })
       setDatePicker($("#datepicker"),$("#datepicker2"),2)
+  }else if(statisticsType == 3){
+    setDatePicker($("#datepicker"),$("#datepicker2"),3,new Date(startDateParam),new Date(endDateParam))
+  }
+  if(!statisticsType){
+     setDatePicker($("#datepicker"),$("#datepicker2"),2)
   }
 $(".abnormalClear").click(function(){
     setDatePicker($("#datepicker"),$("#datepicker2"),statisticsType||2)