Commit c20a0747 authored by yaya's avatar yaya

feat:修改拍品管理页面刷新问题

parent e30bc103
......@@ -22,6 +22,7 @@
element-loading-text="正在查询中..."
border
fit
height="700"
highlight-current-row>
<!-- <el-table-column align="center" label="排行" width="100px" type="index" />-->
<el-table-column align="center" min-width="100px" prop="id" label="拍卖ID" fixed="left"/>
......@@ -174,6 +175,8 @@ export default {
}
},
created() {
this.listQuery.limit = Number(localStorage.getItem('auction_limit') || '20')
this.listQuery.page = Number(localStorage.getItem('auction_page') || '1')
this.getList()
},
methods: {
......@@ -216,7 +219,8 @@ export default {
this.getList()
},
getList() {
localStorage.setItem('systemState', '')
localStorage.setItem('auction_page', '1')
localStorage.setItem('auction_limit', '20')
this.listLoading = true
findAuctionList(this.listQuery).then(response => {
this.list = response.data.data.dataList
......@@ -238,6 +242,8 @@ export default {
* 详情
*/
handleToEdit(item) {
localStorage.setItem('auction_page', this.listQuery.page)
localStorage.setItem('auction_limit', this.listQuery.limit)
this.$router.push({ path: '/sale/AuctionAdd', query: { id: item.id }})
},
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment