Commit ad45e165 authored by 吴春's avatar 吴春

1

parent 92c0b439
......@@ -58,6 +58,13 @@
height: auto !important;
}
.dinnerBtn .el-button{
width: 10px !important;
}
.dinnerBtn .el-icon-search{
width: 10px !important;
margin-left:-6px;
}
</style>
<template>
<div class="Traveltrip-item-box">
......@@ -87,6 +94,12 @@
<img crossorigin="Anonymous" src="../../../assets/img/daily_lunch.png">
</td>
<td width="140" valign="middle">
<template v-if="PostConfig.LineId==14">
<el-input placeholder="请输入餐厅名称" v-model="dayObj.DinnerArray[1].DinnerName" class="input-with-select dinnerBtn">
<el-button slot="append" icon="el-icon-search" @click="getDmcSourcePage(dayObj.DinnerArray[1].DinnerName)"></el-button>
</el-input>
</template>
<template v-else>
<el-select v-if="!dayObj.isRead&&IsDirect==1" class="" :placeholder="$t('pub.pleaseSel')" filterable
v-model="dayObj.DinnerArray[1].DinnerId" @visible-change="getDinnerList($event)"
@change="changeDinnerList(dayObj.DinnerArray[1])">
......@@ -96,6 +109,8 @@
<span class="TC-realSpan">{{item.RealName}}</span>
</el-option>
</el-select>
</template>
<el-input type="text" v-model="dayObj.DinnerArray[1].DinnerName" class=""
v-if="!dayObj.isRead&&IsDirect==0" @change="noDirectDinnerChange(1)"></el-input>
<span class="TC-hotelName" v-if="dayObj.isRead">
......@@ -157,10 +172,39 @@
</table>
</div>
</div>
<el-dialog custom-class='w750' :title="dialogTitle" :visible.sync="outerVisible" center >
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr v-for="(item,index) in DinnerByKeyList">
<td>{{item.MenuName}}</td>
<td>{{item.MenuUrl}}</td>
<td>{{item.Tier | tierFormat(item.Tier)}}</td>
<td>{{item.MenuStatus==0?'开启':'关闭'}}</td>
<td>
{{item.GroupingCode}}
</td>
<td>
{{item.Sort}}
</td>
<td>
<el-row>
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start">
<el-button @click="outerVisible = true,dialogTitle='修改权限菜单',updateData(index,item.MenuId)" type="primary"
icon="el-icon-edit" circle></el-button>
</el-tooltip>
</el-row>
</td>
</tr>
</table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="searchParmeters.pageSize" :total='totalDinnerByKeyList'>
</el-pagination>
</el-dialog>
</template>
<script>
export default {
props: ["dayObj", "DayList", "CurrentIndex", "WarmTripDescribe", "IsDirect", "subConfig", "TeamType",
props: ["PostConfig","dayObj", "DayList", "CurrentIndex", "WarmTripDescribe", "IsDirect", "subConfig", "TeamType",
"IsOpenHotel" //0可以添加删除酒店,1-不能修改酒店信息
],
data() {
......@@ -176,10 +220,40 @@
hotelArray: this.dayObj.HotelArray,
otherDinner: [],
hotelHotSpringDinner: [],
isFirstInitDinner: false //初始含有酒店列表,加载完酒店数据在初始化餐厅列表
isFirstInitDinner: false, //初始含有酒店列表,加载完酒店数据在初始化餐厅列表
searchParmeters:{
keywords: '',
platform: 2,
type: 0,
pageIndex: 1,
pageSize: 6,
Province: 0,
DiningType: 0,
DiningPriceType: 0,
UseType: [0]
},
DinnerByKeyList:[],
totalDinnerByKeyList: 0,
};
},
methods: {
//查询餐厅信息
getDmcSourcePage(keywords){
if (keywords === "") {
return ;
} else {
if(str.trim() === ""){
return ;
}
}
this.apipost("hotel_post_GetDmcSourcePage", msg, res => {
if (res.data.resultCode == 1) {
this.DinnerByKeyList = res.data.data.pageData;
this.DinnerByKeyList = res.data.data;
}
});
},
// 非直采酒店
noDirectHotelChange: function () {
if (this.hotelArray[0].MD5Sign === '') {
......
......@@ -257,7 +257,7 @@
<div class="TC-rightContent" style="width: 99%;" v-html="dayObj.WarmTipObj.Description"></div>
</div>
</div>
<hotelTrip :dayObj="dayObj" :CurrentIndex="CurrentIndex" :DayList="DayList" :WarmTripDescribe="WarmTripDescribe"
<hotelTrip :dayObj="dayObj" :CurrentIndex="CurrentIndex" :PostConfig="dataAll" :DayList="DayList" :WarmTripDescribe="WarmTripDescribe"
:IsDirect="NoticeParameters.IsDirect" :subConfig="subConfig" :TeamType="TeamType" :IsOpenHotel="IsOpenHotel">
</hotelTrip>
<div class="TD_OperaContent">
......
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