|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
<!-- 选择图片的弹框 -->
|
|
|
- <el-dialog title="选择图片" :visible.sync="modifyImgVisible" width="80%" v-dialogDrag :close-on-click-modal="false" :modal-append-to-body="false" center>
|
|
|
+ <el-dialog title="选择图片" :visible.sync="modifyImgVisible" width="80%" v-dialogDrag :close-on-click-modal="false" :modal-append-to-body="false" center @close="cancelHandle">
|
|
|
<div class="seleect-img-box">
|
|
|
<div class="content-img" @click="clickSelectImg(item)" v-for="(item, index) in videoAndVoiceList" :key="index">
|
|
|
<img :src="item.ImgUrl" alt="" class="item-img" />
|
|
@@ -49,10 +49,13 @@ export default {
|
|
|
this.page_no = page;
|
|
|
this.getSelectImgList();
|
|
|
},
|
|
|
+ cancelHandle() {
|
|
|
+ this.$emit("update:modifyImgVisible", false);
|
|
|
+ },
|
|
|
clickSelectImg(item) {
|
|
|
this.$parent.defaultImage = item.ImgUrl;
|
|
|
this.$parent.shareImg = item.ShareImg;
|
|
|
- this.$emit("update:modifyImgVisible", false);
|
|
|
+ this.cancelHandle();
|
|
|
},
|
|
|
},
|
|
|
};
|