Commit 928579b7 authored by 黄奎's avatar 黄奎

页面修改

parent 52ec3bfc
......@@ -61,7 +61,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_detailinfo')" prop="Address">
<el-form-item :label="$t('hotel.hotel_detailinfo')">
<el-input type="text" class="w300" v-model="addMsg.addAddress" size="small">
<el-button slot="append" @click="getMapShow">地图</el-button>
</el-input>
......@@ -128,7 +128,7 @@
</div>
</template>
<template v-if="activeName==2">
<div class="jz_HotelName">九寨沟星宇国际大酒店</div>
<div class="jz_HotelName">{{addMsg.HotelRealName}}</div>
<el-row style="display:flex;justify-content:space-between;">
<el-col :span="12">
<el-input placeholder="开业时间"></el-input>
......@@ -149,7 +149,8 @@
</template>
<template v-if="activeName==3">
<el-form-item label="设施服务">
<el-select multiple :placeholder="$t('pub.pleaseSel')" filterable class='multiple_input w300' v-model="serviceCked">
<el-select multiple :placeholder="$t('pub.pleaseSel')" filterable class='multiple_input w300'
v-model="serviceCked">
<el-option v-for="subitem in serviceList" :key="subitem.ID" :label="subitem.Name" :value="subitem.ID">
</el-option>
</el-select>
......@@ -158,8 +159,9 @@
<template v-if="activeName==4">
<button class="save-Btn" style="float:right;" @click="addTraffic()">新增交通</button>
<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="大标题"></el-input>
<el-input type="text" v-model="item.TSubTitle" class="w400" placeholder="小标题"></el-input>
<el-input type="text" v-model="item.TTitle" class="w400" style="margin-bottom:10px;" placeholder="大标题">
</el-input>
<el-input type="text" v-model="item.TSubTitle" class="w400" placeholder="小标题"></el-input>
</div>
</template>
</div>
......@@ -229,8 +231,7 @@
dinerList: "",
//下拉框默认值
SelectDefaultValue: 0,
//国家列表
CountryList: [],
//省份列表
ProvinceList: [],
//城市列表
......@@ -253,7 +254,7 @@
Star: "",
URL: "",
Fax: "",
QCountry: "",
QCountry: "2",
QProvince: "",
QCity: "",
District: 0,
......@@ -297,7 +298,7 @@
DriverGuideIsRebate: 0,
ProductType: 1, //国内酒店
Tags: '', //标签
TrafficInfo:[], //交通数据
TrafficInfo: [], //交通数据
},
TagsList: [],
DiscountList: {
......@@ -333,7 +334,7 @@
isShowMap: false,
inputVisible: false,
inputValue: '',
serviceCked:[],
serviceCked: [],
};
},
components: {
......@@ -341,11 +342,11 @@
DMCchooseImg: DMCchooseImg
},
methods: {
//新增交通
addTraffic(){
//新增交通
addTraffic() {
let obj = {
TTitle:'', //大标题
TSubTitle:'' //子标题
TTitle: '', //大标题
TSubTitle: '' //子标题
}
this.addMsg.TrafficInfo.push(obj);
},
......@@ -376,7 +377,6 @@
getMapShow() {
this.isShowMap = true;
},
deleteAir(i) {
this.addMsg.DiscountList.splice(i, 1);
},
......@@ -506,11 +506,11 @@
this.apipost("hotel_post_GetHotelConfigService", {}, res => {
if (res.data.resultCode == 1) {
let tempData = res.data.data;
this.serviceList=[];
tempData.forEach(x=>{
x.SubList.forEach(y=>{
this.serviceList.push(y);
})
this.serviceList = [];
tempData.forEach(x => {
x.SubList.forEach(y => {
this.serviceList.push(y);
})
})
}
});
......@@ -597,7 +597,7 @@
if (_self.addMsg.FacilityServices != "") {
var itemArray = JSON.parse(_self.addMsg.FacilityServices);
itemArray.forEach(x => {
_self.serviceCked.push(x);
_self.serviceCked.push(x);
});
}
if (_self.addMsg.HotelPolicy != "") {
......@@ -667,10 +667,6 @@
this.addimg = false;
},
headCall(msg) {
// this.addMsg.QCountry = msg.country;
// this.addMsg.QProvince = msg.province;
// this.addMsg.QCity = msg.city;
// this.addMsg.Address = msg.address;
this.addMsg.Lng = msg.lng;
this.addMsg.Lat = msg.lat;
},
......@@ -718,16 +714,6 @@
null
);
},
//获取国家
GetCounrty() {
this.apipost(
"dict_post_Destination_GetCountry", {},
res => {
this.CountryList = res.data.data;
},
err => {}
);
},
//获取省份和城市
GetSubAreaList(ID, type, isClear) {
let msg = {
......@@ -748,7 +734,6 @@
"dict_post_Destination_GetChildList",
msg,
res => {
console.log(res, '数据');
if (type == 1) {
this.ProvinceList = res.data.data;
} else if (type == 2) {
......@@ -809,8 +794,6 @@
this.$set(this.HotelImageArray, index, downItem);
}
},
},
mounted() {
let userInfo = this.getLocalStorage()
......@@ -824,12 +807,12 @@
this.GetHotelPirceTypeList();
this.qMsg = this.$route.query.qMsg;
this.hotelID = this.$route.query.id;
this.GetCounrty();
this.inithotelService(); //初始化酒店服务
this.inithotelPolicy(); //初始化酒店政策
this.init(); //初始化星级和开放平台
this.getSuplier(); //初始化供应商
this.GetSubAreaList(this.addMsg.Country, 1, 1);
if (this.hotelID > 0) {
this.initHotelData();
}
......
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