Commit 5a3f18ff authored by yaya's avatar yaya

feat: 寄售单列表刷新优化

parent b300ef49
<template> <template>
<div id="app"> <div id="app">
<keep-alive exclude="Hello"> <!-- <keep-alive exclude="Hello">
<router-view v-if="$route.meta.keepAlive"/> <router-view v-if="$route.meta.keepAlive"/>
</keep-alive> </keep-alive>
<router-view v-if="!$route.meta.keepAlive"/> <router-view v-if="!$route.meta.keepAlive"/>-->
<router-view/>
</div> </div>
</template> </template>
......
...@@ -293,6 +293,7 @@ export default { ...@@ -293,6 +293,7 @@ export default {
} }
}, },
created() { created() {
this.listQuery.systemState = localStorage.getItem('systemState') || '1'
this.getList() this.getList()
}, },
methods: { methods: {
...@@ -305,6 +306,7 @@ export default { ...@@ -305,6 +306,7 @@ export default {
this.getList() this.getList()
}, },
getList() { getList() {
localStorage.setItem('systemState', '')
this.listLoading = true this.listLoading = true
findConsignList(this.listQuery).then(response => { findConsignList(this.listQuery).then(response => {
this.list = response.data.data.dataList this.list = response.data.data.dataList
...@@ -320,6 +322,7 @@ export default { ...@@ -320,6 +322,7 @@ export default {
* 详情 * 详情
*/ */
handleToDetail(item) { handleToDetail(item) {
localStorage.setItem('systemState', this.listQuery.systemState)
this.$router.push({ path: '/consign/consignDetail', query: { saleId: item.saleId }}) this.$router.push({ path: '/consign/consignDetail', query: { saleId: item.saleId }})
}, },
/** /**
......
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