mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 18:15: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 { tenantList } from "@/api/login";
|
||||
import { dynamicClear, dynamicTenant } from "@/api/system/tenant";
|
||||
import { listUser } from "@/api/system/user";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@ -81,7 +82,8 @@ export default {
|
||||
userId: this.$store.getters.userId,
|
||||
tenantId: undefined,
|
||||
companyName: undefined,
|
||||
tenantList: []
|
||||
tenantList: [],
|
||||
userList: []
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@ -120,13 +122,21 @@ export default {
|
||||
methods: {
|
||||
// 动态切换
|
||||
dynamicTenantEvent(tenantId) {
|
||||
dynamicTenant(tenantId).then(res => {
|
||||
this.$router.push("/index");
|
||||
});
|
||||
if (this.companyName != null && this.companyName !== '') {
|
||||
dynamicTenant(tenantId).then(res => {
|
||||
this.$router.push("/index");
|
||||
});
|
||||
listUser().then(res => {
|
||||
this.userList = res.rows;
|
||||
})
|
||||
}
|
||||
},
|
||||
dynamicClearEvent(tenantId) {
|
||||
dynamicClear(tenantId).then(res => {
|
||||
dynamicClearEvent() {
|
||||
dynamicClear().then(res => {
|
||||
this.$router.push("/index");
|
||||
listUser().then(res => {
|
||||
this.userList = res.rows;
|
||||
})
|
||||
});
|
||||
},
|
||||
// 租户列表
|
||||
|
||||
Loading…
Reference in New Issue
Block a user