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) {