commit
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" size="mini"
|
||||
class="common-button-primary" @click="getData">
|
||||
class="common-button-primary" @click="getDatas">
|
||||
查询
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -238,6 +238,7 @@ export default {
|
||||
name: 'MechanismManage',
|
||||
data() {
|
||||
return {
|
||||
peopleType: '', //1为树结构 2 为全机构
|
||||
nodeKeyId: '',
|
||||
searchForm: {
|
||||
uname: "",
|
||||
@@ -417,7 +418,33 @@ export default {
|
||||
console.log(e);
|
||||
})
|
||||
},
|
||||
getDatas() {
|
||||
this.peopleType = 2;
|
||||
this.$http.post('SarInstitution/institution/user', {
|
||||
current: this.page,
|
||||
size: this.pageSize,
|
||||
uname: this.searchForm.uname,
|
||||
email: this.searchForm.email
|
||||
}, {
|
||||
_this: this,
|
||||
loading: 'Loading'
|
||||
}, res => {
|
||||
res.data.records.forEach((item) => {
|
||||
let NameList = ''
|
||||
item.positions.forEach((items) => {
|
||||
if (NameList.length > 0) {
|
||||
NameList += ','
|
||||
}
|
||||
NameList += items.name
|
||||
})
|
||||
item.NameList = NameList
|
||||
})
|
||||
this.data = res.data.records
|
||||
this.total = res.data.total
|
||||
})
|
||||
},
|
||||
getData() {
|
||||
this.peopleType = 1;
|
||||
this.$http.post('SarInstitution/institution/user', {
|
||||
current: this.page,
|
||||
size: this.pageSize,
|
||||
@@ -444,11 +471,19 @@ export default {
|
||||
},
|
||||
pageChange(page) {
|
||||
this.page = page
|
||||
this.getData()
|
||||
if(this.peopleType === 1){
|
||||
this.getData()
|
||||
}else{
|
||||
this.getDatas()
|
||||
}
|
||||
},
|
||||
pageSizeChange(pageSize) {
|
||||
this.pageSize = pageSize
|
||||
this.getData()
|
||||
if(this.peopleType === 1){
|
||||
this.getData()
|
||||
}else{
|
||||
this.getDatas()
|
||||
}
|
||||
},
|
||||
pageChange2(page) {
|
||||
this.page = page
|
||||
|
||||
Reference in New Issue
Block a user