فهرست منبع

科室列表获取bug1619

zhouna 3 سال پیش
والد
کامیت
baf5b4c839

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

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

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

@@ -175,7 +175,7 @@ function getTabData(activePage){
 
     post(api.levelStatisticsByDept,param).then(res =>{
         if(res.data.code == '0'){
-            const data = res.data.data;
+            const data = res.data.data||[];
             tabList = data.records;
             const totalPage = data.pages;
             const totalNum = data.total;
@@ -573,6 +573,7 @@ $('.selectDept').on("click", function(e){
 getDeptList()
 function getDeptList(){
     let str = ``
+    getTabData(1)
     if(deptList.length<=0)return
     $(".selectDept ").attr("data-id",deptList[0].deptName).find("i").html(deptList[0].deptName)
     deptName = deptNameTemp = deptList[0].deptName
@@ -582,7 +583,6 @@ function getDeptList(){
     }
     $(".filterDropList").html(str)
     getmoduleTypeList('',deptName)
-    getTabData(1)
 }
 
 

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

@@ -205,6 +205,7 @@ $('.selectDept').on("click", function(e){
 getDeptList()
 function getDeptList(){
   let str = ``
+  getTabData(1)
   if(deptList.length<=0)return
   deptName = deptNameTemp = deptList[0].deptName
   $(".selectDept").attr("data-id",deptName).find("i").html(deptName)
@@ -213,7 +214,6 @@ 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)
 }
 

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

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

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

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

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

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