😎修复文件上传流程

This commit is contained in:
zuohuaijun 2025-06-05 02:33:13 +08:00
parent 1c7f83dbfe
commit 8352ba6736
2 changed files with 3 additions and 17 deletions

View File

@ -35,22 +35,8 @@
</el-row>
<el-row>
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
<el-form-item label="关联对象名称" prop="relationName">
<el-input v-model="state.ruleForm.relationName" placeholder="关联对象名称" clearable />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
<el-form-item label="关联对象Id" prop="relationId">
<el-input v-model="state.ruleForm.relationId" placeholder="关联对象ID" clearable />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
<el-form-item label="所属Id" prop="fileName">
<el-input v-model="state.ruleForm.belongId" placeholder="所属ID" clearable />
<el-form-item label="业务数据Id">
<el-input v-model="state.ruleForm.dataId" placeholder="业务数据Id" clearable />
</el-form-item>
</el-col>
</el-row>

View File

@ -281,7 +281,7 @@ const handleChange = (file: any, fileList: []) => {
//
const handleUpload = async () => {
if (state.fileList.length < 1) return;
await getAPI(SysFileApi).apiSysFileUploadFilePostForm(state.fileList[0].raw, state.fileType, state.isPublic);
await getAPI(SysFileApi).apiSysFileUploadFilePostForm(state.fileList[0].raw, state.fileType, '', state.isPublic);
handleQuery();
ElMessage.success('上传成功');
state.visible = false;