| | |
| | | this.$emit('removeFile', this.fileUrl, file.name); |
| | | }, |
| | | handleUploadSuccess(res, file) { |
| | | this.fileUrl.push(res.response); |
| | | console.log("当前文件信息") |
| | | this.$emit('getUploadUrl', this.fileUrl); |
| | | if (res.response) { |
| | | this.fileUrl.push(res.response); |
| | | console.log("当前文件信息", res.response) |
| | | this.$emit('getUploadUrl', this.fileUrl); |
| | | } |
| | | }, |
| | | beforeUpload(file) { |
| | | const { type } = file; |
| | |
| | | this.form.attachment = fileList.filter(item => item.name !== fileName); |
| | | }, |
| | | getUploadAttachmentUrl(uploadData) { |
| | | this.form.attachment = uploadData; |
| | | if (uploadData) { |
| | | this.form.attachment = uploadData; |
| | | } |
| | | }, |
| | | getUploadUrl(uploadData) { |
| | | console.log("收到:", uploadData) |
| | | this.form.contentUrl = uploadData; |
| | | if (uploadData) { |
| | | this.form.contentUrl = uploadData; |
| | | } |
| | | }, |
| | | remove(id) { |
| | | OnlineStudyAPI.remove([id]).then(res => { |