diff --git a/src/pages/config/pages/mechanismManage/index.vue b/src/pages/config/pages/mechanismManage/index.vue
index bd978749c..8d72796c6 100644
--- a/src/pages/config/pages/mechanismManage/index.vue
+++ b/src/pages/config/pages/mechanismManage/index.vue
@@ -122,7 +122,7 @@
加载中...
-
+
导入中...
{
+ console.log(res);
this.treeData = res.data
this.id = res.data[0].id
this.getData()
+ }, e => {
+ console.log(e);
})
},
getData () {
this.$http.post('SarInstitution/institution/user', {
+ current:this.page,
+ size: this.pageSize,
institutionId: this.id,
uname: this.searchForm.uname,
email: this.searchForm.email
@@ -293,7 +298,7 @@ export default {
loading: 'Loading'
}, res => {
console.log(res.data)
- res.data.forEach((item) => {
+ res.data.records.forEach((item) => {
var NameList = ''
item.positions.forEach((items) => {
if (NameList.length > 0) {
@@ -303,8 +308,8 @@ export default {
})
item.NameList = NameList
})
- this.data = res.data
- this.total = res.data.length
+ this.data = res.data.records
+ this.total = res.data.total
})
},
pageChange (page) {
@@ -312,7 +317,7 @@ export default {
this.getData()
},
pageSizeChange (pageSize) {
- this.$store.getters.userInfo.configContent = pageSize
+ this.pageSize = pageSize
this.getData()
},
},