Commit 3a32dd7e authored by youjie's avatar youjie

no message

parent b4d5ada9
...@@ -77,8 +77,9 @@ ...@@ -77,8 +77,9 @@
<span style="color:#000000;background-color: #808000;padding:2px 4px;border-radius:5px">行前日</span> <span style="color:#000000;background-color: #808000;padding:2px 4px;border-radius:5px">行前日</span>
</div> </div>
<template v-if="isShow"> <template v-if="isShow">
<el-table v-if="dataList.length>0" :data="dataList" style="width:100%" border v-loading='loading' <el-table v-if="dataList.length>0" :data="dataList"
:height="tableHeight"> style="width:100%" border v-loading='loading'
ref="mytable" key="HotelId" :height="tableHeight">
<el-table-column fixed label="酒店名称" min-width="180"> <el-table-column fixed label="酒店名称" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- @click="GotoHotel(scope.row.HotelId)" --> <!-- @click="GotoHotel(scope.row.HotelId)" -->
...@@ -384,14 +385,7 @@ ...@@ -384,14 +385,7 @@
watch: { watch: {
dataList:{ dataList:{
handler(val, oldVal){ handler(val, oldVal){
let that = this
that.$nextTick(()=>{
that.com_onresize();
window.onresize = () => {
that.com_onresize();
}
that.$forceUpdate();
})
}, },
deep: true deep: true
} }
...@@ -507,6 +501,10 @@ ...@@ -507,6 +501,10 @@
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count this.total = res.data.data.count
this.isShow = true; this.isShow = true;
let _this = this
this.$nextTick(() => {
_this.$refs.mytable.doLayout();
})
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
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