|
@@ -132,11 +132,11 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
onRemove(file, fileList) {
|
|
onRemove(file, fileList) {
|
|
if (file.guid) {
|
|
if (file.guid) {
|
|
- let a = this.formData[0].systemFileList.findIndex(item => {
|
|
|
|
|
|
+ let a = this.files.findIndex(item => {
|
|
return item.guid == file.guid
|
|
return item.guid == file.guid
|
|
})
|
|
})
|
|
if(a != -1){
|
|
if(a != -1){
|
|
- this.formData[0].systemFileList.splice(a, 1)
|
|
|
|
|
|
+ this.files.splice(a, 1)
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
let a = this.files.findIndex(item => {
|
|
let a = this.files.findIndex(item => {
|
|
@@ -148,9 +148,16 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
onChange(file, fileList) {
|
|
onChange(file, fileList) {
|
|
- this.files = [file.raw]
|
|
|
|
|
|
+ // this.files = [file.raw]
|
|
if(file.guid){
|
|
if(file.guid){
|
|
- this.form.fileGuid = file.guid
|
|
|
|
|
|
+ let a = this.files.findIndex(item => {
|
|
|
|
+ return item.uid == file.uid
|
|
|
|
+ })
|
|
|
|
+ if (a != -1) {
|
|
|
|
+ this.files.splice(a, 1, file.raw)
|
|
|
|
+ this.form.fileGuid = file.guid
|
|
|
|
+ }
|
|
|
|
+
|
|
// this.handleConfirm()
|
|
// this.handleConfirm()
|
|
}
|
|
}
|
|
},
|
|
},
|