diff --git a/apps/client/views.py b/apps/client/views.py index c604864..a7400c7 100644 --- a/apps/client/views.py +++ b/apps/client/views.py @@ -23,7 +23,7 @@ def get_client_list(): # 查看列表 @client_router.route("/get_list", methods=["GET","POST"]) -# @token_auth.login_required +@token_auth.login_required def getclient_list(): seach_word = request.values.get("seach_word") page = request.values.get("page", 1) @@ -38,7 +38,7 @@ def getclient_list(): # 新增and编辑 @client_router.route("/add_or_update", methods=["GET", "POST"]) -# @token_auth.login_required +@token_auth.login_required def client_add_update(): finds = [ "client_title", "client_code", "client_type", "place", "filter_production_date", @@ -71,7 +71,7 @@ def client_add_update(): # 锁定或解锁柜体 @client_router.route("/update_status", methods=["GET", "POST"]) -# @token_auth.login_required +@token_auth.login_required def update_status(): status_type = request.values.get("status_type") client_id = request.values.get("client_id")