修复工作流查看form validate错误

This commit is contained in:
xiaocp2009 2025-11-05 14:14:17 +08:00
parent fc76e290ac
commit 8f40766b5b
2 changed files with 3 additions and 14 deletions

View File

@ -74,23 +74,12 @@ const model: Model = reactive(createDefaultModel());
function createDefaultModel(): Model { function createDefaultModel(): Model {
return { return {
flowCode: 'DemoDemo1',
flowCode: 'DemoDemo1',
flowCode: 'DemoDemo1', flowCode: 'DemoDemo1',
applyCode: '', applyCode: '',
flowCode: 'DemoDemo1',
name: '', name: '',
flowCode: 'DemoDemo1',
age: undefined, age: undefined,
flowCode: 'DemoDemo1',
remark: '', remark: '',
flowCode: 'DemoDemo1',
status: '', status: '',
flowCode: 'DemoDemo1',
flowCode: 'DemoDemo1',
flowCode: 'DemoDemo1',
flowCode: 'DemoDemo1',
flowCode: 'DemoDemo1',
}; };
} }
@ -281,7 +270,7 @@ watch(visible, initializeData, { immediate: true });
</NForm> </NForm>
</div> </div>
<div v-else> <div v-else>
<NDescriptions ref="formRef" :model="model" :rules="rules"> <NDescriptions size="small" bordered :column="2" label-placement="left">
<NDescriptionsItem label="申请编号"> <NDescriptionsItem label="申请编号">
{{ modelDetail.applyCode}} {{ modelDetail.applyCode}}
</NDescriptionsItem> </NDescriptionsItem>

View File

@ -79,8 +79,8 @@ const model: Model = reactive(createDefaultModel());
function createDefaultModel(): Model { function createDefaultModel(): Model {
return { return {
#foreach($column in $columns)
flowCode: '${BusinessName}', flowCode: '${BusinessName}',
#foreach($column in $columns)
#if($column.insert && ($column.javaField != 'flowCode')) #if($column.insert && ($column.javaField != 'flowCode'))
${column.javaField}:#if($column.javaType == 'String' || ($!column.dictType && $column.dictType != '')) ''#else undefined#end#if($foreach.hasNext),#end ${column.javaField}:#if($column.javaType == 'String' || ($!column.dictType && $column.dictType != '')) ''#else undefined#end#if($foreach.hasNext),#end
#end #end
@ -340,7 +340,7 @@ watch(visible, initializeData, { immediate: true });
</NForm> </NForm>
</div> </div>
<div v-else> <div v-else>
<NDescriptions ref="formRef" :model="model" :rules="rules"> <NDescriptions size="small" bordered :column="2" label-placement="left">
#foreach($column in $columns) #foreach($column in $columns)
#set($field=$column.javaField) #set($field=$column.javaField)
#if(($column.insert || $column.edit) && !$column.pk) #if(($column.insert || $column.edit) && !$column.pk)