diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/components/form-import.vue b/com.actionsoft.apps.coe.pal.datamigration/src/components/form-import.vue index d0f4bdd..de97967 100644 --- a/com.actionsoft.apps.coe.pal.datamigration/src/components/form-import.vue +++ b/com.actionsoft.apps.coe.pal.datamigration/src/components/form-import.vue @@ -63,7 +63,8 @@ export default defineComponent({ groupValue: 'yili', fileValue: '', appId: 'com.actionsoft.apps.coe.pal.datamigration', - fileName: '' + fileName: '', + fileNames:'' }); const handlePreview = () => {} const handleRemove = () => {} @@ -71,16 +72,21 @@ export default defineComponent({ const handleExceed = () => {} const handleSuccess = (res: any,uploadFile: any,uploadFiles: any) => { console.log(res,'---',uploadFile,'----',uploadFiles) + + info.fileNames += res.files.name+ ","; info.fileName = res.files.name let tempFileObj = {id: uploadFile.uid,name: res.files.name,downloadUrl: res.data.data.attrs.downloadUrl} info.fileList.push(tempFileObj) console.info('fileList',info.fileList) + + console.info("==================="+info.fileNames) } const next = () => { if (info.fileList.length === 0) { $this.$message({type:'warning',message:'请上传文件'}); return; } + info.fileNames = info.fileNames.substr(0, info.fileNames.length - 1); let param = { url: './jd', data: { @@ -89,7 +95,7 @@ export default defineComponent({ wsId: settingParam.wsId ? settingParam.wsId : '6f4e292c-1b90-4dd2-8c20-7da159cb20a5', groupValue: info.groupValue, fileValue: info.fileValue, - fileName: info.fileName + fileName: info.fileNames } } $this.awsuiaxios.post(param) diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/components/system-import.vue b/com.actionsoft.apps.coe.pal.datamigration/src/components/system-import.vue index 21d8df0..cbeac3c 100644 --- a/com.actionsoft.apps.coe.pal.datamigration/src/components/system-import.vue +++ b/com.actionsoft.apps.coe.pal.datamigration/src/components/system-import.vue @@ -63,24 +63,31 @@ export default defineComponent({ groupValue: 'yili', fileValue: '', appId: 'com.actionsoft.apps.coe.pal.datamigration', - fileName: '' + fileName: '', + fileNames:'' }); const handlePreview = () => {} const handleRemove = () => {} const beforeRemove = () => {} const handleExceed = () => {} const handleSuccess = (res: any,uploadFile: any,uploadFiles: any) => { + debugger; console.log(res,'---',uploadFile,'----',uploadFiles) + + info.fileNames += res.files.name+ ","; info.fileName = res.files.name let tempFileObj = {id: uploadFile.uid,name: res.files.name,downloadUrl: res.data.data.attrs.downloadUrl} info.fileList.push(tempFileObj) console.info('fileList',info.fileList) + + console.info("==================="+info.fileNames) } const next = () => { if (info.fileList.length === 0) { $this.$message({type:'warning',message:'请上传文件'}); return; } + info.fileNames = info.fileNames.substr(0, info.fileNames.length - 1); let param = { url: './jd', data: { @@ -89,7 +96,7 @@ export default defineComponent({ wsId: settingParam.wsId ? settingParam.wsId : '6f4e292c-1b90-4dd2-8c20-7da159cb20a5', groupValue: info.groupValue, fileValue: info.fileValue, - fileName: info.fileName + fileName: info.fileNames } } $this.awsuiaxios.post(param)