Commit 8c2480ef authored by 黄奎's avatar 黄奎

页面修改

parent 3bf33ee9
...@@ -15,7 +15,29 @@ ...@@ -15,7 +15,29 @@
</li> </li>
</ul> </ul>
</div> </div>
<el-table v-if="dataList.length>0" :data="dataList" style="width:100%" border v-loading='loading' height="700">
<el-table-column fixed label="酒店名称" min-width="180">
<template slot-scope="scope">
<div style="text-decoration: underline;cursor:pointer" @click="GotoHotel(scope.row.Hotel)">
{{scope.row.HotelName}}
</div>
</template>
</el-table-column>
<el-table-column v-for='(item,index) in dataList[0].DayList' :label="item.DateStr" :key='index' min-width="150">
<template slot-scope="scope">
<template v-if="scope.row.DayList[index].IsHaveStock==0">
<div style="background-color: #000!important;width:100%;height:100%;"></div>
</template>
<template v-else v-for="childItem in scope.row.DayList[index].HotelJourneyOrderList">
<div style="white-space:nowrap;" :title="childItem.TCID">{{childItem.BookGroup}}</div>
</template>
</template>
</el-table-column>
</el-table>
<div class="noDataNotice" v-else>
<i class="iconfont icon-kong"></i>
<p>{{$t("active.ld_noData")}}</p>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -24,8 +46,8 @@ ...@@ -24,8 +46,8 @@
return { return {
//查询条件 //查询条件
msg: { msg: {
YearMonthStr:"", YearMonthStr: "",
CountryId:651,//只查询日本 CountryId: 651, //只查询日本
}, },
defaultSelectValue: 0, defaultSelectValue: 0,
dataList: [], dataList: [],
...@@ -45,12 +67,16 @@ ...@@ -45,12 +67,16 @@
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.dataList=[];
if (this.msg.YearMonthStr == "") {
this.msg.YearMonthStr = new Date().Format("yyyy-MM");
}
this.apipost("hotel_post_GetHotelWorkListService", this.msg, this.apipost("hotel_post_GetHotelWorkListService", this.msg,
res => { res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
console.log("this.dataList",this.dataList); //console.log("this.dataList", this.dataList);
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -61,7 +87,7 @@ ...@@ -61,7 +87,7 @@
}, },
mounted() { mounted() {
this.msg.YearMonthStr = new Date().Format("yyyy-MM");; this.msg.YearMonthStr = new Date().Format("yyyy-MM");
this.getList(); this.getList();
}, },
}; };
......
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