瀏覽代碼

列表数据获取bug

zhouna 3 年之前
父節點
當前提交
78f73a27c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/js/singleVeto.js

+ 1 - 1
src/js/singleVeto.js

@@ -166,6 +166,7 @@ $('.selectDept').on("click", function(e){
 })
 function getDeptList(dept,isReject){
   let str = ``
+  getTabData(1)
   if(deptList.length<=0)return
   if(dept&&isReject==8){
       deptName = deptNameTemp = dept
@@ -179,7 +180,6 @@ 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){