|
@@ -40,28 +40,28 @@ def read_all_regions(parent_id:str = '0',db: Session = Depends(get_db)):
|
|
|
isShowSelect1=False
|
|
|
if info.indexCode=='84021e2f6eba4e6b8ccc7d750fb833fa':
|
|
|
continue
|
|
|
-
|
|
|
- if info.indexCode=='root00000000':
|
|
|
- region_list = parent_id_get_region_info('root00000000')
|
|
|
- children = []
|
|
|
- for chil in region_list:
|
|
|
- isShowSelect = True
|
|
|
- if parent_id_get_region_info(chil.indexCode):
|
|
|
- isShowSelect = False
|
|
|
- if chil.indexCode == '84021e2f6eba4e6b8ccc7d750fb833fa':
|
|
|
- continue
|
|
|
-
|
|
|
- children.append({'id': chil.indexCode,
|
|
|
- 'label': chil.name,
|
|
|
- 'isShowSelect': isShowSelect
|
|
|
- })
|
|
|
- data.append({'id': info.indexCode,
|
|
|
- 'label': info.name,
|
|
|
- 'isShowSelect': isShowSelect1,
|
|
|
- 'children': children
|
|
|
- })
|
|
|
- else:
|
|
|
- data.append({'id': info.indexCode,
|
|
|
+ #
|
|
|
+ # if info.indexCode=='root00000000':
|
|
|
+ # region_list = parent_id_get_region_info('root00000000')
|
|
|
+ # children = []
|
|
|
+ # for chil in region_list:
|
|
|
+ # isShowSelect = True
|
|
|
+ # if parent_id_get_region_info(chil.indexCode):
|
|
|
+ # isShowSelect = False
|
|
|
+ # if chil.indexCode == '84021e2f6eba4e6b8ccc7d750fb833fa':
|
|
|
+ # continue
|
|
|
+ #
|
|
|
+ # children.append({'id': chil.indexCode,
|
|
|
+ # 'label': chil.name,
|
|
|
+ # 'isShowSelect': isShowSelect
|
|
|
+ # })
|
|
|
+ # data.append({'id': info.indexCode,
|
|
|
+ # 'label': info.name,
|
|
|
+ # 'isShowSelect': isShowSelect1,
|
|
|
+ # 'children': children
|
|
|
+ # })
|
|
|
+ # else:
|
|
|
+ data.append({'id': info.indexCode,
|
|
|
'label': info.name,
|
|
|
'isShowSelect': isShowSelect1
|
|
|
})
|