From 7725d36c2ec02f866ebf3350e93409849dab1085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Tue, 23 Dec 2025 16:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=B5=81=E7=A8=8B-=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0pad=E8=B7=AF=E5=BE=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/flow/components/ServiceFlowSub.data.ts | 5 +++++ src/views/flow/components/ServiceFlowSubForm.vue | 8 ++++++++ src/views/flow/components/ServiceFlowSubList.vue | 16 +++++++++++++++- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/views/flow/components/ServiceFlowSub.data.ts b/src/views/flow/components/ServiceFlowSub.data.ts index 30ebf9b..225bf2d 100644 --- a/src/views/flow/components/ServiceFlowSub.data.ts +++ b/src/views/flow/components/ServiceFlowSub.data.ts @@ -25,6 +25,11 @@ export const columns: BasicColumn[] = [ align: 'center', dataIndex: 'directiveId_dictText', }, + { + title: 'PAD路径', + align: 'center', + dataIndex: 'padPath', + }, { title: '是否启用', align: 'center', diff --git a/src/views/flow/components/ServiceFlowSubForm.vue b/src/views/flow/components/ServiceFlowSubForm.vue index 404ad39..694ed68 100644 --- a/src/views/flow/components/ServiceFlowSubForm.vue +++ b/src/views/flow/components/ServiceFlowSubForm.vue @@ -37,6 +37,12 @@ + + + + + @@ -76,6 +82,7 @@ const formData = reactive>({ directiveId: '', subId: '', flowCode: '', + padPath: '', izEnabled: 'Y', }); const { createMessage } = useMessage(); @@ -89,6 +96,7 @@ const validatorRules = reactive({ directiveId: [{ required: true, message: '请输入服务指令ID!' },], // subId: [{ required: true, message: '请输入下一流程节点ID!' },], flowCode: [{ required: true, message: '请输入流程编码!' },], + padPath: [{ required: true, message: '请输入PAD路径!' },], izEnabled: [{ required: true, message: '请输入是否启用!' },], }); const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false }); diff --git a/src/views/flow/components/ServiceFlowSubList.vue b/src/views/flow/components/ServiceFlowSubList.vue index fb88493..06c620c 100644 --- a/src/views/flow/components/ServiceFlowSubList.vue +++ b/src/views/flow/components/ServiceFlowSubList.vue @@ -102,6 +102,11 @@ placeholder="请选择服务指令" allow-clear /> + + + + + @@ -160,6 +165,7 @@ const formData = reactive>({ categoryId: '', typeId: '', directiveId: '', + padPath: '', subId: '', }); //注册table数据 @@ -279,6 +285,7 @@ function handleIzEnabled(record, izEnabled_) { function handleDirective(record: Recordable) { title.value = '服务指令' formData.directiveId = record.directiveId + formData.padPath = record.padPath opeType.value = 'directive' visible.value = true opeObj.value = record @@ -308,7 +315,7 @@ function getTableAction(record) { label: '下一节点', onClick: handleNode.bind(null, record), }, - { + { label: '启用', onClick: handleIzEnabled.bind(null, record, 'Y'), ifShow: record.izEnabled == 'N' @@ -354,6 +361,7 @@ function handleOk() { let params = { id: opeObj.value.id, directiveId: null, + padPath: null, subId: null } if (opeType.value == 'directive') { @@ -363,6 +371,12 @@ function handleOk() { } else { params.directiveId = formData.directiveId } + if (!formData.padPath) { + createMessage.warning('未输入PAD路径'); + return + } else { + params.padPath = formData.padPath + } } if (opeType.value == 'node') { if (!formData.subId) {