|
|
@@ -689,6 +689,7 @@ export default { |
|
|
|
this.subFolderMap = { ...this.subFolderMap, ...folderResInfo.folderMap }; |
|
|
|
this.resolveUploadFileList(this.workFileList); |
|
|
|
this.workSubFolderList = folderResInfo.folder; |
|
|
|
// this.workSubFolderList = uniqBy(this.workSubFolderList.concat(folderResInfo.folder), folder => folder.id); |
|
|
|
// resolve dupilicate folders |
|
|
|
this.tempWorkSubFolderList = this.tempWorkSubFolderList.filter(tempFolder => !folderResInfo.folder.some(folder => folder.id === tempFolder.id)); |
|
|
|
this.cooperationFileList = folderResInfo.coordinationFiles; |
|
|
@@ -835,7 +836,7 @@ export default { |
|
|
|
const params = { |
|
|
|
projectId: this.projectId, |
|
|
|
projectName: this.projectName, |
|
|
|
folderId, folderName, folderLevelId: levelId, distFileRelativePath: `${folderPath ? `${folderPath}\\`:''}${relativePath?`${relativePath}`:''}`.replace(/(\\)+/g, '/'), |
|
|
|
folderId, folderName, folderLevelId: levelId, distFileRelativePath: [folderPath, relativePath].filter(a => a).join('\\').replace(/(\\)+/g, '/'), |
|
|
|
fileName, fileExtension, sourceFilePath, |
|
|
|
fileList: workFileList, |
|
|
|
onSuccess: (file) => { // onSuccess |
|
|
|