<template>
    <div>
        <el-card class="box-card" :body-style="{ padding: '20px 20px 0 20px' }">
            <el-form :inline="true" :model="formInline" class="demo-form-inline">
                <el-form-item label="店铺">
                    <el-select v-model="formInline.region" placeholder="店铺">
                        <el-option label="花里有品" value="1"></el-option>
                        <el-option label="花富贵儿" value="2"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="团购状态">
                    <el-select v-model="formInline.status" placeholder="团购状态">
                        <el-option label="跟团中" value="1"></el-option>
                        <el-option label="预览中" value="2"></el-option>
                        <el-option label="未开始" value="3"></el-option>
                        <el-option label="已结束" value="4"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="活动标题">
                    <el-input v-model="formInline.title" placeholder="活动标题"></el-input>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="onSubmit">查询</el-button>
                    <el-button type="primary" @click="onSubmit">新增团购</el-button>
                </el-form-item>
            </el-form>
        </el-card>

        <el-card style="margin-top: 10px" class="box-card">
            <el-table v-loading="loading" :data="tableData" border style="width: 100%">
                <el-table-column prop="store" label="店铺">
                </el-table-column>
                <el-table-column prop="title" label="活动标题">
                </el-table-column>
                <el-table-column prop="status" label="团购状态">
                </el-table-column>
                <el-table-column prop="dateTime" label="开团时间">
                </el-table-column>
                <el-table-column prop="ercode" label="手机查看">
                </el-table-column>
                <el-table-column prop="options" label="操作">
                    <template slot-scope="scope">
                        <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
                        <el-button type="text" size="small">编辑</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </el-card>
    </div>
</template>


<script>
export default {
    data() {
        return {
            formInline: {
                region: '',
                status: '',
                title: '',
            },
            loading: false
        }
    },
    methods: {
        onSubmit() {
            console.log('submit!');
        }
    }
}
</script>
