Skip to content

Commit affd6e8

Browse files
committed
style: 清除无用代码
1 parent ebafada commit affd6e8

File tree

13 files changed

+16
-37
lines changed

13 files changed

+16
-37
lines changed

dash-fastapi-frontend/app.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
fuc.FefferyLocation(id='url-container'),
1414
# 用于回调pathname信息
1515
dcc.Location(id='dcc-url', refresh=False),
16-
# 注入js执行容器
17-
fuc.FefferyExecuteJs(id='execute-js-container'),
1816
# 注入页面内容挂载点
1917
html.Div(id='app-mount'),
2018
# 注入全局配置容器
@@ -26,7 +24,7 @@
2624
placeholder='输入你想要搜索的菜单...',
2725
panelStyles={'accentColor': '#1890ff', 'zIndex': 99999},
2826
),
29-
# 辅助处理多输入 -> 存储接口返回token校验信息
27+
# 注入全局store容器
3028
render_store_container(),
3129
# 重定向容器
3230
html.Div(id='redirect-container'),

dash-fastapi-frontend/callbacks/system_c/menu_c/components_c/button_type_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
confirm_trigger=Input('menu-modal-F-trigger', 'data'),
3939
),
4040
state=dict(
41-
modal_type=State('menu-operations-store-bk', 'data'),
41+
modal_type=State('menu-modal_type-store', 'data'),
4242
edit_row_info=State('menu-edit-id-store', 'data'),
4343
parent_id=State('menu-parent_id', 'value'),
4444
menu_type=State('menu-menu_type', 'value'),

dash-fastapi-frontend/callbacks/system_c/menu_c/components_c/content_type_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
),
3939
inputs=dict(confirm_trigger=Input('menu-modal-M-trigger', 'data')),
4040
state=dict(
41-
modal_type=State('menu-operations-store-bk', 'data'),
41+
modal_type=State('menu-modal_type-store', 'data'),
4242
edit_row_info=State('menu-edit-id-store', 'data'),
4343
parent_id=State('menu-parent_id', 'value'),
4444
menu_type=State('menu-menu_type', 'value'),

dash-fastapi-frontend/callbacks/system_c/menu_c/components_c/menu_type_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
),
4343
inputs=dict(confirm_trigger=Input('menu-modal-C-trigger', 'data')),
4444
state=dict(
45-
modal_type=State('menu-operations-store-bk', 'data'),
45+
modal_type=State('menu-modal_type-store', 'data'),
4646
edit_row_info=State('menu-edit-id-store', 'data'),
4747
parent_id=State('menu-parent_id', 'value'),
4848
menu_type=State('menu-menu_type', 'value'),

dash-fastapi-frontend/callbacks/system_c/menu_c/menu_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def get_select_icon(icon):
239239
],
240240
other=dict(
241241
edit_row_info=Output('menu-edit-id-store', 'data'),
242-
modal_type=Output('menu-operations-store-bk', 'data'),
242+
modal_type=Output('menu-modal_type-store', 'data'),
243243
),
244244
),
245245
inputs=dict(

dash-fastapi-frontend/callbacks/system_c/notice_c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def get_notice_table_data(
249249
],
250250
other=dict(
251251
edit_row_info=Output('notice-edit-id-store', 'data'),
252-
modal_type=Output('notice-operations-store-bk', 'data'),
252+
modal_type=Output('notice-modal_type-store', 'data'),
253253
),
254254
),
255255
inputs=dict(
@@ -376,7 +376,7 @@ def add_edit_notice_modal(
376376
),
377377
inputs=dict(confirm_trigger=Input('notice-modal', 'okCounts')),
378378
state=dict(
379-
modal_type=State('notice-operations-store-bk', 'data'),
379+
modal_type=State('notice-modal_type-store', 'data'),
380380
edit_row_info=State('notice-edit-id-store', 'data'),
381381
notice_title=State('notice-notice_title', 'value'),
382382
notice_type=State('notice-notice_type', 'value'),

dash-fastapi-frontend/callbacks/system_c/role_c/role_c.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def change_role_menu_mode(parent_children):
359359
'role-menu-perms-radio-parent-children', 'checked'
360360
),
361361
edit_row_info=Output('role-edit-id-store', 'data'),
362-
modal_type=Output('role-operations-store-bk', 'data'),
362+
modal_type=Output('role-modal_type-store', 'data'),
363363
),
364364
inputs=dict(
365365
operation_click=Input(
@@ -392,7 +392,7 @@ def add_edit_role_modal(operation_click, button_click, selected_row_keys):
392392
role_info = dict(
393393
role_name=None,
394394
role_key=None,
395-
role_sort=None,
395+
role_sort=0,
396396
status=SysNormalDisableConstant.NORMAL,
397397
remark=None,
398398
)
@@ -473,7 +473,7 @@ def add_edit_role_modal(operation_click, button_click, selected_row_keys):
473473
),
474474
inputs=dict(confirm_trigger=Input('role-modal', 'okCounts')),
475475
state=dict(
476-
modal_type=State('role-operations-store-bk', 'data'),
476+
modal_type=State('role-modal_type-store', 'data'),
477477
edit_row_info=State('role-edit-id-store', 'data'),
478478
form_value=State(
479479
{'type': 'role-form-value', 'index': ALL, 'required': ALL}, 'value'

dash-fastapi-frontend/store/store.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ def render_store_container():
99
dcc.Store(
1010
id='custom-app-primary-color-container', storage_type='session'
1111
),
12-
# 接口校验返回存储容器
13-
dcc.Store(id='api-check-result-container'),
1412
# token存储容器
1513
dcc.Store(id='token-container', storage_type='session'),
1614
# 当前路由存储容器

dash-fastapi-frontend/views/system/menu/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def render(*args, **kwargs):
1414
return [
1515
# 菜单管理模块操作类型存储容器
1616
dcc.Store(id='menu-operations-store'),
17-
dcc.Store(id='menu-operations-store-bk'),
17+
# 菜单管理模块弹窗类型存储容器
18+
dcc.Store(id='menu-modal_type-store'),
1819
# modal菜单类型存储容器
1920
dcc.Store(id='menu-modal-menu-type-store'),
2021
# 不同菜单类型的触发器

dash-fastapi-frontend/views/system/notice/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def render(*args, **kwargs):
1616
return [
1717
# 通知公告管理模块操作类型存储容器
1818
dcc.Store(id='notice-operations-store'),
19-
dcc.Store(id='notice-operations-store-bk'),
19+
# 通知公告管理模块弹窗类型存储容器
20+
dcc.Store(id='notice-modal_type-store'),
2021
# 通知公告管理模块修改操作行key存储容器
2122
dcc.Store(id='notice-edit-id-store'),
2223
# 通知公告管理模块删除操作行key存储容器

0 commit comments

Comments
 (0)