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

页面修改

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