From 2b1203c1381bafa100cc0bd4d7e698fed53b83a3 Mon Sep 17 00:00:00 2001
From: yanyizhou <2311759275@qq.com>
Date: Tue, 7 Sep 2021 09:16:34 +0800
Subject: [PATCH] =?UTF-8?q?=20=E6=9C=BA=E6=9E=84=E7=AE=A1=E7=90=86--?=
=?UTF-8?q?=E5=8A=A0=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6=EF=BC=9A=E5=A7=93?=
=?UTF-8?q?=E5=90=8D=E5=92=8C=E9=82=AE=E7=AE=B1=EF=BC=8C=E5=8A=A0=E4=BA=86?=
=?UTF-8?q?=E5=88=86=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/config/pages/mechanismManage/index.vue | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
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()
},
},