From 3ca9597e020155d358894910b0a17f476cd0c151 Mon Sep 17 00:00:00 2001
From: hLinx <327159425@qq.com>
Date: Fri, 7 Feb 2025 15:14:54 +0800
Subject: [PATCH 3/5] =?UTF-8?q?feature:=20=E6=94=AF=E6=8C=81=E6=8C=87?=
=?UTF-8?q?=E5=AE=9A=E8=84=9A=E6=9C=AC=E8=A7=A3=E9=87=8A=E5=99=A8=E8=BF=90?=
=?UTF-8?q?=E8=A1=8C=E8=84=9A=E6=9C=AC=20#3321=20#=20Reviewed,=20transacti?=
=?UTF-8?q?on=20id:=2029896?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../task-step/script/strategy/window-interpreter.vue | 4 ++--
src/frontend/src/i18n/language/en.json | 4 ++--
src/frontend/src/i18n/language/zh.json | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue b/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue
index e5f396061c..bf76ed9f6c 100644
--- a/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue
+++ b/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue
@@ -5,9 +5,9 @@
:label="$t('解释器')">
- {{ $t('自定义window解释器路径') }}
+ {{ $t('自定义windows解释器路径') }}
Date: Sat, 8 Feb 2025 11:45:51 +0800
Subject: [PATCH 4/5] =?UTF-8?q?feature:=20=E6=94=AF=E6=8C=81=E6=8C=87?=
=?UTF-8?q?=E5=AE=9A=E8=84=9A=E6=9C=AC=E8=A7=A3=E9=87=8A=E5=99=A8=E8=BF=90?=
=?UTF-8?q?=E8=A1=8C=E8=84=9A=E6=9C=AC=20#3321=20#=20Reviewed,=20transacti?=
=?UTF-8?q?on=20id:=2029932?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../task-step/script/strategy/window-interpreter.vue | 12 ++++++++++--
src/frontend/src/i18n/language/en.json | 2 +-
src/frontend/src/i18n/language/zh.json | 2 +-
3 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue b/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue
index bf76ed9f6c..7022fe2652 100644
--- a/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue
+++ b/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue
@@ -3,7 +3,9 @@
class="form-item-content"
:field="field"
:label="$t('解释器')">
-
+
@@ -15,7 +17,7 @@
style="margin-top: 8px">
@@ -47,6 +49,12 @@
immediate: true,
});
+ const handleCustomChange = (value) => {
+ if (!value) {
+ emits('on-change', props.field, '');
+ }
+ };
+
const handleChange = (value) => {
emits('on-change', props.field, value);
};
diff --git a/src/frontend/src/i18n/language/en.json b/src/frontend/src/i18n/language/en.json
index 5abba06e39..7ff21392f8 100644
--- a/src/frontend/src/i18n/language/en.json
+++ b/src/frontend/src/i18n/language/en.json
@@ -566,5 +566,5 @@
"解释器": "Interpreter",
"使用目标机器指定路径下的解释器运行本脚本(仅对Windows有效)": "Run this script using the interpreter in the specified path on the target hosts (Only for Windows)",
"自定义windows解释器路径": "Customize the Interpreter Path in Windows",
- "输入目标机器上的自定义解释器软件路径,如:/usr/local/python-2/bin/python": "Enter the path of the custom interpreter software on the target machine, such as: /usr/local/python-2/bin/python"
+ "输入目标机器上的自定义解释器软件路径,如:D:\\Software\\python3\\python.exe": "Enter the path of the custom interpreter software on the target machine, such as: D:\\Software\\python3\\python.exe"
}
\ No newline at end of file
diff --git a/src/frontend/src/i18n/language/zh.json b/src/frontend/src/i18n/language/zh.json
index 14e52c4678..2ceb9f75e3 100644
--- a/src/frontend/src/i18n/language/zh.json
+++ b/src/frontend/src/i18n/language/zh.json
@@ -566,5 +566,5 @@
"解释器": "解释器",
"使用目标机器指定路径下的解释器运行本脚本(仅对Windows有效)": "使用目标机器指定路径下的解释器运行本脚本(仅对Windows有效)",
"自定义windows解释器路径": "自定义windows解释器路径",
- "输入目标机器上的自定义解释器软件路径,如:/usr/local/python-2/bin/python": "输入目标机器上的自定义解释器软件路径,如:/usr/local/python-2/bin/python"
+ "输入目标机器上的自定义解释器软件路径,如:D:\\Software\\python3\\python.exe": "输入目标机器上的自定义解释器软件路径,如:D:\\Software\\python3\\python.exe"
}
\ No newline at end of file
From dd9ac06717f44d07319a07f42d69cb8ee164a6ab Mon Sep 17 00:00:00 2001
From: hLinx <327159425@qq.com>
Date: Thu, 13 Feb 2025 15:55:24 +0800
Subject: [PATCH 5/5] =?UTF-8?q?feature:=20=E6=94=AF=E6=8C=81=E6=8C=87?=
=?UTF-8?q?=E5=AE=9A=E8=84=9A=E6=9C=AC=E8=A7=A3=E9=87=8A=E5=99=A8=E8=BF=90?=
=?UTF-8?q?=E8=A1=8C=E8=84=9A=E6=9C=AC=20#3321=20#=20Reviewed,=20transacti?=
=?UTF-8?q?on=20id:=2030240?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../script/strategy/window-interpreter.vue | 39 ++++++++++++++-----
src/frontend/src/i18n/index.js | 2 +-
src/frontend/src/i18n/language/en.json | 3 +-
src/frontend/src/i18n/language/zh.json | 3 +-
.../fast-execution/exec-script/index.vue | 4 +-
.../task-step/components/exec-script.vue | 4 +-
6 files changed, 38 insertions(+), 17 deletions(-)
diff --git a/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue b/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue
index 7022fe2652..6433d32514 100644
--- a/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue
+++ b/src/frontend/src/components/task-step/script/strategy/window-interpreter.vue
@@ -1,15 +1,18 @@
+ error-display-type="normal"
+ :label="t('解释器')"
+ :property="field"
+ :required="isCustom"
+ :rules="rules">
- {{ $t('自定义windows解释器路径') }}
+ {{ t('自定义windows解释器路径') }}
@@ -26,6 +29,9 @@