Commit 3e423f16 authored by yaya's avatar yaya

feat: 页面优化

parent 80a9e5e4
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
v-show="total>0" v-show="total>0"
:total="total" :total="total"
:page.sync="listQuery.page" :page.sync="listQuery.page"
:limit.sync="listQuery.limit" :limit.sync="listQuery.size"
@pagination="getList" /> @pagination="getList" />
</div> </div>
...@@ -96,6 +96,7 @@ export default { ...@@ -96,6 +96,7 @@ export default {
if (categoryStr === this.listQuery.category) { if (categoryStr === this.listQuery.category) {
return return
} }
this.listQuery.page = 1
this.listQuery.category = categoryStr this.listQuery.category = categoryStr
this.getList() this.getList()
}, },
...@@ -123,18 +124,12 @@ export default { ...@@ -123,18 +124,12 @@ export default {
this.getList() this.getList()
}) })
}, },
handleToDetail(row) {
this.fromAccount = row.fromAccount
this.toAccount = row.toAccount
this.showDetail = true
},
handlerGetList() { handlerGetList() {
if (!this.listQuery.keyword) { if (!this.listQuery.keyword) {
this.$message.error('请输入关键字') this.$message.error('请输入关键字')
return return
} }
this.listQuery.page = 1
this.getList() this.getList()
}, },
getList() { getList() {
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
v-show="total>0" v-show="total>0"
:total="total" :total="total"
:page.sync="listQuery.page" :page.sync="listQuery.page"
:limit.sync="listQuery.limit" :limit.sync="listQuery.size"
@pagination="getList" /> @pagination="getList" />
</div> </div>
...@@ -110,6 +110,7 @@ export default { ...@@ -110,6 +110,7 @@ export default {
} else if (e === '近1月') { } else if (e === '近1月') {
this.listQuery.cycle = 30 this.listQuery.cycle = 30
} }
this.listQuery.page = 1
this.handleGetCategory() this.handleGetCategory()
}, },
handlerSelectCateGory(categoryStr) { handlerSelectCateGory(categoryStr) {
......
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