|
@@ -23,6 +23,7 @@
|
|
|
import IndexTask from "./IndexTask"
|
|
import IndexTask from "./IndexTask"
|
|
|
import IndexBdc from './IndexBdc'
|
|
import IndexBdc from './IndexBdc'
|
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
+ import { USER_AUTH,SYS_BUTTON_AUTH } from "@/store/mutation-types"
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "Analysis",
|
|
name: "Analysis",
|
|
@@ -33,11 +34,24 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- indexStyle: this.nickname() === '九江税务' || '樟树税务' ? 0 : 1
|
|
|
|
|
|
|
+ indexStyle: 0,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
-
|
|
|
|
|
|
|
+ //获取页面权限
|
|
|
|
|
+ let authList = JSON.parse(sessionStorage.getItem(USER_AUTH) || "[]");
|
|
|
|
|
+ var bo = false;
|
|
|
|
|
+ for (var auth of authList) {
|
|
|
|
|
+ if(auth.action == 'require:dashboard') {
|
|
|
|
|
+ bo = true;
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (bo) {
|
|
|
|
|
+ this.indexStyle = 0;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.indexStyle = 1;
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
...mapGetters(["nickname"]),
|
|
...mapGetters(["nickname"]),
|