机构管理--加筛选条件:姓名和邮箱,加了分页
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
</el-table>
|
||||
</div>
|
||||
<loading :loading="Loading">加载中...</loading>
|
||||
<pagination :page="page" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
|
||||
<pagination :page="page" :total="total" :pageSize="pageSize" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
|
||||
</div>
|
||||
<loading style="z-index: 2099;" :loading="treeLoading">导入中...</loading>
|
||||
<el-drawer
|
||||
@@ -278,13 +278,18 @@ export default {
|
||||
_this: this,
|
||||
loading: 'treeLoading'
|
||||
}, res => {
|
||||
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()
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user