Commit d4623756 authored by 黄奎's avatar 黄奎
parents 6d892122 8e5e3551
......@@ -42,7 +42,7 @@
</div>
<div style="display:inline-block;margin-left:9px;position:relative" v-for="(item,index) in comImgArr" :key="index">
<img :src="item.Path" class="app-attachment-img" style="width: 100px; height: 100px;">
<i class="iconfont icon-bumenguanli-shanchu hotel_DelIcon" @click="delHotelImg(index)"></i>
<i class="iconfont icon-bumenguanli-shanchu hotel_DelIcon" @click="delHotelImg(item,index)"></i>
</div>
</div>
</el-col>
......@@ -112,8 +112,27 @@
this.saveObj.unshift(obj);
},
//删除图片
delHotelImg(index){
this.comImgArr.splice(index,1);
delHotelImg(item,index){
if(item.MappingId&&item.MappingId>0){
let msg = {
Id:item.MappingId,
PicId:item.PicId
}
this.$confirm('是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.apipost("hotel_post_RemoveHotelImage", msg, res => {
this.comImgArr.splice(index,1);
this.Success(res.data.message);
});
}).catch(() => {
});
}else{
this.comImgArr.splice(index,1);
}
},
//清空消息
clearGroupMsg() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment