|
|
@@ -517,9 +517,11 @@ export default {
|
|
|
// console.log(333333, file)
|
|
|
// console.log(666666, this.ruleForm.fileIds)
|
|
|
if (file.code === 0) {
|
|
|
- if (this.ruleForm.fileIds === '') this.ruleForm.fileIds = `${file.data.fileId}`
|
|
|
- else this.ruleForm.fileIds += `,${file.data.fileId}`
|
|
|
- this.temp = this.ruleForm.fileIds.split(',')
|
|
|
+ this.temp.push(file.data.fileId)
|
|
|
+ this.ruleForm.fileIds = this.temp.join(',')
|
|
|
+ // if (this.ruleForm.fileIds === '') this.ruleForm.fileIds = `${file.data.fileId}`
|
|
|
+ // else this.ruleForm.fileIds += `,${file.data.fileId}`
|
|
|
+ // this.temp = this.ruleForm.fileIds.split(',')
|
|
|
this.$message.success('上传成功')
|
|
|
this.tempData[this.affixVal].push({ name: file.data.fileName, updateTime: file.timestamp.slice(0, 10), filePath: file.data.filePath, id: file.data.fileId })
|
|
|
}
|