服务流程-增加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',
dataIndex: 'directiveId_dictText',
},
{
title: 'PAD路径',
align: 'center',
dataIndex: 'padPath',
},
{
title: '是否启用',
align: 'center',

View File

@ -37,6 +37,12 @@
<a-input v-model:value="formData.flowCode" placeholder="请输入流程编码" allow-clear></a-input>
</a-form-item>
</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-form-item label="是否启用" v-bind="validateInfos.izEnabled" id="ServiceFlowSubForm-izEnabled"
name="izEnabled">
@ -76,6 +82,7 @@ const formData = reactive<Record<string, any>>({
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 });

View File

@ -102,6 +102,11 @@
placeholder="请选择服务指令" allow-clear />
</a-form-item>
</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-form>
</div>
@ -160,6 +165,7 @@ const formData = reactive<Record<string, any>>({
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
@ -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) {