机构管理--加筛选条件:姓名和邮箱,加了分页
This commit is contained in:
@@ -122,7 +122,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<loading :loading="Loading">加载中...</loading>
|
<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>
|
</div>
|
||||||
<loading style="z-index: 2099;" :loading="treeLoading">导入中...</loading>
|
<loading style="z-index: 2099;" :loading="treeLoading">导入中...</loading>
|
||||||
<el-drawer
|
<el-drawer
|
||||||
@@ -278,13 +278,18 @@ export default {
|
|||||||
_this: this,
|
_this: this,
|
||||||
loading: 'treeLoading'
|
loading: 'treeLoading'
|
||||||
}, res => {
|
}, res => {
|
||||||
|
console.log(res);
|
||||||
this.treeData = res.data
|
this.treeData = res.data
|
||||||
this.id = res.data[0].id
|
this.id = res.data[0].id
|
||||||
this.getData()
|
this.getData()
|
||||||
|
}, e => {
|
||||||
|
console.log(e);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getData () {
|
getData () {
|
||||||
this.$http.post('SarInstitution/institution/user', {
|
this.$http.post('SarInstitution/institution/user', {
|
||||||
|
current:this.page,
|
||||||
|
size: this.pageSize,
|
||||||
institutionId: this.id,
|
institutionId: this.id,
|
||||||
uname: this.searchForm.uname,
|
uname: this.searchForm.uname,
|
||||||
email: this.searchForm.email
|
email: this.searchForm.email
|
||||||
@@ -293,7 +298,7 @@ export default {
|
|||||||
loading: 'Loading'
|
loading: 'Loading'
|
||||||
}, res => {
|
}, res => {
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
res.data.forEach((item) => {
|
res.data.records.forEach((item) => {
|
||||||
var NameList = ''
|
var NameList = ''
|
||||||
item.positions.forEach((items) => {
|
item.positions.forEach((items) => {
|
||||||
if (NameList.length > 0) {
|
if (NameList.length > 0) {
|
||||||
@@ -303,8 +308,8 @@ export default {
|
|||||||
})
|
})
|
||||||
item.NameList = NameList
|
item.NameList = NameList
|
||||||
})
|
})
|
||||||
this.data = res.data
|
this.data = res.data.records
|
||||||
this.total = res.data.length
|
this.total = res.data.total
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
pageChange (page) {
|
pageChange (page) {
|
||||||
@@ -312,7 +317,7 @@ export default {
|
|||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
pageSizeChange (pageSize) {
|
pageSizeChange (pageSize) {
|
||||||
this.$store.getters.userInfo.configContent = pageSize
|
this.pageSize = pageSize
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user