mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 15:07:55 +08:00
fix(api): common_i18n wide (#350)
This commit is contained in:
@@ -101,6 +101,7 @@ class DepartmentTree(object):
|
||||
employees = self.get_employees_by_d_id(department_id)
|
||||
|
||||
top_d['employees'] = employees
|
||||
top_d['department_name'] = ErrFormat.company_wide
|
||||
if len(sub_deps) == 0:
|
||||
top_d[sub_departments_column_name] = []
|
||||
d_list.append(top_d)
|
||||
@@ -313,6 +314,7 @@ class DepartmentCRUD(object):
|
||||
tree_list = []
|
||||
|
||||
for top_d in top_deps:
|
||||
top_d['department_name'] = ErrFormat.company_wide
|
||||
tree = Tree()
|
||||
identifier_root = top_d['department_id']
|
||||
tree.create_node(
|
||||
|
Reference in New Issue
Block a user