Explorar o código

调整日报选择部门和右边不挂钩

Lijy %!s(int64=3) %!d(string=hai) anos
pai
achega
0c924b4221

+ 14 - 14
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

@@ -2002,8 +2002,8 @@
             // 部门列表点击
             handleNodeClick(data) {
                 // this.dealList = data
-                // this.theValues(data.id, this.allData)
-                this.depData = data;
+                this.theValues(data.id, this.allData)
+                // this.depData = data;
                 var list = [];
                 if (data.id == -1) {
                     this.deptId = null;
@@ -2026,18 +2026,18 @@
                 console.log(this.depData.membCount)
                 console.log(this.depData)
             },
-            // theValues(id, item) {
-            //     for(var i in item) {
-            //         if(item[i].id == id) {
-            //             this.dealList = item[i]
-            //             return
-            //         } else {
-            //             if(item[i].children) {
-            //                 this.theValues(id, item[i].children)
-            //             } 
-            //         }
-            //     }
-            // },
+            theValues(id, item) {
+                for(var i in item) {
+                    if(item[i].id == id) {
+                        this.depData = item[i]
+                        return
+                    } else {
+                        if(item[i].children) {
+                            this.theValues(id, item[i].children)
+                        } 
+                    }
+                }
+            },
 
             //获取可以选择的代填的人员列表
             getSubstitudeUserDeptList() {