master
xy 2 years ago
parent 643fddd6de
commit 8170af3d31

@ -127,11 +127,11 @@
username: "", username: "",
password: "", password: "",
department_id: "", department_id: "",
}, },
paginations: { paginations: {
page: 1, page: 1,
page_size: 15, page_size: 15,
total: 0 total: 0
}, },
rules: { rules: {
name: [{ name: [{
@ -160,10 +160,10 @@
tableData: [] tableData: []
} }
}, },
methods: { methods: {
handleCurrentChange(page) { handleCurrentChange(page) {
this.paginations.page = page; this.paginations.page = page;
this.load(); this.load();
}, },
initLoad() { initLoad() {
var that = this; var that = this;
@ -190,6 +190,7 @@
...this.searchFields ...this.searchFields
}).then(response => { }).then(response => {
var data = response.data; var data = response.data;
that.paginations.total = response.total
var _rolelist = []; var _rolelist = [];
for (var m of data) { for (var m of data) {
_rolelist = that.roleList; _rolelist = that.roleList;

Loading…
Cancel
Save