vue element 动态upload

attachs: [ { label: "询问笔录", id: "11", isRequired: true, }, { label: "申请书", id: "12", isRequired: true, }, ], onChange(file, fileList, list) { var obj = new Object(); obj.label = list.label; obj.file = file; obj.id = list.id; this.upData.push(obj); //console.log(this.upData); }, onRemove(file, fileList, list) { this.upData.splice( this.upData.findIndex((item) => item == list.label), 1 ); }, handlePictureCardPreview(file) { this.dialogImageUrl = file.url; this.dialogVisible = true; },

你可能感兴趣的:(vue element 动态upload)