feat : 封装带有附件及其他文件上传的组件

This commit is contained in:
2024-05-18 20:52:14 +08:00
parent 2f19bb7bdc
commit 716d18122f
3 changed files with 167 additions and 77 deletions

View File

@@ -39,7 +39,7 @@ import OperationRender from '@/views/workflow/common/OperationRender.vue'
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue'
import {matterTree} from '@/utils/matterTree.js';
const emit = defineEmits(['getInfo'])
const emit = defineEmits(['getInfo','download'])
const form = ref()
const showForm = ref(true)
const loading = ref(false)
@@ -139,6 +139,9 @@ const init = (newVal) => {
const getInfo = () => {
emit('getInfo')
}
const handleDownload = (row) => {
emit('download',row)
}
const getDataSourceOptionItem = (val) => {
if (val instanceof Array) {
val.forEach(item => {