Commit 269b909b authored by 黄奎's avatar 黄奎

页面修改

parent 3d8128d8
......@@ -18,7 +18,7 @@
.Gnhotel_Right {
float: left;
width:600px;
width: 600px;
}
.InnerHotelDiv {
......@@ -29,16 +29,18 @@
.InnerHoImgDiv {
width: 100px;
height: 100px;
margin:0 5px 5px 0;
margin: 0 5px 5px 0;
}
.InnerHoImgDiv img {
width: 100%;
height: 100%;
}
.changInfo .el-form-item__error{
left:0;
.changInfo .el-form-item__error {
left: 0;
}
</style>
<template>
<div class="flexOne changInfo">
......@@ -58,6 +60,13 @@
<el-input type="text" v-model="addMsg.HotelRealName" maxlength="100" class="w300"
placeholder="请填写酒店名称:xx酒店"></el-input>
</el-form-item>
<el-form-item label="供应商">
<el-select v-model="addMsg.HSupplierId" class='multiple_input w300' multiple placeholder="请选择供应商">
<el-option v-for="item in dropdownObj.SupplierList" :key="item.ID" :label="item.Name"
:value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_openplatform')">
<el-select v-model="chooseObj.openplatString" class='multiple_input w300' multiple
placeholder="请选择开放平台">
......@@ -102,7 +111,8 @@
</el-form-item>
<el-form-item :label="$t('hotel.hotel_detailinfo')">
<el-input type="text" class="w300" v-model="addMsg.Address" size="small" placeholder="例如:四川省成都市锦江区阳光新业中心">
<el-input type="text" class="w300" v-model="addMsg.Address" size="small"
placeholder="例如:四川省成都市锦江区阳光新业中心">
<el-button slot="append" @click="getMapShow">地图</el-button>
</el-input>
</el-form-item>
......@@ -120,7 +130,8 @@
</div>
</div>
<el-form-item label="地址说明">
<el-input type="text" class="w300" v-model="addMsg.AddressDes" size="small" placeholder="例如:距离XX2公里,步行大约需要10分钟.">
<el-input type="text" class="w300" v-model="addMsg.AddressDes" size="small"
placeholder="例如:距离XX2公里,步行大约需要10分钟.">
</el-input>
</el-form-item>
<el-form-item label="标签">
......@@ -164,7 +175,8 @@
<el-input placeholder="2017年装修" class="w300" v-model="addMsg.HotelInfo.DecorationTime"></el-input>
</el-form-item>
<el-form-item label="房间数量">
<el-input placeholder="房间数量" class="w300" @keyup.native="checkInteger(addMsg,'RoomNumber')" v-model="addMsg.RoomNumber"></el-input>
<el-input placeholder="房间数量" class="w300" @keyup.native="checkInteger(addMsg,'RoomNumber')"
v-model="addMsg.RoomNumber"></el-input>
</el-form-item>
<el-form-item label="联系方式">
<el-input placeholder="联系方式" class="w300" v-model="addMsg.Tel"></el-input>
......@@ -218,10 +230,10 @@
<el-button type="primary" @click="addTraffic()" title="添加交通" style="float:right;margin:-53px 165px 50px 0"
icon="el-icon-plus" circle></el-button>
<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"
style="position:relative;margin-bottom:20px;">
<el-form-item label="地点名称">
<el-input type="text" v-model="item.TTitle" class="w400"
placeholder="比如:牛王庙地铁站">
<el-input type="text" v-model="item.TTitle" class="w400" placeholder="比如:牛王庙地铁站">
</el-input>
</el-form-item>
<el-form-item label="地点介绍">
......@@ -248,7 +260,8 @@
</el-dialog>
<div class="btn-list">
<span class="common-lefttit"></span>
<button @click="submitForm('addMsg')" style="width:80px;" :class="{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}"
<button @click="submitForm('addMsg')" style="width:80px;"
:class="{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}"
:disabled='isDisable'>{{comBtnText}}</button>
<button class="cancel-Btn" @click="goUrl('GnHotelManagement')">{{$t('pub.cancelBtn')}}</button>
</div>
......@@ -264,13 +277,12 @@
export default {
data() {
let validateStar = (rule, value, callback) => {
if (this.addMsg.Star ==0) {
if (this.addMsg.Star == 0) {
return callback(new Error('请选择星级'));
} else {
callback();
}
}
return {
imageOptions: {
navbar: false,
......@@ -350,10 +362,10 @@
IsSelfBook: "",
IsUseDinner: "0",
UseDinnerType: "",
Country: 2,
Province: 261,
City: 5571,
District:5572,
Country: 0,
Province: 0,
City: 0,
District: 0,
//是否预约
AppointmentStyle: 0,
//支付方式
......@@ -379,10 +391,11 @@
DecorationTime: "", //装修时间
Into: "", //酒店介绍
},
AddressDes: '' //地址说明
AddressDes: '', //地址说明
HSupplierId: 0, //供应商编号
},
isDisable: false,
comBtnText:'保存',
comBtnText: '保存',
//酒店图片
HotelImgArr: [],
//酒店标签列表
......@@ -408,6 +421,7 @@
isShowHotelImg: false,
checkedRoom: [],
HotelActive: 1, //
};
},
components: {
......@@ -416,6 +430,8 @@
comImgList: comImgList
},
methods: {
//获取酒店供应商
//获取子组件新增分类和图片
getHotelImg(data) {
this.addMsg.InnerHotelImaList = data;
......@@ -478,14 +494,14 @@
inited(viewer) {
this.$viewer = viewer
},
showImg(src){
showImg(src) {
src = src.indexOf('http') != -1 ? src : this.domainManager().ViittoFileUrl + src;
let isExsit=false
this.images.forEach(x=>{
if(x==src)
isExsit=true
let isExsit = false
this.images.forEach(x => {
if (x == src)
isExsit = true
})
if(!isExsit) {
if (!isExsit) {
this.images.push(src)
} else {
this.$viewer.view(this.images.indexOf(src))
......@@ -690,7 +706,7 @@
if (isClear != 1) {
this.addMsg.City = 0;
}
} else if(type==3){
} else if (type == 3) {
if (isClear != 1) {
this.addMsg.District = 0;
}
......@@ -701,7 +717,7 @@
this.dropdownObj.ProvinceList = res.data.data;
} else if (type == 2) {
this.dropdownObj.CityList = res.data.data;
} else if(type==3){
} else if (type == 3) {
this.dropdownObj.DistrictList = res.data.data;
}
});
......@@ -747,22 +763,20 @@
},
mounted() {
let userInfo = this.getLocalStorage();
//有权限操作的部门
if (userInfo.RB_Department_Id == 240 || userInfo.RB_Department_Id == 1 || userInfo.RB_Department_Id == 3 ||
userInfo.RB_Branch_id == 49) {
this.IsHaveAuth = 1;
}
if (this.$route.query && this.$route.query.id) {
this.hotelID = this.$route.query.id;
}
this.getHotelConfig();
this.initStarAndPlatform(); //初始化星级和开放平台
this.getSuplier(); //初始化供应商
this.GetSubAreaList(this.addMsg.Country, 1, 1);
if(this.addMsg.Province>0){
if (this.addMsg.Province > 0) {
this.GetSubAreaList(this.addMsg.Province, 2, 1);
}
if(this.addMsg.City>0){
if (this.addMsg.City > 0) {
this.GetSubAreaList(this.addMsg.City, 3, 1);
}
if (this.hotelID > 0) {
......
......@@ -1039,21 +1039,22 @@
},
//添加
addGroupGuide() {
var that=this;
this.apipost(
"leader_post_Set",
this.addMsg,
that.addMsg,
res => {
if (res.data.resultCode == 1) {
this.success(this.$t('tips.saveYes'));
this.getList();
this.outerVisible = false;
this.initAddMsg();
that.Success(that.$t('tips.saveYes'));
that.getList();
that.outerVisible = false;
that.initAddMsg();
if (res.data.data.PassWord) {
this.regMsgVisible = true;
this.regMsg = res.data.data;
that.regMsgVisible = true;
that.regMsg = res.data.data;
}
} else {
this.Error(res.data.message);
that.Error(res.data.message);
}
},
err => {}
......
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