|
@@ -95,13 +95,12 @@ async def get_dict_data_by_type(
|
|
|
dept_tree = [] # 初始化一个列表来存储菜单树结构
|
|
|
for dept in depts:
|
|
|
dept_data = {
|
|
|
- "id": dept.id,
|
|
|
+ "yzy_unitid": dept.unitid,
|
|
|
"isShowSelect": False,
|
|
|
- "label": dept.department_name,
|
|
|
- "regionPath": dept.regionPath,
|
|
|
- "yzy_unitid": dept.yzy_unitid,
|
|
|
+ "label": dept.unitname,
|
|
|
+ "regionPath": dept.unitpath
|
|
|
}
|
|
|
- children_depts = yzy_parent_id_get_contact_dept_list(db,dept.id)
|
|
|
+ children_depts = yzy_parent_id_get_contact_dept_list(db,dept.unitid)
|
|
|
if len(children_depts) > 0:
|
|
|
dept_data['children'] = build_dept_tree(children_depts, dept)
|
|
|
dept_data['isShowSelect'] = True
|