diff --git a/apps/power/views.py b/apps/power/views.py index c5ad7ea..a5292b0 100644 --- a/apps/power/views.py +++ b/apps/power/views.py @@ -43,13 +43,13 @@ def add_user_power_list(): client_module = request.values.get("client_module_id") drug_module = request.values.get("drug_module_id") standard_module = request.values.get("standard_module_id") - consumables_module = request.values.get("consumables_module_id") + dangerous_module = request.values.get("dangerous_module_id") # instrument_modulet = request.values.get("instrument_module_id") inster_dic = { "1": eval(client_module) if client_module else [], "2": eval(drug_module) if drug_module else [], "3": eval(standard_module) if standard_module else [], - "4": eval(consumables_module) if consumables_module else [], + "4": eval(dangerous_module) if dangerous_module else [], # "5": eval(instrument_modulet) if instrument_modulet else [], } # 删除除去柜子权限外的所有权限 @@ -139,17 +139,12 @@ def add_role(): drug_module = request.values.get("drug_module_id") standard_module = request.values.get("standard_module_id") dangerous_module = request.values.get("dangerous_module_id") - # consumables_module = request.values.get("consumables_module_id") # instrument_modulet = request.values.get("instrument_module_id") inster_dic = { "1": eval(client_module) if client_module else [], "2": eval(drug_module) if drug_module else [], "3": eval(standard_module) if standard_module else [], "4": eval(dangerous_module) if dangerous_module else [], - # "1": eval(client_module) if client_module else [], - # "2": eval(drug_module) if drug_module else [], - # "3": eval(standard_module) if standard_module else [], - # "4": eval(consumables_module) if consumables_module else [], # "5": eval(instrument_modulet) if instrument_modulet else [], } description = request.values.get("description")