Commit fd19bc41 authored by zhengke's avatar zhengke

修改

parent b62c23d9
<template> <template>
<div class="hotelProductManage2"> <div class="hotelProductManage2">
<div class="hotelProductManage2_btnList">
<div class="btn_check" @click="getMonths()">查询</div>
<div class="btn_check" @click="goEdit('1')">批量编辑</div>
</div>
<div class="hotelProductManage2_condition"> <div class="hotelProductManage2_condition">
<div> <div>
<em>起始月</em> <em>起始月</em>
<el-date-picker v-model="condition.month" type="month" value-format="yyyy-MM" :clearable="false" <el-date-picker v-model="condition.month" type="month" value-format="yyyy-MM" :clearable="false"
placeholder="选择月"></el-date-picker> placeholder="选择月"></el-date-picker>
</div> </div>
<input type="button" class="normalBtn" value="查询" @click="getMonths()"/>
<input type="button" class="normalBtn" value="批量编辑" @click="goEdit('1')"/>
</div> </div>
<div class="hotelProductManage2_tableBox"> <div class="hotelProductManage2_tableBox">
<table class="hotelProductManage2_table" border="0" cellspacing="0" cellpadding="0"> <table class="hotelProductManage2_table" border="0" cellspacing="0" cellpadding="0">
......
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
<span style="color:#000000;background-color: #02F78E;padding:2px 4px;border-radius:5px">特别价</span> <span style="color:#000000;background-color: #02F78E;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' height="500"> <el-table v-if="dataList.length>0" :data="dataList" style="width:100%" border v-loading='loading' :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">
<div style="text-decoration: underline;cursor:pointer"> <div style="text-decoration: underline;cursor:pointer">
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
allWindowWidth: '', allWindowWidth: '',
showPage:true, showPage:true,
tableHeight:0,
msg: { msg: {
//酒店选择数组 //酒店选择数组
HotelChooseArray: [], HotelChooseArray: [],
...@@ -682,6 +682,16 @@ ...@@ -682,6 +682,16 @@
this.loading = false; this.loading = false;
}); });
}, },
com_onresize(){
//clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
var contentsHeight = document.body.clientHeight;
var h = contentsHeight - 50 - 80;
if(h < 110){
return;
}
//设置table的行高
this.tableHeight = h;
}
}, },
mounted() { mounted() {
document.title = this.userInfo.GroupName; document.title = this.userInfo.GroupName;
...@@ -697,6 +707,10 @@ ...@@ -697,6 +707,10 @@
this.showPage=true; this.showPage=true;
}else{ }else{
this.showPage =false; this.showPage =false;
};
this.com_onresize();
window.onresize = () => {
this.com_onresize();
} }
}, },
watch:{ watch:{
......
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