<style lang='scss'>
    .signup_mannage{
        .bh{
            font-size: 14px;
            color: #666;
            line-height: 27px;
            margin-bottom: 10px;
            label{
                color:#333;
                font-size: 16px;
                display: inline-block;
                padding-right: 10px;
            }
        }
        .hotel{
            .el-dialog{
                margin-top: 30px !important;
                .el-form-item{
                    margin-bottom: 10px;
                }
            }
        }
    }
</style>
<template>
    <section class="signup_mannage">
        <p><span>会议管理></span>酒店管理</p>
        <div class="content">
            <div class="filter">
                <el-form size="small" label-width="70px" :inline="true"  label-position="left">
                    <el-form-item label="">
                            <el-select v-model="form.id" clearable placeholder="请选择会议"></el-select>
                    </el-form-item>
                    <el-form-item label="">
                            <el-select v-model="form.id" clearable placeholder="请选择酒店"></el-select>
                    </el-form-item>
                    <el-form-item>
                        <el-button  type="primary">搜索</el-button>
                    </el-form-item>
                    <el-form-item style="float:right" >
                        <el-button @click="dialogVisible=true"  icon="el-icon-plud" type="primary">添加酒店</el-button>
                        <el-button plain icon="el-icon-download" type="primary">导出Excel</el-button>
                    </el-form-item>
                </el-form>
            </div>
             <el-table
                    class="table"
                    :data="list"
                    height='50vh'
                    border  v-loading="loading"
                    default-expand-all row-key="id"
                    style="width: 100%">
                    <el-table-column
                    prop="name"  
                    label="酒店名称">
                    </el-table-column>
                    <el-table-column
                    prop="username"  
                    label="本次会议名称">
                    </el-table-column>
                    <el-table-column
                    prop="username"  
                    label="入住人数">
                    </el-table-column>
                    <el-table-column
                    prop="username"  
                    label="入住率">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="已举办会议">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="创建时间">
                    </el-table-column>
                    <el-table-column
                    prop=""  
                    label="会议时间">
                    </el-table-column>
                    <el-table-column  
                    prop="zip"  width="200" fixed="right"
                    label="操作">
                    <template slot-scope="">
                        <el-button  @click="dialogVisible2=true" class="edit"  type="text" >查看</el-button>
                        <el-button @click="dialogVisible=true"  type="text">编辑</el-button>
                        <el-button   class="del" type="text" >删除</el-button>
                    </template>
                    </el-table-column>
            </el-table>
            <Page  ref="pageButton" :current='form.page' :page_size='form.page_size' :total='total' @pageChange='gopage'/>
        </div>
        <el-dialog width="80%" class="hotel"
        :title="dialogTitle" :close-on-click-modal='false'
        :visible.sync="dialogVisible">
            <Hotel/>
        </el-dialog>
    </section>
</template>
<script>
import Page from '../../components/Page';
import Hotel from '../../components/hotel';
export default {
    components:{
        Page,Hotel
    },
    data(){
        return{
            form:{},
            order_status:'-3',
            list:[{}],
            reason:[],
            invoice:{},
            total:0,
            loading:false,
            dialogTitle:'添加酒店',
            dialogVisible:false,
            dialogVisible1:false,
            dialogVisible2:false
        }
    },
    methods:{
        gopage(size){
            if(size){
                this.form.page_size=size
            }
            this.form.page=this.$refs.pageButton.page
            this.getData()
        },
        tabClick(){

        }
    }
}
</script>