From d384a2539ca36935c76eaf81bc1f72ee2fd7fa1a Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Fri, 25 Nov 2022 16:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E4=BF=A1=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/power/views.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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")