浏览代码

250109-1代码。

baoyubo 5 月之前
父节点
当前提交
980de24d32

+ 2 - 0
routers/api/ThreeProofingResponsible/person_self.py

@@ -353,6 +353,8 @@ async def get_emergency_contact_id_info(
                 if other_type_info:
                     label = other_type_info.type_name
                 type_data['children2'].append({"id": other_type.other_type_id, "label": label})
+
+            contact_result['type_list'].append(type_data)
         # 返回结果
         return {
             "code": 200,

+ 2 - 2
routers/api/ThreeProofingResponsible/type_data.py

@@ -275,13 +275,13 @@ async def get_dict_data_by_type(
             if type_list:
                 children = []
                 for type_info in type_list:
-                    children.append({"id":type_info.id,"label":type_info.type_name,"parent_id":type_info.type_parent_id})
+                    children.append({"id":str(type_info.id),"label":type_info.type_name,"parent_id":type_info.type_parent_id})
                 data['children']=children
             other_type_list = get_other_type_list_by_type_parent_id(db,parent_info.dict_value)
             if other_type_list:
                 children = []
                 for type_info in other_type_list:
-                    children.append({"id":type_info.id,"label":type_info.type_name,"parent_id":type_info.type_parent_id})
+                    children.append({"id":str(type_info.id),"label":type_info.type_name,"parent_id":type_info.type_parent_id})
                 data['children2']=children
             dict_data_list.append(data)
         result = {