Browse Source

列表数据获取bug1635

zhouna 3 years ago
parent
commit
45bccb6053

+ 5 - 2
src/js/dept/checkControlDept.js

@@ -125,8 +125,10 @@ $('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
 //科室处理
 function getDeptList(flg){
     let str = ``
-    getTabData(1)
-    if(deptList.length<=0)return
+    if(deptList.length<=0){
+      getTabData(1);
+      return
+    }
     if(flg){
         $(".checkControl .selectDept ").attr("data-id",deptList[0].deptName).find("i").html(deptList[0].deptName)
         deptId = deptIdTemp = deptList[0].deptName
@@ -137,6 +139,7 @@ function getDeptList(flg){
     }
     $(".checkControl .filterDropList").html(str)
     getmoduleTypeList()
+    getTabData(1)
 }
 
 dateChange()

+ 5 - 2
src/js/dept/deptScoreDetailControlDept.js

@@ -573,8 +573,10 @@ $('.selectDept').on("click", function(e){
 getDeptList()
 function getDeptList(){
     let str = ``
-    getTabData(1)
-    if(deptList.length<=0)return
+  if(deptList.length<=0){
+	getTabData(1);
+	return
+  }
     $(".selectDept ").attr("data-id",deptList[0].deptName).find("i").html(deptList[0].deptName)
     deptName = deptNameTemp = deptList[0].deptName
     for(let i = 0;i < deptList.length;i++){
@@ -583,6 +585,7 @@ function getDeptList(){
     }
     $(".filterDropList").html(str)
     getmoduleTypeList('',deptName)
+    getTabData(1)
 }
 
 

+ 5 - 2
src/js/dept/keyItemFlawControlDept.js

@@ -205,8 +205,10 @@ $('.selectDept').on("click", function(e){
 getDeptList()
 function getDeptList(){
   let str = ``
-  getTabData(1)
-  if(deptList.length<=0)return
+  if(deptList.length<=0){
+	getTabData(1);
+	return
+  }
   deptName = deptNameTemp = deptList[0].deptName
   $(".selectDept").attr("data-id",deptName).find("i").html(deptName)
   for(let i = 0;i < deptList.length;i++){
@@ -214,6 +216,7 @@ function getDeptList(){
       str += `<li class="deptItem ellipsis" title="${tmp.deptName}" data-id="${tmp.deptName}" data-name="${tmp.deptName}">${tmp.deptName}</li>`
   }
   getmoduleTypeList('',deptName)
+  getTabData(1)
   $(".filterDropList").html(str)
 }
 

+ 5 - 2
src/js/dept/partDetailControlDept.js

@@ -116,8 +116,10 @@ $('.recordScoreBtn').css("opacity", hasData('FUNC000017') ? '1' : '0.5')
 //科室处理
 function getDeptList(flg) {
     let str = ``
-    getTabData(1)
-    if (deptList.length <= 0) return
+      if(deptList.length<=0){
+        getTabData(1);
+        return
+      }
     if (flg) {
         $(".partDetail .selectDept ").attr("data-id", deptList[0].deptId).find("i").html(deptList[0].deptName)
         deptName = deptList[0].deptName
@@ -129,6 +131,7 @@ function getDeptList(flg) {
     }
     $(".partDetail .filterDropList").html(str)
     getmoduleTypeList()
+    getTabData(1)
 }
 
 dateChange()

+ 1 - 1
src/js/dept/qcListOutHospitalDept.js

@@ -35,7 +35,7 @@ let from = getUrlArgObjectNew("from", srcUrl) || ""
 let casesId = getUrlArgObjectNew("casesEntryId", srcUrl) || "";
 let isSingleReject = getUrlArgObjectNew("isSingleReject", srcUrl) || ""
 let inner = getUrlArgObjectNew("inner", srcUrl) || ""
-let deptList = JSON.parse(getCookie("deptList")) || []
+let deptList = JSON.parse(localStorage.getItem("deptList")) || []
 let currentPage;
 listenScroll()
 $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)

+ 5 - 2
src/js/dept/uncorrectedCasesStatisticsDept.js

@@ -116,8 +116,10 @@ $('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
 //科室处理
 function getDeptList(flg){
     let str = ``
-    getTabData(1)
-    if(deptList.length<=0)return
+  if(deptList.length<=0){
+	getTabData(1);
+	return
+  }
     if(flg){
         $(".partDetailControl .selectDept ").attr("data-id",deptList[0].deptName).find("i").html(deptList[0].deptName)
         deptId = deptIdTemp = deptList[0].deptName
@@ -128,6 +130,7 @@ function getDeptList(flg){
     }
     $(".partDetailControl .deptList").html(str)
     getmoduleTypeList()
+    getTabData(1)
 }
 
 dateChange()

+ 5 - 2
src/js/dept/uncorrectedCopyDept.js

@@ -322,8 +322,10 @@ function orderTitleLis(data) {
 //科室处理
 function getDeptList(flg) {
   let str = ``;
-  getTabData(1);
-  if (deptList.length <= 0) return;
+  if(deptList.length<=0){
+	getTabData(1);
+	return
+  }
   if (flg) {
     $('.partDetailControl .selectDept ')
       .attr('data-id', deptList[0].deptName)
@@ -339,6 +341,7 @@ function getDeptList(flg) {
   }
   $('.partDetailControl .filterDropList').html(str);
   getmoduleTypeList();
+  getTabData(1);
 }
 bindDeptSelect();
 //科室选择

+ 6 - 3
src/js/singleVeto.js

@@ -165,9 +165,11 @@ $('.selectDept').on("click", function(e){
   }
 })
 function getDeptList(dept,isReject){
-  let str = ``
-  getTabData(1)
-  if(deptList.length<=0)return
+  let str = ``;
+  if(deptList.length<=0){
+	  getTabData(1);
+      return
+  }
   if(dept&&isReject==8){
       deptName = deptNameTemp = dept
       $(".selectDept").attr({'title':deptName,'data-id':''}).html(deptName).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
@@ -180,6 +182,7 @@ function getDeptList(dept,isReject){
       str += `<li class="deptItem ellipsis" title="${tmp.deptName}" data-id="${tmp.deptName}" data-name="${tmp.deptName}">${tmp.deptName}</li>`
   }
   getmoduleTypeList('',deptName)
+  getTabData(1);
   $(".deptList").html(str)
 }
 $("th[code]").on("click",function(e){