| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-pagination background @size-change="onPageSizeChange" @current-change="onCurrentPageChange" :current-page="pageData.currentPage" :page-size="pageData.pageSize" :total="pageData.total" style="padding: 10px 10px 600px 600px;"></el-pagination> |
| | | <el-pagination class="pageFoot" background @size-change="onPageSizeChange" @current-change="onCurrentPageChange" :current-page="pageData.currentPage" :page-size="pageData.pageSize" :total="pageData.total" style="padding: 10px 10px 600px 600px;"></el-pagination> |
| | | |
| | | <el-dialog title="编辑" :visible.sync="flag" width="30%"> |
| | | <el-form :model="formData" ref="formData" label-width="100px"> |
| | |
| | | this.formData = row; |
| | | }, |
| | | onDelete(index, row) { |
| | | this.$byutil.deleteData(this,this.urlPath+"delete",{id:row.id}, res => { |
| | | this.$confirm('是否确定删除?','提示',{ |
| | | confirmButtonText:'确定', |
| | | cancelButtonText:'取消', |
| | | type:'warning' |
| | | }).then(() => { |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/ticketblack/delete', {id:row.id}, res => { |
| | | if(res.code===0){ |
| | | this.$message({message: '删除成功', type: 'success'}); |
| | | this.loadData(); |
| | | }else { |
| | | this.$message({message: res.message, type: 'error'}); |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type:'info', |
| | | message:"已取消" |
| | | }) |
| | | }) |
| | | |
| | | }, |
| | | onPageSizeChange(val) { |
| | | this.pageData.pageSize = val; |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | <style lang="scss" scoped> |
| | | .pageFoot{ |
| | | width: 60%; |
| | | padding: 0!important; |
| | | display: flex; |
| | | flex-direction: row-reverse; |
| | | margin-top: 5px; |
| | | } |
| | | </style> |