Commit 1b7c3b76 authored by zhengke's avatar zhengke

修改

parent cabc6fc1
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
font-size: 20px; font-size: 20px;
} }
.changInfo .el-textarea__inner {
height: auto;
}
</style> </style>
<template> <template>
<div class="flexOne changInfo"> <div class="flexOne changInfo">
...@@ -76,12 +80,12 @@ ...@@ -76,12 +80,12 @@
</div> </div>
</div> </div>
<el-form-item label="标签"> <el-form-item label="标签">
<el-tag :key="tag" v-for="(tag,index) in TagsList" style="margin-right:5px;" closable :disable-transitions="false" <el-tag :key="tag" v-for="(tag,index) in TagsList" style="margin-right:5px;" closable
@close="handleClose(tag,index)"> :disable-transitions="false" @close="handleClose(tag,index)">
{{tag}} {{tag}}
</el-tag> </el-tag>
<el-input class="input-new-tag w80" v-if="inputVisible" v-model="inputValue" ref="saveTagInput" size="small" <el-input class="input-new-tag w80" v-if="inputVisible" v-model="inputValue" ref="saveTagInput"
@keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"> size="small" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm">
</el-input> </el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 新增标签</el-button> <el-button v-else class="button-new-tag" size="small" @click="showInput">+ 新增标签</el-button>
...@@ -141,13 +145,22 @@ ...@@ -141,13 +145,22 @@
<el-input placeholder="联系方式"></el-input> <el-input placeholder="联系方式"></el-input>
</el-col> </el-col>
</el-row> </el-row>
<el-input type="textarea" :rows="9"></el-input> <el-input type="textarea" v-model="textarea" :rows="9"></el-input>
</template> </template>
<template v-if="activeName==3"> <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-option v-for="subitem in serviceList" :key="subitem.ID" :label="subitem.Name" :value="subitem.ID">
</el-option>
</el-select>
</el-form-item>
</template> </template>
<template v-if="activeName==4"> <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>
</div>
</template> </template>
</div> </div>
</el-form> </el-form>
...@@ -175,6 +188,7 @@ ...@@ -175,6 +188,7 @@
export default { export default {
data() { data() {
return { return {
textarea: '',
imageOptions: { imageOptions: {
navbar: false, navbar: false,
title: false title: false
...@@ -283,6 +297,7 @@ ...@@ -283,6 +297,7 @@
DriverGuideIsRebate: 0, DriverGuideIsRebate: 0,
ProductType: 1, //国内酒店 ProductType: 1, //国内酒店
Tags: '', //标签 Tags: '', //标签
TrafficInfo:[], //交通数据
}, },
TagsList: [], TagsList: [],
DiscountList: { DiscountList: {
...@@ -317,8 +332,8 @@ ...@@ -317,8 +332,8 @@
activeName: '1', //默认选中基础资料 activeName: '1', //默认选中基础资料
isShowMap: false, isShowMap: false,
inputVisible: false, inputVisible: false,
inputValue: '' inputValue: '',
serviceCked:[],
}; };
}, },
components: { components: {
...@@ -326,6 +341,14 @@ ...@@ -326,6 +341,14 @@
DMCchooseImg: DMCchooseImg DMCchooseImg: DMCchooseImg
}, },
methods: { methods: {
//新增交通
addTraffic(){
let obj = {
TTitle:'', //大标题
TSubTitle:'' //子标题
}
this.addMsg.TrafficInfo.push(obj);
},
showInput() { showInput() {
this.inputVisible = true; this.inputVisible = true;
this.$nextTick(_ => { this.$nextTick(_ => {
...@@ -431,7 +454,7 @@ ...@@ -431,7 +454,7 @@
} else { } else {
this.addMsg.IsSelfBook = 0; this.addMsg.IsSelfBook = 0;
} }
this.addMsg.FacilityServices = `${JSON.stringify(this.serviceList)}`; this.addMsg.FacilityServices = this.serviceCked.toString();
this.addMsg.HotelPolicy = `${JSON.stringify(this.GetPolicy)}`; this.addMsg.HotelPolicy = `${JSON.stringify(this.GetPolicy)}`;
this.addMsg.OpenPlatform = this.openplatString.toString(); this.addMsg.OpenPlatform = this.openplatString.toString();
this.addMsg.UseDinnerType = this.UseDinnerString.toString(); this.addMsg.UseDinnerType = this.UseDinnerString.toString();
...@@ -480,16 +503,15 @@ ...@@ -480,16 +503,15 @@
}, },
inithotelService() { inithotelService() {
//初始化酒店服务 //初始化酒店服务
let msg = { this.apipost("hotel_post_GetHotelConfigService", {}, res => {
Key: "SK_HOTEL_SERVICE"
};
this.apipost("dict_post_GetList", msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempArray = res.data.data; let tempData = res.data.data;
tempArray.forEach(item => { this.serviceList=[];
item.checked = []; tempData.forEach(x=>{
}); x.SubList.forEach(y=>{
this.serviceList = tempArray; this.serviceList.push(y);
})
})
} }
}); });
}, },
...@@ -574,17 +596,8 @@ ...@@ -574,17 +596,8 @@
} }
if (_self.addMsg.FacilityServices != "") { if (_self.addMsg.FacilityServices != "") {
var itemArray = JSON.parse(_self.addMsg.FacilityServices); var itemArray = JSON.parse(_self.addMsg.FacilityServices);
_self.serviceList.forEach(item => { itemArray.forEach(x => {
var isFind = false; _self.serviceCked.push(x);
for (var i = 0; i < itemArray.length; i++) {
if (
item.ID == itemArray[i].ID &&
itemArray[i].hasOwnProperty("checked")
) {
item.checked = itemArray[i].checked;
break;
}
}
}); });
} }
if (_self.addMsg.HotelPolicy != "") { if (_self.addMsg.HotelPolicy != "") {
......
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