From d66b8dcb7740204b3c149b00b0ebe3143a742635 Mon Sep 17 00:00:00 2001 From: lTimej Date: Thu, 29 Aug 2024 16:02:36 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E8=8A=82=E7=82=B9=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=A2=9E=E5=8A=A0=20=E3=80=90=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E6=B3=A8=E5=86=8C=20Agent=5Fid=E3=80=91=E9=80=89?= =?UTF-8?q?=E9=A1=B9=20#7544?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sites/open/nodeman/create_task/v4_0.py | 5 ++++- .../atoms/nodeman/create_task/v6_0.js | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/pipeline_plugins/components/collections/sites/open/nodeman/create_task/v4_0.py b/pipeline_plugins/components/collections/sites/open/nodeman/create_task/v4_0.py index 19558a9554..a8a67c8fa9 100644 --- a/pipeline_plugins/components/collections/sites/open/nodeman/create_task/v4_0.py +++ b/pipeline_plugins/components/collections/sites/open/nodeman/create_task/v4_0.py @@ -122,7 +122,10 @@ def execute(self, data, parent_data): auth_params["key"] = auth_key # 额外配置参数 - extra_config_params = {"peer_exchange_switch_for_agent": host.get("peer_exchange_switch_for_agent", 0)} + extra_config_params = { + "peer_exchange_switch_for_agent": host.get("peer_exchange_switch_for_agent", 0), + "force_update_agent_id": host.get("force_update_agent_id", False), + } speed_limit = host.get("speed_limit") if speed_limit: extra_config_params.update({"bt_speed_limit": int(speed_limit)}) diff --git a/pipeline_plugins/components/static/components/atoms/nodeman/create_task/v6_0.js b/pipeline_plugins/components/static/components/atoms/nodeman/create_task/v6_0.js index 83a4e4ca34..7e63948ace 100644 --- a/pipeline_plugins/components/static/components/atoms/nodeman/create_task/v6_0.js +++ b/pipeline_plugins/components/static/components/atoms/nodeman/create_task/v6_0.js @@ -320,6 +320,23 @@ ] }, }, + { + tag_code: "force_update_agent_id", + type: "radio", + attrs: { + name: gettext("重新注册Agent_id"), + items: [ + {value: true, name: gettext("是")}, + {value: false, name: gettext("否")} + ], + default: false, + validation: [ + { + type: "required" + }, + ] + }, + }, ]; self.columns = common_columns;