导入调整

This commit is contained in:
liuxi 2025-02-19 17:46:37 +08:00
parent 38d1bab8ca
commit 8222ce437b
2 changed files with 10 additions and 10 deletions

View File

@ -78,7 +78,7 @@
</el-row>
<el-row type="flex" align="middle">
<el-col :span="24">
<el-form-item label="上传文件" prop="fileInfo">
<el-form-item label="上传文件" prop="fileUrl">
<upload-import :file-list="fileList" :max-count="1"
:show-file-name="true"
accept=".xls,.xlsx"
@ -125,7 +125,7 @@ import apipk from "@/services/casePackageManagement";
entrustingAgencyName:'',//
planStartTime:'',//
months:1,//
fileInfo:null,
fileUrl:null,
channel:'',
},
@ -142,7 +142,7 @@ import apipk from "@/services/casePackageManagement";
channel: [
{ required: true, message: '请输入委案渠道', trigger: 'change',},
],
fileInfo: [
fileUrl: [
{ required: true, message: '请上传文件', trigger: 'change',},
],
@ -217,11 +217,11 @@ import apipk from "@/services/casePackageManagement";
}
})
if(fileitem.length == 0 ){
this.baseInfo.fileInfo = null
this.baseInfo.fileUrl = null
}
else
{
this.baseInfo.fileInfo = JsonData.uploadFileRes
this.baseInfo.fileUrl = JsonData.uploadFileRes.url
}
},

View File

@ -76,7 +76,7 @@
</el-row>
<el-row type="flex" align="middle">
<el-col :span="24">
<el-form-item label="上传文件" prop="fileInfo">
<el-form-item label="上传文件" prop="fileUrl">
<upload-import :file-list="fileList" :max-count="1"
:show-file-name="true"
accept=".xls,.xlsx"
@ -128,7 +128,7 @@ import apipk from "@/services/casePackageManagement";
entrustingAgencyName:'',//
planStartTime:'',//
months:1,//
fileInfo:null,
fileUrl:null,
channel:'',
},
@ -148,7 +148,7 @@ import apipk from "@/services/casePackageManagement";
channel: [
{ required: true, message: '请输入委案渠道', trigger: 'change',},
],
fileInfo: [
fileUrl: [
{ required: true, message: '请上传文件', trigger: 'change',},
],
@ -194,11 +194,11 @@ import apipk from "@/services/casePackageManagement";
}
})
if(fileitem.length == 0 ){
this.baseInfo.fileInfo = null
this.baseInfo.fileUrl = null
}
else
{
this.baseInfo.fileInfo = JsonData.uploadFileRes
this.baseInfo.fileUrl = JsonData.uploadFileRes.url
}
},