|
@@ -197,11 +197,11 @@ export default {
|
|
|
formData.append('sourceId',this.$constants.sourceId)
|
|
|
formData.append('files',file.raw)
|
|
|
if(!row.systemFiles){
|
|
|
- row.systemFiles = []
|
|
|
+ this.$set(row,'systemFiles',[])
|
|
|
}
|
|
|
row.systemFiles.push(file.raw)
|
|
|
if(!row.fileGuids){
|
|
|
- row.fileGuids = []
|
|
|
+ this.$set(row,'fileGuids',[])
|
|
|
}
|
|
|
this.$api.uploadFile(formData).then(response=>{
|
|
|
if(response.code == 200){
|
|
@@ -209,7 +209,7 @@ export default {
|
|
|
return item.uid == file.uid
|
|
|
})
|
|
|
if(index != -1){
|
|
|
- row.systemFiles[index] = file.raw
|
|
|
+ row.systemFiles.splice(index,1,file.raw)
|
|
|
}
|
|
|
row.fileGuids.push(response.data[0])
|
|
|
}
|