fix : 附件上传修复

This commit is contained in:
2024-07-18 15:21:41 +08:00
parent f154e2789b
commit 203b53936f

View File

@@ -18,11 +18,12 @@
</el-form>
<div style="display: flex; align-items: center">
<baseTitle title="其他文件" style="margin-right: 10px"></baseTitle>
<file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''"/></div>
<fvTable style="width: 100%;max-height: 162px;" v-if="showTable" height="162" :tableConfig="tableConfig"
<file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''"/>
</div>
<fvTable style="width: 100%;max-height: 300px;" v-if="showTable" height="300" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false">
<template #empty>
<el-empty :image-size="55" description="暂无数据" style="padding: 0"/>
<el-empty :image-size="99" description="暂无数据" style="padding: 0"/>
</template>
</fvTable>
<div class="oper-page-btn">
@@ -245,6 +246,14 @@ const handleSubmit = async (instance) => {
id: route.query.projectId
}
})
} else {
if (router.query.type !== '40') {
router.push({
name: 'Implementation/attachment',
query: {
id: route.query.id
}
})
} else {
await router.push({
name: 'Implementation/detail',
@@ -257,6 +266,7 @@ const handleSubmit = async (instance) => {
})
}
}
}
})
}
getTagsOption()