fix : 修复附件校验问题

This commit is contained in:
2024-06-08 00:04:33 +08:00
parent 617a867965
commit 86ff3c2e94
6 changed files with 48 additions and 46 deletions

View File

@@ -22,7 +22,7 @@
<div class="process">
<operation-render v-if="processViewer" :operation-list="data.operationList"
:state="data.state"/>
<process-diagram-viewer v-if="processViewer" :id-name="type"/>
<process-diagram-viewer v-if="processViewer" :id-name="idName?idName:type"/>
</div>
</div>
</div>
@@ -67,6 +67,10 @@ const props = defineProps({
value: {
type: String,
default: ''
},
idName: {
type: String,
default: ''
}
})
const form = ref()
@@ -224,7 +228,7 @@ const handleDownload = (row) => {
})
}
watchEffect(() => {
Object.keys(props.formData).length && (form.value.setValues(props.formData))
Object.keys(props.formData).length && (form.value?.setValues(props.formData))
})
watch(() => props.loading, (newVal) => {