CN-71 feat:用户,角色,i18n,操作记录列表页面 添加搜索框

This commit is contained in:
晶晶 张
2021-07-27 09:19:44 +08:00
parent df61269616
commit 6f5016872d
6 changed files with 24 additions and 15 deletions

View File

@@ -17,7 +17,7 @@ export default {
pageObj: { // 分页对象
pageNo: 1,
pageSize: defaultPageSize,
total: 0
total: ''
},
/* 工具参数 */
tools: {
@@ -76,6 +76,7 @@ export default {
}
this.tableData = response.data.list
this.pageObj.total = response.data.total
this.pageObj.total = ''
// TODO 回到顶部
}
})
@@ -143,6 +144,10 @@ export default {
tableDataSort (orderBy) {
this.$set(this.searchLabel, 'orderBy', orderBy)
this.getTableData()
},
search (params) {
this.pageObj.pageNo = 1
this.getTableData({ q: params })
}
},
watch: {