服务流程-增加pad路径字段

This commit is contained in:
曹磊 2025-12-23 16:37:54 +08:00
parent b289e47a85
commit 7725d36c2e
3 changed files with 28 additions and 1 deletions

View File

@ -25,6 +25,11 @@ export const columns: BasicColumn[] = [
align: 'center', align: 'center',
dataIndex: 'directiveId_dictText', dataIndex: 'directiveId_dictText',
}, },
{
title: 'PAD路径',
align: 'center',
dataIndex: 'padPath',
},
{ {
title: '是否启用', title: '是否启用',
align: 'center', align: 'center',

View File

@ -37,6 +37,12 @@
<a-input v-model:value="formData.flowCode" placeholder="请输入流程编码" allow-clear></a-input> <a-input v-model:value="formData.flowCode" placeholder="请输入流程编码" allow-clear></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-item label="PAD路径" v-bind="validateInfos.padPath" id="ServiceFlowSubForm-padPath"
name="padPath">
<a-input v-model:value="formData.padPath" placeholder="请输入PAD路径" allow-clear></a-input>
</a-form-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-item label="是否启用" v-bind="validateInfos.izEnabled" id="ServiceFlowSubForm-izEnabled" <a-form-item label="是否启用" v-bind="validateInfos.izEnabled" id="ServiceFlowSubForm-izEnabled"
name="izEnabled"> name="izEnabled">
@ -76,6 +82,7 @@ const formData = reactive<Record<string, any>>({
directiveId: '', directiveId: '',
subId: '', subId: '',
flowCode: '', flowCode: '',
padPath: '',
izEnabled: 'Y', izEnabled: 'Y',
}); });
const { createMessage } = useMessage(); const { createMessage } = useMessage();
@ -89,6 +96,7 @@ const validatorRules = reactive({
directiveId: [{ required: true, message: '请输入服务指令ID!' },], directiveId: [{ required: true, message: '请输入服务指令ID!' },],
// subId: [{ required: true, message: 'ID!' },], // subId: [{ required: true, message: 'ID!' },],
flowCode: [{ required: true, message: '请输入流程编码!' },], flowCode: [{ required: true, message: '请输入流程编码!' },],
padPath: [{ required: true, message: '请输入PAD路径!' },],
izEnabled: [{ required: true, message: '请输入是否启用!' },], izEnabled: [{ required: true, message: '请输入是否启用!' },],
}); });
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false }); const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });

View File

@ -102,6 +102,11 @@
placeholder="请选择服务指令" allow-clear /> placeholder="请选择服务指令" allow-clear />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-item label="PAD路径" name="padPath">
<a-input v-model:value="formData.padPath" placeholder="请输入PAD路径" allow-clear></a-input>
</a-form-item>
</a-col>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
@ -160,6 +165,7 @@ const formData = reactive<Record<string, any>>({
categoryId: '', categoryId: '',
typeId: '', typeId: '',
directiveId: '', directiveId: '',
padPath: '',
subId: '', subId: '',
}); });
//table //table
@ -279,6 +285,7 @@ function handleIzEnabled(record, izEnabled_) {
function handleDirective(record: Recordable) { function handleDirective(record: Recordable) {
title.value = '服务指令' title.value = '服务指令'
formData.directiveId = record.directiveId formData.directiveId = record.directiveId
formData.padPath = record.padPath
opeType.value = 'directive' opeType.value = 'directive'
visible.value = true visible.value = true
opeObj.value = record opeObj.value = record
@ -354,6 +361,7 @@ function handleOk() {
let params = { let params = {
id: opeObj.value.id, id: opeObj.value.id,
directiveId: null, directiveId: null,
padPath: null,
subId: null subId: null
} }
if (opeType.value == 'directive') { if (opeType.value == 'directive') {
@ -363,6 +371,12 @@ function handleOk() {
} else { } else {
params.directiveId = formData.directiveId params.directiveId = formData.directiveId
} }
if (!formData.padPath) {
createMessage.warning('未输入PAD路径');
return
} else {
params.padPath = formData.padPath
}
} }
if (opeType.value == 'node') { if (opeType.value == 'node') {
if (!formData.subId) { if (!formData.subId) {