Commit 3e423f16 authored by yaya's avatar yaya

feat: 页面优化

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