mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-21 02:25:56 +08:00
update 动态切换增加判断, 返回用户列表 ;
This commit is contained in:
parent
d6fbe175b6
commit
b356b6961d
@ -74,6 +74,7 @@ import RuoYiGit from '@/components/RuoYi/Git'
|
|||||||
import RuoYiDoc from '@/components/RuoYi/Doc'
|
import RuoYiDoc from '@/components/RuoYi/Doc'
|
||||||
import { tenantList } from "@/api/login";
|
import { tenantList } from "@/api/login";
|
||||||
import { dynamicClear, dynamicTenant } from "@/api/system/tenant";
|
import { dynamicClear, dynamicTenant } from "@/api/system/tenant";
|
||||||
|
import { listUser } from "@/api/system/user";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -81,7 +82,8 @@ export default {
|
|||||||
userId: this.$store.getters.userId,
|
userId: this.$store.getters.userId,
|
||||||
tenantId: undefined,
|
tenantId: undefined,
|
||||||
companyName: undefined,
|
companyName: undefined,
|
||||||
tenantList: []
|
tenantList: [],
|
||||||
|
userList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -120,13 +122,21 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 动态切换
|
// 动态切换
|
||||||
dynamicTenantEvent(tenantId) {
|
dynamicTenantEvent(tenantId) {
|
||||||
|
if (this.companyName != null && this.companyName !== '') {
|
||||||
dynamicTenant(tenantId).then(res => {
|
dynamicTenant(tenantId).then(res => {
|
||||||
this.$router.push("/index");
|
this.$router.push("/index");
|
||||||
});
|
});
|
||||||
|
listUser().then(res => {
|
||||||
|
this.userList = res.rows;
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
dynamicClearEvent(tenantId) {
|
dynamicClearEvent() {
|
||||||
dynamicClear(tenantId).then(res => {
|
dynamicClear().then(res => {
|
||||||
this.$router.push("/index");
|
this.$router.push("/index");
|
||||||
|
listUser().then(res => {
|
||||||
|
this.userList = res.rows;
|
||||||
|
})
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 租户列表
|
// 租户列表
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user