Commit 34cd5887 authored by zhengke's avatar zhengke

修改

parent 98ef7d35
...@@ -9,30 +9,37 @@ ...@@ -9,30 +9,37 @@
.changInfo .el-textarea__inner { .changInfo .el-textarea__inner {
height: auto; height: auto;
} }
.delTrafic{
.delTrafic {
position: absolute; position: absolute;
right:165px; right: 165px;
top:-11px; top: -11px;
} }
.Ghotel_baseinfo{
.Ghotel_baseinfo {
height: auto; height: auto;
width: 100%; width: 100%;
} }
.Gnhotel_Right{
.Gnhotel_Right {
float: left; float: left;
} }
.InnerHotelDiv{
.InnerHotelDiv {
display: flex; display: flex;
} }
.InnerHoImgDiv{
width:100px; .InnerHoImgDiv {
height:100px; width: 100px;
margin-right:5px; height: 100px;
margin-right: 5px;
} }
.InnerHoImgDiv img{
width:100%; .InnerHoImgDiv img {
height:100%; width: 100%;
height: 100%;
} }
</style> </style>
<template> <template>
<div class="flexOne changInfo"> <div class="flexOne changInfo">
...@@ -62,7 +69,8 @@ ...@@ -62,7 +69,8 @@
<el-form-item :label="$t('hotel.hotel_starlevel')"> <el-form-item :label="$t('hotel.hotel_starlevel')">
<el-select class="w300" :placeholder="$t('pub.unlimitedSel')" v-model="addMsg.Star"> <el-select class="w300" :placeholder="$t('pub.unlimitedSel')" v-model="addMsg.Star">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in dropdownObj.starslevel" :key="item.ID" :label="item.Name" :value="item.ID"> <el-option v-for="item in dropdownObj.starslevel" :key="item.ID" :label="item.Name"
:value="item.ID">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -120,7 +128,7 @@ ...@@ -120,7 +128,7 @@
<div class="Gnhotel_Right"> <div class="Gnhotel_Right">
<span class="resource-lititle">{{$t('hotel.hotel_imgintroduce')}}</span> <span class="resource-lititle">{{$t('hotel.hotel_imgintroduce')}}</span>
<div class="resource-list"> <div class="resource-list">
<div class="resource-imglist clearfix"> <!-- <div class="resource-imglist clearfix">
<div class="re-img" v-for="(item,index) in HotelImageArray" :key="item.subCode"> <div class="re-img" v-for="(item,index) in HotelImageArray" :key="item.subCode">
<img :src="item.ShowPath" /> <img :src="item.ShowPath" />
<div class="imgzhe"> <div class="imgzhe">
...@@ -136,17 +144,18 @@ ...@@ -136,17 +144,18 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div> -->
<div class="add-img"> <div class="add-img">
<el-button type="primary" @click="isShowHotelImg=true" icon="el-icon-plus" circle></el-button> <el-button type="primary" @click="isShowHotelImg=true" icon="el-icon-plus" circle></el-button>
</div> </div>
</div> </div>
<div> <div>
<el-tabs> <el-tabs>
<el-tab-pane v-for="(subItem,subIndex) in addMsg.InnerHotelImaList" :key="subIndex" :label="subItem.Label==''?'默认':subItem.Label"> <el-tab-pane v-for="(subItem,subIndex) in addMsg.InnerHotelImaList" :key="subIndex"
:label="subItem.Label==''?'默认':subItem.Label">
<div class="InnerHotelDiv"> <div class="InnerHotelDiv">
<div class="InnerHoImgDiv" v-for="(sItem,sIndex) in subItem.ImgList" :key="sIndex"> <div class="InnerHoImgDiv" v-for="(sItem,sIndex) in subItem.ImgList" :key="sIndex">
<img :src="sItem.Path" /> <img :src="sItem.AllPath" @click="showImg(sItem.AllPath)" />
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -213,13 +222,17 @@ ...@@ -213,13 +222,17 @@
</template> </template>
<template v-if="activeName==4"> <template v-if="activeName==4">
<div style="width:600px;"> <div style="width:600px;">
<el-button type="primary" @click="addTraffic()" style="float:right;margin:-53px 165px 50px 0" icon="el-icon-plus" circle></el-button> <el-button type="primary" @click="addTraffic()" style="float:right;margin:-53px 165px 50px 0"
icon="el-icon-plus" circle></el-button>
<div style="margin-top:60px;"> <div style="margin-top:60px;">
<div v-for="(item,index) in addMsg.TrafficInfo" :key="index" style="position:relative;margin-bottom:20px;"> <div v-for="(item,index) in addMsg.TrafficInfo" :key="index"
<el-input type="text" v-model="item.TTitle" class="w400" style="margin-bottom:10px;" placeholder="地点名称"> style="position:relative;margin-bottom:20px;">
<el-input type="text" v-model="item.TTitle" class="w400" style="margin-bottom:10px;"
placeholder="地点名称">
</el-input> </el-input>
<el-input type="text" v-model="item.TSubTitle" class="w400" placeholder="地点介绍"></el-input> <el-input type="text" v-model="item.TSubTitle" class="w400" placeholder="地点介绍"></el-input>
<el-button type="danger" class="delTrafic" @click="delTraffic(index)" icon="el-icon-delete" circle></el-button> <el-button type="danger" class="delTrafic" @click="delTraffic(index)" icon="el-icon-delete" circle>
</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -359,7 +372,7 @@ ...@@ -359,7 +372,7 @@
DecorationTime: "", //装修时间 DecorationTime: "", //装修时间
Into: "", //酒店介绍 Into: "", //酒店介绍
}, },
AddressDes:'' //地址说明 AddressDes: '' //地址说明
}, },
//酒店图片 //酒店图片
HotelImgArr: [], HotelImgArr: [],
...@@ -394,7 +407,7 @@ ...@@ -394,7 +407,7 @@
serviceCked: [], serviceCked: [],
isShowHotelImg: false, isShowHotelImg: false,
checkedRoom: [], checkedRoom: [],
HotelActive:1, // HotelActive: 1, //
}; };
}, },
components: { components: {
...@@ -404,9 +417,9 @@ ...@@ -404,9 +417,9 @@
}, },
methods: { methods: {
//获取子组件新增分类和图片 //获取子组件新增分类和图片
getHotelImg(data){ getHotelImg(data) {
this.addMsg.InnerHotelImaList = data; this.addMsg.InnerHotelImaList = data;
this.isShowHotelImg=false; this.isShowHotelImg = false;
}, },
changeBooking(val) { changeBooking(val) {
this.chooseObj.Bookings = []; this.chooseObj.Bookings = [];
...@@ -427,8 +440,8 @@ ...@@ -427,8 +440,8 @@
this.addMsg.TrafficInfo.push(obj); this.addMsg.TrafficInfo.push(obj);
}, },
//删除交通 //删除交通
delTraffic(index){ delTraffic(index) {
this.addMsg.TrafficInfo.splice(index,1); this.addMsg.TrafficInfo.splice(index, 1);
}, },
showInput() { showInput() {
this.inputVisible = true; this.inputVisible = true;
...@@ -577,13 +590,13 @@ ...@@ -577,13 +590,13 @@
if (tempMsg.OpenPlatformList && tempMsg.OpenPlatformList.length > 0) { if (tempMsg.OpenPlatformList && tempMsg.OpenPlatformList.length > 0) {
this.chooseObj.openplatString = tempMsg.OpenPlatformList; this.chooseObj.openplatString = tempMsg.OpenPlatformList;
} }
if(tempMsg.BookingList && tempMsg.BookingList.length>0){ if (tempMsg.BookingList && tempMsg.BookingList.length > 0) {
this.checkedRoom = tempMsg.BookingList; this.checkedRoom = tempMsg.BookingList;
} }
if(tempMsg.BookList && tempMsg.BookList.length>0){ if (tempMsg.BookList && tempMsg.BookList.length > 0) {
this.chooseObj.Bookings = tempMsg.BookList; this.chooseObj.Bookings = tempMsg.BookList;
} }
if(tempMsg.InnerHotelImaList && tempMsg.InnerHotelImaList.length>0){ if (tempMsg.InnerHotelImaList && tempMsg.InnerHotelImaList.length > 0) {
this.HotelImgArr = tempMsg.InnerHotelImaList; this.HotelImgArr = tempMsg.InnerHotelImaList;
this.addMsg.InnerHotelImaList = tempMsg.InnerHotelImaList; this.addMsg.InnerHotelImaList = tempMsg.InnerHotelImaList;
} }
......
...@@ -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==index?'selectActive' : ''" <li class="el-menu-item" :class="commonIndex==-1?'selectActive' : ''"
@click="getImgList(-1,saveObj)" :key="index" style="padding-left: 10px;padding-right: 10px;"> @click="getImgList(-1,saveObj)" 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>
...@@ -46,7 +46,9 @@ ...@@ -46,7 +46,9 @@
</div> </div>
<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">
<img :src="item.Path" class="app-attachment-img" style="width: 100px; height: 100px;"> <!-- {{item}} -->
<img :src="item.AllPath" class="app-attachment-img" style="width: 100px; height: 100px;">
<!-- <img :src="item.Path" 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>
</div> </div>
...@@ -197,7 +199,8 @@ ...@@ -197,7 +199,8 @@
var obj = { var obj = {
MappingId: 0, MappingId: 0,
PicId: 0, PicId: 0,
Path: imgUrl AllPath: imgUrl,
Path: x.data.FilePath
} }
this.saveObj[this.commonIndex].ImgList.push(obj); 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