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