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