|
|
@ -13,7 +13,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { uploadFile } from '@/api/portal/Upload' |
|
|
|
import { uploadFile, deleteFilesOss } from '@/api/portal/Upload' |
|
|
|
import { getStorage } from '@/utils/auth.js' |
|
|
|
export default { |
|
|
|
model: { |
|
|
@ -139,13 +139,17 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
removeImage(file, ImageFileList) { |
|
|
|
this.files.splice(this.files.indexOf(file), 1) |
|
|
|
const imgFiles = [] |
|
|
|
deleteFilesOss(file.url).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.files.splice(this.files.indexOf(file), 1) |
|
|
|
const imgFiles = [] |
|
|
|
|
|
|
|
this.files.forEach((o) => { |
|
|
|
imgFiles.push(o.url) |
|
|
|
this.files.forEach((o) => { |
|
|
|
imgFiles.push(o.url) |
|
|
|
}) |
|
|
|
this.$emit('fileChange', this.files) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.$emit('fileChange', this.files) |
|
|
|
}, |
|
|
|
handlePictureCardPreview(file) { |
|
|
|
this.dialogVisible = true |
|
|
|