|
@@ -51,14 +51,9 @@ $(function(){
|
|
|
}
|
|
|
// YH-ZKK-TMQXZB_XQ
|
|
|
$(".menu .page", parent.document).removeClass("active")
|
|
|
- if(deptNameParam){
|
|
|
- deptName = deptNameTemp = deptNameParam
|
|
|
- if(from == 2){
|
|
|
- $(".selectDept").attr({'title':deptName,'data-id':''}).html(deptName).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
if(from == 2){
|
|
|
- getDeptList()
|
|
|
+ getDeptList(deptNameParam)
|
|
|
$(".typeFilterDept").css("display","inline-block")
|
|
|
$(parent.document).find(".menu .page[code=YH-KSZR-TMQXZB_XQ]").addClass("active")
|
|
|
$(".partTitle a").attr("href","deptConsole.html").html("控制台(科室) / ")
|
|
@@ -159,10 +154,15 @@ $('.selectDept').on("click", function(e){
|
|
|
$(".selectDept .arrow").attr("src",iconDown)
|
|
|
}
|
|
|
})
|
|
|
-function getDeptList(){
|
|
|
+function getDeptList(dept){
|
|
|
let str = ``
|
|
|
if(deptList.length<=0)return
|
|
|
- deptName = deptNameTemp = deptList[0].deptName
|
|
|
+ if(dept){
|
|
|
+ deptName = deptNameTemp = dept
|
|
|
+ $(".selectDept").attr({'title':deptName,'data-id':''}).html(deptName).append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ }else{
|
|
|
+ deptName = deptNameTemp = deptList[0].deptName
|
|
|
+ }
|
|
|
$(".selectDept").attr("data-id",deptName).find("i").html(deptName)
|
|
|
for(let i = 0;i < deptList.length;i++){
|
|
|
let tmp = deptList[i]
|