You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
950 B
46 lines
950 B
<template>
|
|
<div></div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from "vuex";
|
|
export default {
|
|
data() {
|
|
return {};
|
|
},
|
|
computed: {
|
|
...mapGetters(["dept"]),
|
|
},
|
|
created() {
|
|
if (this.$auth.hasRoleOr(["admin", "leader"])) {
|
|
this.$router.replace({
|
|
path: "/shequ",
|
|
});
|
|
} else if (this.$auth.hasRole("xiaoqu")) {
|
|
if (this.dept.parentId == 238) {
|
|
this.$router.replace({
|
|
path: "/shequ",
|
|
query: { deptId: this.dept.parentId },
|
|
});
|
|
} else {
|
|
this.$router.replace({
|
|
path: "/xiaoqu",
|
|
query: { xiaoquId: this.dept.deptId },
|
|
});
|
|
}
|
|
} else {
|
|
this.$store.dispatch("LogOut").then(() => {
|
|
this.$notify({
|
|
title: "警告",
|
|
message: "该账号暂无权限访问!",
|
|
type: "warning",
|
|
});
|
|
this.$router.replace("/login");
|
|
});
|
|
}
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style></style>
|