|
@@ -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){
|