| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- <div class="text-right pagination-card"> |
| | | <el-pagination background :page-size="pagination.pageSize" layout="slot,prev,pager,next" |
| | | <div class="text-right pagination-card"> |
| | | <el-pagination background :page-size="pagination.pageSize" layout="slot,prev,pager,next,sizes,jumper" |
| | | :current-page="pagination.pageNum" @current-change="handleCurrentChange" |
| | | @size-change="handleSizeChange" :total="pagination.total"> |
| | | <span class="total-num">共{{ pagination.total }}条记录</span> |
| | | </el-pagination> |
| | | </div> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | address: '', |
| | | DO: '', |
| | | status: '', |
| | | pageNum: 0, |
| | | pageSize: 10, |
| | | total: 0, |
| | | extra: JSON.parse(localStorage.getItem('userInfo')).extra |
| | | }, |
| | | fanyiObj: { |
| | |
| | | value: '否' |
| | | } |
| | | ], |
| | | // pagination: { |
| | | // total: 999, |
| | | // pageNum: 1, |
| | | // pageSize: 10, |
| | | // }, |
| | | pagination:{ |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | total: 0, |
| | | pageSizes: [10, 20, 30, 40, 50] |
| | | }, |
| | | |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | getModoul().then(res => { |
| | | window.open(res.data.url, '_blank') |
| | | }) |
| | | }, |
| | | handleCurrentChange(val){ |
| | | this.pagination.pageNum = val |
| | | console.log('val', val); |
| | | |
| | | if (val === 1) { |
| | | this.searchForm.pageNum = 0 |
| | | }else{ |
| | | this.searchForm.pageNum = (val - 1) * this.pagination.pageSize |
| | | } |
| | | this.getLists() |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.pagination.pageSize = val |
| | | this.searchForm.pageSize = val - 1 |
| | | this.getLists() |
| | | }, |
| | | handleClick(e, type) { |
| | | this.$router.push({ |
| | |
| | | delete params.status |
| | | } |
| | | getList({ ...params, }).then(res => { |
| | | this.tableData = res.data.sort((a, b) => { |
| | | this.tableData =res.data&&res.data.list&&res.data.list.sort((a, b) => { |
| | | return new Date(a.estinatedArrival) - new Date(b.estinatedArrival); |
| | | }); |
| | | this.pagination.total =res.data && res.data.total || 0 |
| | | }) |
| | | }, |
| | | search() { |
| | | this.pagination.pageNum = 1 |
| | | this.pagination.pageSize = this.pagination.pageSize |
| | | this.searchForm.pageNum = 0 |
| | | this.searchForm.pageSize = this.pagination.pageSize - 1 |
| | | this.getLists() |
| | | }, |
| | | reset() { |
| | | this.pagination.pageNum = 1 |
| | | this.pagination.pageSize = this.pagination.pageSize |
| | | this.searchForm = { |
| | | orderId: '', |
| | | container: '', |
| | |
| | | address: '', |
| | | DO: '', |
| | | status: '', |
| | | pageNum: 0, |
| | | pageSize: 10, |
| | | extra: JSON.parse(localStorage.getItem('userInfo')).extra |
| | | } |
| | | this.getLists() |