<!--表具运营列表--> <template> <div class="product_container"> <div class="productFun"> <div class="productInput"> 用户编号 <div class="inputBox" style="width: 180px"> <el-input placeholder="请输入用户编号" v-model="input" clearable class="product-input" > </el-input> </div> 表具状态 <div class="inputBox" style="width: 100px"> <el-select v-model="value" filterable placeholder="正常"> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" > </el-option> </el-select> </div> </div> <div class="productBtn"> <el-button type="primary" icon="el-icon-search" class="btnItem" style="background-color:#2483b3" > 查询 </el-button > <el-button type="primary" icon="el-icon-refresh" class="btnItem" style="background-color:#2483b3" > 重置 </el-button > </div> </div> <el-table :data="tableData" :row-class-name="tableRowClassName" :header-cell-style="{ 'text-align': 'center', background: '#2483b3', color: 'white', }" :row-style="{ 'text-align': 'center' }" style="width: 100%" > <el-table-column type="selection" width="55"></el-table-column> <el-table-column prop="date" label="序号"></el-table-column> <el-table-column prop="name" label="表具类型"></el-table-column> <el-table-column prop="address1" label="用户编号"></el-table-column> <el-table-column prop="address2" label="地址"></el-table-column> <el-table-column prop="address3" label="表具状态"></el-table-column> <el-table-column prop="address4" label="可用余额"></el-table-column> <el-table-column prop="address5" label="是否绑定用户"></el-table-column> <el-table-column 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> <div class="footer"> <div>共1条记录 第1/1页</div> <div> <el-pagination background layout=" prev, pager, next,sizes, jumper" :page-size="10" :total="10" > </el-pagination> </div> <!-- <div>页码</div> --> </div> <!-- 新增弹框 --> <brand-add-dialog :isShowInfo="isShowAdd" @close="closeAdd" > </brand-add-dialog> </div> </template> <script> // 组件 import DataInfoItem from '../../components/mycomponent/DataInfoItem.vue' import BrandAddDialog from '../../components/mycomponent/dialog/brandAddDialog.vue' // 逻辑 import { tableRowClassName } from '../../utils/myUtils/changeTableTr' export default { components: { DataInfoItem, BrandAddDialog }, name: 'WatchList', data() { return { isShowAdd: false, // 显示新增功能 tableData: [ { date: '1', name: '燃气表', address1: '**********', address2: '********************', address3: '正常', address4: '100元', address5: '是' } ], options: [ { value: '选项1', label: '正常' }, { value: '选项2', label: '异常' } ], value: '' } }, methods: { tableRowClassName: tableRowClassName, closeAdd() { this.isShowAdd = false }, addCategory() { this.isShowAdd = true } } } </script> <style lang="scss" scoped> .product_container { position: relative; width: 100%; min-height: 700px; overflow: auto; .productData { width: 100%; display: flex; justify-content: center; .middle { margin: 0 30px; } } .productFun { margin: 0px 0px 30px; display: flex; justify-content: space-between; .productInput { display: flex; align-items: center; .inputBox { margin: 0 50px 0 10px; } } .productBtn { .btnItem { margin-right: 10px; border-radius: 5px; // height: 32px; // width: 84px; font-size: 16px; } .bgred { background: #9f1919; border: #9f1919; } .bggreen { background: #248a53; border: #248a53; } } } .footer { display: flex; justify-content: space-between; color: #6666; margin: 30px 10px; } } </style>