|  |  |  | 
|---|
|  |  |  | data: res.data, | 
|---|
|  |  |  | click: function (obj) { | 
|---|
|  |  |  | currentDeptId = obj.data.id; | 
|---|
|  |  |  | currentDeptName = obj.data.title.split(" - ")[0]; | 
|---|
|  |  |  | // currentTemSsbm = obj.data.title.split(" - ")[1]; | 
|---|
|  |  |  | currentDeptName = obj.data.title; | 
|---|
|  |  |  | selObj = obj; | 
|---|
|  |  |  | $('#organizationTree').find('.ew-tree-click').removeClass('ew-tree-click'); | 
|---|
|  |  |  | $(obj.elem).children('.layui-tree-entry').addClass('ew-tree-click'); | 
|---|
|  |  |  | tableIns.reload({ | 
|---|
|  |  |  | insTb2.reload({ | 
|---|
|  |  |  | where: {dept_id: obj.data.id}, | 
|---|
|  |  |  | page: {curr: 1} | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | treeData = res.data; | 
|---|
|  |  |  | if (isEmpty(condition) && init) { | 
|---|
|  |  |  | tableIns.reload({ | 
|---|
|  |  |  | insTb2.reload({ | 
|---|
|  |  |  | where: {dept_id: ""}, | 
|---|
|  |  |  | page: {curr: 1} | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | 
|---|
|  |  |  | function findData(el) { | 
|---|
|  |  |  | var condition = $(el).val(); | 
|---|
|  |  |  | loadTree(condition) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|