<!--网点维护列表--> <template> <div class="product_container"> <div class="productFun"> <div class="productInput"> 网点名称 <div class="inputBox" style="width: 120px"> <el-input v-model="input" placeholder="请输入网点名称" clearable class="product-input" /> </div> 省 <div class="inputBox" style="width: 140px"> <el-select v-model="value" filterable placeholder="请选择" > <el-option v-for="item in []" :key="item.value" :label="item.label" :value="item.value" /> </el-select> </div> 市 <div class="inputBox" style="width: 140px"> <el-select v-model="value" filterable placeholder="请选择" > <el-option v-for="item in []" :key="item.value" :label="item.label" :value="item.value" /> </el-select> </div> </div> <div class="productBtn"> <el-button type="primary" icon="el-icon-search" class="btnItem" > 查询 </el-button> <el-button type="primary" icon="el-icon-refresh-right" class="btnItem" > 重置 </el-button> <el-button type="success" icon="el-icon-circle-plus-outline" class="btnItem bggreen" @click="addCategory" > 新增 </el-button> <el-button type="danger" icon="el-icon-delete-solid" class="btnItem bgred" > 删除 </el-button> <el-button type="primary" class="btnItem" > 批量导入 </el-button> <el-button type="primary" class="btnItem" > 下载批量导入模板 </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 prop="date" label="序号" /> <el-table-column prop="name" label="网点名称" /> <el-table-column prop="address" label="网点类型" /> <el-table-column prop="address1" label="省" /> <el-table-column prop="address2" label="市" /> <el-table-column prop="address3" label="区/县" /> <el-table-column prop="address4" label="详细地址" /> <el-table-column prop="address5" label="营业时间" /> <el-table-column prop="address6" label="联系方式" /> <el-table-column label="操作"> <template slot-scope="scope"> <el-button type="text" size="small"> 编辑 </el-button> <el-button type="text" size="small" @click="handleClick(scope.row)" > 删除 </el-button> </template> </el-table-column> </el-table> <div class="footer"> <div>共4条记录 第1/1页</div> <div> <el-pagination background layout=" prev, pager, next,sizes, jumper" :page-size="10" :total="10" /> </div> <!-- <div>页码</div> --> </div> <!-- 新增弹框 --> <!-- <hotand-news-dialog :isShowInfo="isShowAdd" @close="closeAdd"></hotand-news-dialog>--> </div> </template> <script> // 组件 import categoryAddDialog from '../../components/mycomponent/dialog/categoryAddDialog.vue' import BannerAddDialog from '../../components/mycomponent/dialog/move/bannerAddDialog.vue' import HotandNewsDialog from '../../components/mycomponent/dialog/move/hotandNewsDialog.vue' // 逻辑 import { tableRowClassName } from '../../utils/myUtils/changeTableTr' export default { components: { categoryAddDialog, BannerAddDialog, HotandNewsDialog }, data() { return { isShowAdd: false, // 显示新增功能 tableData: [ { date: '1', name: '北京燃气*****服务中心', address: '服务中心', address1: '', address2: '北京市', address3: '海淀区', address4: '*****', address5: '24小时营业', address6: '*****' }, { date: '2', name: '北京燃气*****服务中心', address: '服务中心', address1: '', address2: '北京市', address3: '海淀区', address4: '*****', address5: '24小时营业', address6: '*****' }, { date: '3', name: '北京燃气*****服务中心', address: '服务中心', address1: '', address2: '北京市', address3: '海淀区', address4: '*****', address5: '24小时营业', address6: '*****' }, { date: '4', name: '北京燃气*****服务中心', address: '服务中心', address1: '', address2: '北京市', address3: '海淀区', address4: '*****', address5: '24小时营业', address6: '*****' } ], options: [ ], 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; } } } .footer { display: flex; justify-content: space-between; color: #6666; margin: 30px 10px; } } </style>