fix : 修复上传文件功能

This commit is contained in:
2024-05-12 17:03:12 +08:00
parent d5c7da1328
commit 324cc268b5
2 changed files with 34 additions and 47 deletions

View File

@@ -33,12 +33,26 @@
</el-card>
</el-form-item>
</el-col>
<baseTitle title="申请文件"></baseTitle>
<baseTitle title="附件列表"></baseTitle>
<el-col :span="24">
<el-form-item>
<fvTable ref="tableIns" style="max-height: 200px;width: 100%" :tableConfig="tableConfig"
@headBtnClick="headBtnClick"
:pagination="false"></fvTable>
<el-table :data="formData.fileList" style="width: 100%">
<el-table-column label="序号" type="index" align="center" width="80"/>
<el-table-column prop="originalFilename" label="文件名" align="center"/>
<el-table-column prop="tag" label="标签" align="center"/>
<el-table-column prop="size" label="文件大小" align="center">
<template #default="scope">
{{ parseInt(scope.row.size / 1024) }}KB
</template>
</el-table-column>
<el-table-column align="center" label="操作">
<template #default="scope">
<a :href="scope.row.url">
下载
</a>
</template>
</el-table-column>
</el-table>
</el-form-item>
</el-col>
<el-col :span="24">
@@ -86,36 +100,6 @@ const processDiagramViewer = ref(false)
const processTree = ref()
const formData = ref({})
const auditOpinion = ref('')
const tableConfig = reactive({
columns: [
{
prop: 'roleName',
label: '文件名',
align: 'center'
},
{
prop: 'roleKey',
label: '标签',
align: 'center'
},
{
prop: 'oper',
label: '操作',
align: 'center',
width: '200px',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
return (
<div>
<el-button type="primary" link onClick={() => handleDownload(row)}>下载
</el-button>
</div>
)
}
}
],
api: ''
})
const handleSubmit = () => {
let approve = {
taskId: processInstanceData.value.taskId,