-
-
-
{{ props.data.name }}
-
-
- ···
-
+
+
+
+
{{ props.data.name }}
+
+
- {{ $t('semantic.edit') }}
-
-
- {{ $t('semantic.interface_delete') }}
-
-
+ ···
+
+ {{ $t('semantic.edit') }}
+
+
+ {{ $t('semantic.interface_delete') }}
+
+
+
-
-
- {{ props.data.description }}
-
-
+
- {{ item.description }}
-
-
-
+
+ {{ item.description }}
+
+
+
+
+
+
+
+
-
-
diff --git a/src/views/createapp/components/workFlowConfig/CodeNodeDrawer.vue b/src/views/createapp/components/workFlowConfig/CodeNodeDrawer.vue
new file mode 100644
index 0000000000000000000000000000000000000000..8ec4414b514288fd2065cbcd28ebe4997051c54e
--- /dev/null
+++ b/src/views/createapp/components/workFlowConfig/CodeNodeDrawer.vue
@@ -0,0 +1,1154 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 变量管理
+
+
+
+
+
+
+
+
+
+
+ handleInputVariableSelected(selectedVar, index)"
+ />
+
+
+
+
暂无输入变量
+
选择变量作为代码输入参数
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
暂无输出变量
+
输出变量应在代码的返回值中定义
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 执行配置
+
+
+
+
+
+ 秒
+
+
+
+ MB
+
+
+
+ 核心
+
+
+
+
+
+
+
+
+
+
+
+ 代码编辑
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/createapp/components/workFlowConfig/CustomNode.vue b/src/views/createapp/components/workFlowConfig/CustomNode.vue
index 3ea0b1258bc04c2d48d31d5566b384f5fd6f077f..0d85a182b5f8f4ffb017d189ff011b50dd09cd7b 100644
--- a/src/views/createapp/components/workFlowConfig/CustomNode.vue
+++ b/src/views/createapp/components/workFlowConfig/CustomNode.vue
@@ -28,6 +28,10 @@ const props = defineProps({
type: Boolean,
required: false,
},
+ selected: {
+ type: Boolean,
+ default: false,
+ },
});
const emits = defineEmits(['delNode', 'editYamlDrawer', 'updateConnectHandle']);
const { t } = useI18n();
@@ -101,6 +105,13 @@ const setConnectStatus = (type) => {
emits('updateConnectHandle', props.id);
};
+// 处理节点点击事件
+const handleNodeClick = () => {
+ if (!props.disabled) {
+ editYaml(props.data.name, props.data.description, props.data.parameters);
+ }
+};
+
const handleCopyTextToclipboard = (text) => {
const input = document.createElement('input');
input.value = text;
@@ -119,75 +130,67 @@ const handleCopyTextToclipboard = (text) => {
-
+
-
-
-
-
![]()
-
-
-
-
{{ props.data.name }}
-
+
+
+
+
+
![]()
+
+
+
+
{{ props.data.name }}
+
-
-
-
-
-
-
+
- {{ $t('semantic.edit') }}
-
-
- {{ $t('semantic.interface_delete') }}
-
-
-
-
-
-
- {{ desc }}
+
+
+
+
+ {{ $t('semantic.edit') }}
+
+
+ {{ $t('semantic.interface_delete') }}
+
+
+
+
-
+
+