|
@@ -1064,14 +1064,15 @@ export default {
|
|
|
"/rolePrivilege/getRoles?includeSuperAdmin=true&rootOrgId=" +
|
|
|
this.user.rootOrgId;
|
|
|
|
|
|
- Promise.all([this.$http.get(url1), this.$http.post(url2)]).then(
|
|
|
- ([resp1, resp2]) => {
|
|
|
- this.rootOrgList = resp1.data;
|
|
|
- this.roleList4Search = resp2.data;
|
|
|
- this.roleList4InsertOrUpdate = resp2.data;
|
|
|
- this.search();
|
|
|
- }
|
|
|
- );
|
|
|
+ Promise.all([
|
|
|
+ this.$httpWithMsg.get(url1),
|
|
|
+ this.$httpWithMsg.post(url2)
|
|
|
+ ]).then(([resp1, resp2]) => {
|
|
|
+ this.rootOrgList = resp1.data;
|
|
|
+ this.roleList4Search = resp2.data;
|
|
|
+ this.roleList4InsertOrUpdate = resp2.data;
|
|
|
+ this.search();
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
//初始化查询
|