Merge branch 'main' of http://43.140.215.244:7040/wangyukun/PRA-only-demo
这个提交包含在:
当前提交
9e9617256d
2 个文件已更改
+8
-8
没有与搜索条件相匹配的文件
+6
-6
@@ -67132,14 +67132,14 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "image_path",
|
"key": "image_path",
|
||||||
"label": "目标文件路径",
|
"label": "截图保存路径",
|
||||||
"widget": "file",
|
"widget": "file",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"displayType": "selectFile",
|
"displayType": "selectFile",
|
||||||
"required": true,
|
"required": true,
|
||||||
"defaultValue": "",
|
"defaultValue": "",
|
||||||
"placeholder": "如 D:\\files\\demo.png",
|
"placeholder": "如 D:\\files\\demo.png",
|
||||||
"description": "选择要截图的图片文件路径",
|
"description": "截图保存的完整文件路径(含文件名),点右侧按钮可直接选保存位置;留空时保存到「截图输出目录+截图文件名称」,再留空则保存到流程资源目录",
|
||||||
"advanced": false,
|
"advanced": false,
|
||||||
"valueTypes": [
|
"valueTypes": [
|
||||||
"rpa_str_file",
|
"rpa_str_file",
|
||||||
@@ -67194,8 +67194,8 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"defaultValue": "",
|
"defaultValue": "",
|
||||||
"placeholder": "如 D:\\output",
|
"placeholder": "如 D:\\output",
|
||||||
"description": "输出目录为空,将会保存文件到流程资源目录",
|
"description": "备用输出目录;「截图保存路径」为空时,截图保存到该目录下的「截图文件名称」",
|
||||||
"advanced": false,
|
"advanced": true,
|
||||||
"valueTypes": [
|
"valueTypes": [
|
||||||
"rpa_str_folder",
|
"rpa_str_folder",
|
||||||
"rpa_str"
|
"rpa_str"
|
||||||
@@ -67210,8 +67210,8 @@
|
|||||||
"required": false,
|
"required": false,
|
||||||
"defaultValue": "",
|
"defaultValue": "",
|
||||||
"placeholder": "输入内容或 ${变量}",
|
"placeholder": "输入内容或 ${变量}",
|
||||||
"description": "文件名称为空,将会自动生成文件名",
|
"description": "备用文件名;仅当「截图保存路径」为空时使用,留空则自动生成文件名",
|
||||||
"advanced": false,
|
"advanced": true,
|
||||||
"valueTypes": [
|
"valueTypes": [
|
||||||
"rpa_str"
|
"rpa_str"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -190,8 +190,8 @@ register("Image_Screenshot", async (ctx, node, args) => {
|
|||||||
if (source === "2") {
|
if (source === "2") {
|
||||||
// 指定图片文件来源:image_path 为输入图片;输出走 输出目录+文件名,两者均未配置时直接返回源文件
|
// 指定图片文件来源:image_path 为输入图片;输出走 输出目录+文件名,两者均未配置时直接返回源文件
|
||||||
if (!imageArg.trim()) {
|
if (!imageArg.trim()) {
|
||||||
throw new RuntimeError("validation_error", "图像来源为「指定图片文件」时,目标文件路径需填写源图片路径", {
|
throw new RuntimeError("validation_error", "图像来源为「指定图片文件」时,截图保存路径需填写源图片路径", {
|
||||||
recommendation: "在目标文件路径选择一张已存在的图片,或将图像来源改回「当前屏幕」"
|
recommendation: "在截图保存路径选择一张已存在的图片,或将图像来源改回「当前屏幕」"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const sourceFile = path.resolve(imageArg);
|
const sourceFile = path.resolve(imageArg);
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户