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

页面修改

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