Commit 6cce4175 authored by CenXinYi's avatar CenXinYi

优化重置

Signed-off-by: 's avatarCenXinYi <2810162984@qq.com>
parent 7396c5eb
...@@ -430,6 +430,11 @@ export default { ...@@ -430,6 +430,11 @@ export default {
next() next()
}, },
created() { created() {
if (this.$store.getters.searchParams[this.$route.path]) {
const { searchParams } = this.$store.getters; const { path } = this.$route
const param = JSON.parse(searchParams[path]) // 保留着的查询条件
this.queryParams = { ...param }
}
this.getList() this.getList()
}, },
mounted() { mounted() {
...@@ -483,6 +488,7 @@ export default { ...@@ -483,6 +488,7 @@ export default {
/** TODO: 重置按钮操作 */ /** TODO: 重置按钮操作 */
resetQuery() { resetQuery() {
this.queryEntity = { this.queryEntity = {
tableSortMark: 0,
entity: { entity: {
pn: '', pn: '',
lot: '', lot: '',
......
...@@ -389,6 +389,7 @@ export default { ...@@ -389,6 +389,7 @@ export default {
/** TODO: 重置按钮操作 */ /** TODO: 重置按钮操作 */
resetQuery() { resetQuery() {
this.queryEntity = { this.queryEntity = {
tableSortMark: 0,
entity: { entity: {
pn: '', pn: '',
lot: '', lot: '',
......
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