From c5fb4fc9c0d4bc5aa73f8828f82926e02a31d956 Mon Sep 17 00:00:00 2001 From: wangfq Date: Mon, 8 Jun 2026 11:19:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(fixture):=20=E4=BF=9D=E5=AD=98=E5=B7=A5?= =?UTF-8?q?=E8=A3=85=E5=8F=82=E6=95=B0=E6=97=B6=E8=AE=B0=E5=BD=95=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- edc-web/app/routes/fixture.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/edc-web/app/routes/fixture.py b/edc-web/app/routes/fixture.py index 25ad594..939f551 100644 --- a/edc-web/app/routes/fixture.py +++ b/edc-web/app/routes/fixture.py @@ -224,6 +224,15 @@ def api_save_fixture_param(dnt_id): if not data: return jsonify({"ok": False, "error": "数据为空"}), 400 upsert_fixture_param(dnt_id, **data) + device = get_device_by_id(dnt_id) + target = f"{device['serial']}" if device else f"dnt_id={dnt_id}" + insert_log( + current_user.id, current_user.username, "update", + target=target, + detail="保存工装配置参数", + result="ok", + ip=request.remote_addr or "", + ) return jsonify({"ok": True})