Commit 87eb69e8 authored by 黄奎's avatar 黄奎

页面修改

parent 7dd13f26
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<div class="el-scrollbar" style="height: 450px; width: 100%;overflow-y:auto;"> <div class="el-scrollbar" style="height: 450px; width: 100%;overflow-y:auto;">
<div style="margin-bottom: -8px; margin-right: -8px;"> <div style="margin-bottom: -8px; margin-right: -8px;">
<div class="el-scrollbar__view"> <div class="el-scrollbar__view">
<li class="el-menu-item" :class="commonIndex==-1?'selectActive' : ''" <li class="el-menu-item" :class="commonIndex==-1?'selectActive' : ''" @click="getImgList(-1)"
@click="getImgList(-1,saveObj)" style="padding-left: 10px;padding-right: 10px;"> style="padding-left: 10px;padding-right: 10px;">
<div flex="dir:left box:last"> <div flex="dir:left box:last">
<el-col :span="18" style="overflow: hidden; text-overflow: ellipsis;"> <el-col :span="18" style="overflow: hidden; text-overflow: ellipsis;">
<i class="el-icon-tickets"></i> <i class="el-icon-tickets"></i>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</div> </div>
</li> </li>
<li class="el-menu-item" v-for="(item,index) in saveObj" :class="commonIndex==index?'selectActive' : ''" <li class="el-menu-item" v-for="(item,index) in saveObj" :class="commonIndex==index?'selectActive' : ''"
@click="getImgList(index,saveObj)" :key="index" style="padding-left: 10px;padding-right: 10px;"> @click="getImgList(index)" :key="index" style="padding-left: 10px;padding-right: 10px;">
<div flex="dir:left box:last"> <div flex="dir:left box:last">
<el-col :span="18" style="overflow: hidden; text-overflow: ellipsis;"> <el-col :span="18" style="overflow: hidden; text-overflow: ellipsis;">
<i class="el-icon-tickets"></i> <i class="el-icon-tickets"></i>
...@@ -47,7 +47,8 @@ ...@@ -47,7 +47,8 @@
<div style="display:inline-block;margin-left:9px;position:relative" v-for="(item,index) in comImgArr" <div style="display:inline-block;margin-left:9px;position:relative" v-for="(item,index) in comImgArr"
:key="index"> :key="index">
<!-- {{item}} --> <!-- {{item}} -->
<img :src="item.Path" v-if="item.MappingId>0" class="app-attachment-img" style="width: 100px; height: 100px;"> <img :src="item.Path" v-if="item.MappingId>0" class="app-attachment-img"
style="width: 100px; height: 100px;">
<img :src="item.AllPath" v-else class="app-attachment-img" style="width: 100px; height: 100px;"> <img :src="item.AllPath" v-else class="app-attachment-img" style="width: 100px; height: 100px;">
<i class="iconfont icon-bumenguanli-shanchu hotel_DelIcon" @click="delHotelImg(item,index)"></i> <i class="iconfont icon-bumenguanli-shanchu hotel_DelIcon" @click="delHotelImg(item,index)"></i>
</div> </div>
...@@ -172,7 +173,7 @@ ...@@ -172,7 +173,7 @@
}); });
}, },
//点击获取图片arr //点击获取图片arr
getImgList(index, obj) { getImgList(index) {
this.commonIndex = index; this.commonIndex = index;
if (index == -1) { if (index == -1) {
this.comImgArr = []; this.comImgArr = [];
...@@ -202,7 +203,12 @@ ...@@ -202,7 +203,12 @@
AllPath: imgUrl, AllPath: imgUrl,
Path: x.data.FilePath Path: x.data.FilePath
} }
this.saveObj[this.commonIndex].ImgList.push(obj); if (this.commonIndex == -1) {
this.saveObj[0].ImgList.push(obj);
this.getImgList(-1)
} else {
this.saveObj[this.commonIndex].ImgList.push(obj);
}
}); });
}, },
}, },
......
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