From 87be028fa2099aed7cccad74db764714aa9bb67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=8C=AF=E8=8A=B3?= Date: Tue, 9 Dec 2025 16:23:27 +0800 Subject: [PATCH] feat: update create workflow content --- .../web/src/views/workflow/addWorkflow.vue | 135 ++++++++++-------- 1 file changed, 78 insertions(+), 57 deletions(-) diff --git a/automation/web/src/views/workflow/addWorkflow.vue b/automation/web/src/views/workflow/addWorkflow.vue index 76a90d9f..e5a01603 100644 --- a/automation/web/src/views/workflow/addWorkflow.vue +++ b/automation/web/src/views/workflow/addWorkflow.vue @@ -8,62 +8,72 @@ 新建编排
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 提交 - 重置 - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ i.value }} + + + + +
+ @@ -87,6 +98,7 @@ import { ref, reactive, onMounted, defineAsyncComponent } from 'vue'; import { useRouter } from 'vue-router'; import { CirclePlus } from '@element-plus/icons-vue'; import { tagList } from '@/api/tag'; +import AddInParam from './form/AddInParam.vue'; const AddTag = defineAsyncComponent(() => import('@/views/scriptLibrary/form/addTag.vue')); const router = useRouter(); @@ -96,6 +108,7 @@ const rwType = ref('add_tag'); const dialogTitle = ref('新建标签'); const dialogWidth = ref('50%'); const editData: any = ref(null); +const activeName = ref('base_info'); // 表单数据 const formData = reactive({ @@ -103,7 +116,7 @@ const formData = reactive({ sceneTag: '', sourceType: '', modify_user: '', - s_type: '', + s_type: 'task', sceneDescription: '', targetServer: '', }); @@ -147,6 +160,14 @@ const getList = async () => { tableData.value = res.data.data; } }; + +const dynamicInParams = ref<{ key: string; value: string }[]>([]); +// 新建编排入参 +const addInParam = () => { + dialogTitle.value = '新建参数'; + dialogVisible.value = true; + rwType.value = 'add_in_param'; +}; // 关闭弹窗 const handleCloseDialog = () => { dialogVisible.value = false; -- Gitee