|
@@ -387,6 +387,7 @@ export default {
|
|
},
|
|
},
|
|
//退出机构
|
|
//退出机构
|
|
exitOrg(item) {
|
|
exitOrg(item) {
|
|
|
|
+ let _this = this;
|
|
let MethodName = "user_manager-ExitOrg";
|
|
let MethodName = "user_manager-ExitOrg";
|
|
let data = {
|
|
let data = {
|
|
org_id: item.org_id,
|
|
org_id: item.org_id,
|
|
@@ -396,7 +397,7 @@ export default {
|
|
this.close(item);
|
|
this.close(item);
|
|
this.$message.success("退出成功");
|
|
this.$message.success("退出成功");
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- this.getMyOrgList();
|
|
|
|
|
|
+ _this.getMyOrgList("date");
|
|
}, 500);
|
|
}, 500);
|
|
})
|
|
})
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
@@ -408,7 +409,7 @@ export default {
|
|
item.isPop = false;
|
|
item.isPop = false;
|
|
},
|
|
},
|
|
//得到我的机构列表-org_manager-GetMyOrgList
|
|
//得到我的机构列表-org_manager-GetMyOrgList
|
|
- getMyOrgList() {
|
|
|
|
|
|
+ getMyOrgList(type) {
|
|
this.myOrgloading = true;
|
|
this.myOrgloading = true;
|
|
let MethodName = "org_manager-GetMyOrgList";
|
|
let MethodName = "org_manager-GetMyOrgList";
|
|
let data = {
|
|
let data = {
|
|
@@ -422,6 +423,9 @@ export default {
|
|
return item;
|
|
return item;
|
|
});
|
|
});
|
|
console.log(this.myOrgList);
|
|
console.log(this.myOrgList);
|
|
|
|
+ if (type == "date") {
|
|
|
|
+ this.getinstitutionList();
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 获取机构列表
|
|
// 获取机构列表
|
|
@@ -434,16 +438,20 @@ export default {
|
|
cur_page: this.pageNum,
|
|
cur_page: this.pageNum,
|
|
};
|
|
};
|
|
getContent(MethodName, data).then((res) => {
|
|
getContent(MethodName, data).then((res) => {
|
|
|
|
+ console.log(res.org_list);
|
|
this.SelectLoading = false;
|
|
this.SelectLoading = false;
|
|
this.total = this.total ? this.total : res.total_count;
|
|
this.total = this.total ? this.total : res.total_count;
|
|
- let orgList = JSON.parse(JSON.stringify(this.orgList));
|
|
|
|
- let list = orgList.concat(res.org_list);
|
|
|
|
|
|
+ // let orgList = JSON.parse(JSON.stringify(this.orgList));
|
|
|
|
+ //let list = orgList.concat(res.org_list);
|
|
|
|
+ let list = res.org_list;
|
|
this.orgList = this.handleOrgList(JSON.parse(JSON.stringify(list)));
|
|
this.orgList = this.handleOrgList(JSON.parse(JSON.stringify(list)));
|
|
|
|
+ console.log(this.orgList);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//处理数据交集
|
|
//处理数据交集
|
|
handleOrgList(list) {
|
|
handleOrgList(list) {
|
|
let resArr = [];
|
|
let resArr = [];
|
|
|
|
+ debugger;
|
|
if (this.myOrgList.length > 0) {
|
|
if (this.myOrgList.length > 0) {
|
|
let myOrgId = [];
|
|
let myOrgId = [];
|
|
this.myOrgList.forEach((item) => {
|
|
this.myOrgList.forEach((item) => {
|