diff --git a/src/views/bookStore/bookType.vue b/src/views/bookStore/bookType.vue index 4c6ea82..b656737 100644 --- a/src/views/bookStore/bookType.vue +++ b/src/views/bookStore/bookType.vue @@ -160,7 +160,9 @@ this.form = this.$options.data().form; if (obj) { obj.status = obj.status.toString(); - this.form = result; + this.form = obj; + + this.form.pname=obj.pid_info?obj.pid_info.name:'根目录' } this.dialogFormVisible = true; }, diff --git a/src/views/staff/staffIndex.vue b/src/views/staff/staffIndex.vue index c0d87de..8c6731f 100644 --- a/src/views/staff/staffIndex.vue +++ b/src/views/staff/staffIndex.vue @@ -7,7 +7,7 @@
- +
@@ -33,6 +33,12 @@ + + @@ -115,15 +121,24 @@ trigger: 'change' }] }, + paginations: { + page: 1, + page_size: 15, + total: 0 + }, tableHeight: 0, //查询条件字段 searchFields: { - KeyWord: "" + keyword: "" }, tableData: [] } }, methods: { + handleCurrentChange(page) { + this.paginations.page = page; + this.load(); + }, initLoad() { var that = this; var clientHeight = document.documentElement.clientHeight @@ -144,9 +159,13 @@ }, load() { var that = this; - listuser().then(response => { + listuser({ + page: that.paginations.page, + ...that.searchFields + }).then(response => { var data = response.data; that.tableData = data; + this.paginations.total = response.total; }).catch(error => { console.log(error) //reject(error)