修复工作流查看form validate错误
This commit is contained in:
parent
fc76e290ac
commit
8f40766b5b
@ -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>
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user